Plot Dataset API v4 Reference

GX-TXT P011-bis · Scientific Dataset Plot 4.4.2

PLOT_DATASET_API_v4 is the current native reference. The host namespace is ::GX::PlotDatasetAPIv4. The PlotSpec structure stays v2, with presentation, inspection and source extensions applied to the admitted capabilities.

Persistent rendering marks the reference with renderer_owner = PLOT_DATASET_API_v4. The render prepares a model, saves the PNG with geometry and other admitted resources, then returns a receipt. To show a temporary frame, use the appropriate model or widget.

Native XYZ cycle and inspection

Fields of the XYZ specification and runnable recipes. render recognizes the v4-owned variant and generates the Native3D artifact. render3DSpec and export3D use the host path with an admitted destination. previewSpecAcquire, receipt, camera commands, release and previewSpecPublicationSpec operate on a Native3D draft coming from its Tk owner. Publication validates that the link between draft, data and destination is still current.

Inspection from a Graph and XYZ inspection from a Dataset have different sources. In the Bridge consultation_source returns an opaque handle bound to the run, to be passed to consultation_scene. xyz_source gives canonical identity and stamp. xyz_coordinate_presentation accepts start zero-based, count from 1 to 12,000 and expected_stamp optional. An inconsistent stamp rejects the read. The planar cell fields of v4 use XY and Z=0 with a scalar associated with the cells. Physical height requires a true Z coordinate.

PlotSpec v2 contract

A PlotSpec is a dictionary. The 2D product codes are plot.dataset.xy and plot.dataset.xy_region. For a declarative 2D plot with data, use at least one panel and at least one valid series. One exception is the v4 comparison model, with its own support and identity. The shared abscissa must be consistent across panels and any explicit units must match those of the sources.

Level
2D root
Fields, types and effects
schema = PLOT_DATASET_PLOTSPEC_v2, graph_type = cartesian_2d, graph_id, title text, multi_panel boolean, panels ordered list, defaults.style dictionary, output.extra_format = none|svg|pdf. The functions newSpec and new_spec fill in the base values listed in the table below. Reading and writing keep the variant identity in the respective reference.
Level
Panel
Fields, types and effects
id stable and distinct, title single-line, axes dictionary with keys x, y_left, y_right. series and annotations are ordered lists. Avoid duplicate series IDs, even across panels.
Level
Axis
Fields, types and effects
label, display_unit, scale, direction, min, max, major_step, minor_grid, tick_positions, tick_labels. Linear or logarithmic scale; normal or reversed direction. Finite limits and steps in the unit expected by the renderer. X pairs as two semicolon-separated strings. See tick constraints and precedence.
Level
Series
Fields, types and effects
id, dataset_id, x_variable_id, y_variable_id, axis = left|right required. Additional fields: kind, style, label, enabled, order non-negative integer, ordering_variable_id numeric, family_variable_id, secondary_variable_id, family_label_prefix, row_filters, source_row_ordinals, source_row_continuity boolean. The variable IDs point to the same source as the series and to enabled variables. Filters are column predicates validated by Graph Series.
Level
Style and shape
Fields, types and effects
kind = auto, line, scatter, line_marker, step, errorbar, band, bar, histogram, box_whisker. style includes color, stroke, width, marker, marker fill, size and opacity. step_mode = pre|post|mid. See style values.
Level
Uncertainty and limits
Fields, types and effects
x_error / y_error with mode = none|symmetric|asymmetric. The symmetric one requires variable_id; the asymmetric one requires lower_variable_id and upper_variable_id. band uses the two limit columns and draw_center. bar_bounds uses the two X limit columns. bar_width positive or auto, bar_baseline numeric or auto.
Level
Distributions
Fields, types and effects
histogram_bins = auto or an integer 2–512. histogram_normalization = count|probability|density. box_whisker_iqr positive, box_show_outliers boolean. See compatibility.
Level
Annotations
Fields, types and effects
type = reference_line with value, reference_region with min and max increasing, or text with x, y and label single-line. axis = x|left|right, X by default. Color and stroke follow the same validation as the allowed style.
Level
Native presentation
Fields, types and effects
native_presentation use GXTXT_NATIVE_GRAPH_PRESENTATION_v1 where explicit. Contains graphics, legend, axes, panels, layout, plot_config and, for the relevant branches, camera or level scales. The receipt reports the effective settings. Use the native reference and the public configuration instead of writing internal files directly.
Level
v4 cell field
Fields, types and effects
cell_field of the series uses GXTXT_CELL_FIELD_BINDING_v1. Requires nodes_dataset_id, node_id_variable_id, x_variable_id, y_variable_id, cell_id_variable_id, node_variable_ids list of three distinct IDs and scalar_variable_id. Nodes, cells and connectivity use true integers. Row filters and sorting are incompatible with the complete cell field. Native recipe (ZIP).

References, artifacts and return values

PlotRef contains module_id, graph_id, variant_id empty for the base and plot_id. read_plot adds display_name, enabled, config, series, plotspec, plotspec_path and artifacts when relevant. In the render results check execution for state/diagnostics and artifacts for output_dir, graph_artifact, render_cache, summary, existing; v4 also exposes native_snapshot and renderer_owner. The native receipt can report counts, axes, tick list, legend box, dimensions, effective settings and requested/effective limits.

Tcl runtime operations

For the host, activate the provider with ::GX::modulePublicApiActivate plot.dataset PLOT_DATASET_API_v4. For variadic facades, the signature below is that of the actual owner. Names are case-sensitive.

Introspection

Signature and destination
apiInfo
Depending on the product
Effect, return value and conditions
Returns the descriptor: API ID/version, capabilities and schema; v3 includes deprecation and successor, v4 admitted types, owner and host operations. Related path.
Bridge operation
api_info
Signature and destination
capabilities
Depending on the product
Effect, return value and conditions
Returns the list of capability identifiers provided by the build. Native extensions can depend on the loaded library. Related path.
Bridge operation
Host surface only
Signature and destination
isOwned ref
Depending on the product
Effect, return value and conditions
Reads the figure marker. Returns true when owner and version match the native contract. Related path.
Bridge operation
Host surface only
Signature and destination
markOwned ref
Depending on the product
Effect, return value and conditions
Registers the native marker on the reference and returns the same reference. It is part of the life of a plot managed by the provider. Related path.
Bridge operation
Host surface only
Signature and destination
nativeBackendInfo
Depending on the product
Effect, return value and conditions
Queries the loaded native library and returns availability, protocol and native capabilities. A version without the required contract reports the reason. Related path.
Bridge operation
native_backend_info
Signature and destination
renderSettingsFieldTypes section ?graph = plot.dataset.xy?
Depending on the product
Effect, return value and conditions
Declares the types of the renderer settings fields used for descriptors and presentation persistence. Related path.
Bridge operation
Host surface only
Signature and destination
rendererOwnerForArtifact path
Depending on the product
Effect, return value and conditions
Resolves the file reference and returns the version/owner marker for a v4 output. Returns an empty value when the artifact is not associated with a v4 reference. Related path.
Bridge operation
Host surface only
Signature and destination
requireCapability capability
Depending on the product
Effect, return value and conditions
Returns 1 if the capability is available. Raises an error if the name is not supported. Related path.
Bridge operation
Host surface only
Signature and destination
supports capability
Depending on the product
Effect, return value and conditions
Checks an identifier from the capability list. Returns 1 or 0. Related path.
Bridge operation
Host surface only

Identity and specification

Signature and destination
applySpec ref spec
Depending on the product
Effect, return value and conditions
Applies the specification to the reference configuration, after validation. Returns the updated plot record. Use render to update the image. Related path.
Bridge operation
apply_spec
Signature and destination
createPlot graphId ?kind = base? ?sourceVariant = {}?
Depending on the product
Effect, return value and conditions
Creates the base or a variant by graph ID, optionally from the source variant. Returns PlotRef. Creation creates the identity; drawing requires render. Related path.
Bridge operation
Host surface only
Signature and destination
createPlotFromSpec spec ?kind = base? ?sourceVariant = {}?
Depending on the product
Effect, return value and conditions
Validates the specification, creates a base or a variant and applies the configuration to the new reference. Returns PlotRef. The legacy renderer rejects a right-Y-only configuration. Related path.
Bridge operation
create_plot
Signature and destination
deletePlot plotRef
Depending on the product
Delegates to ::GX::PlotDatasetAPIv1::deletePlot
Effect, return value and conditions
Deletes a variant and its configuration according to the framework lifecycle. The base has an enabled state. Returns the result of the operation. Related path.
Bridge operation
delete_plot
Signature and destination
deriveSpec ref
Depending on the product
Effect, return value and conditions
Derives a current PlotSpec from the persistent configuration of the reference, adapting the series and the presentation of the product. Related path.
Bridge operation
Host surface only
Signature and destination
getConfig plotRef key
Depending on the product
Delegates to ::GX::PlotDatasetAPIv1::getConfig
Effect, return value and conditions
Reads the configuration of the key from the reference, taking the product defaults into account. Related path.
Bridge operation
Host surface only
Signature and destination
loadSpec ref ?deriveIfMissing = 1?
Depending on the product
Effect, return value and conditions
Reads PlotSpec. deriveIfMissing = 1 allows derivation when the saved specification is missing; with 0 it requests the persistent specification. The content can depend on the saved graphics overrides. Related path.
Bridge operation
load_spec
Signature and destination
newSpec ?-graph_id id? ?-title testo? ?-panel_id id? ?-multi_panel auto|0|1?
Depending on the product
Delegates to ::GX::PlotDatasetAPIv2::newSpec
Effect, return value and conditions
Builds a draft. Flat options: -graph_id plot.dataset.xy, -title auto, -panel_id main, -multi_panel auto. Omitted values use these defaults. Rejects an odd number or unknown option names. Add at least one series before ordinary validation. Related path.
Bridge operation
newSpec, new_spec
Signature and destination
openPlot graphId ?variantId = {}?
Depending on the product
Delegates to ::GX::PlotDatasetAPIv1::openPlot
Effect, return value and conditions
Resolves a base or variant and returns PlotRef with module_id, graph_id, variant_id and plot_id. A nonexistent variant is rejected. Opening the reference does not start a window. Related path.
Bridge operation
open_plot
Signature and destination
panelIdsForArtifact path
Depending on the product
Delegates to ::GX::PlotDatasetAPIv2::panelIdsForArtifact
Effect, return value and conditions
Returns the IDs of the panels associated with the Plot Dataset file; useful for choosing the position in a persistent layout. Related path.
Bridge operation
Host surface only
Signature and destination
plotRefForArtifact path
Depending on the product
Delegates to ::GX::PlotDatasetAPIv2::plotRefForArtifact
Effect, return value and conditions
Resolves the provider reference of the current file. An unrelated or unrecognized artifact returns an empty result. Related path.
Bridge operation
Host surface only
Signature and destination
readPlot ref
Depending on the product
Effect, return value and conditions
Reads the configuration of the reference, series, identity, enabled state and artifacts. For 2D it includes PlotSpec. Optional resources can be missing before render. Related path.
Bridge operation
read_plot
Signature and destination
reconcilePersistentPlots
Depending on the product
Delegates to ::GX::PlotDatasetAPIv2::reconcilePersistentPlots
Effect, return value and conditions
Synchronizes the persistent PlotSpec representation with the identities and configuration managed in the current Session context. Use it in the host lifecycle. Related path.
Bridge operation
Host surface only
Signature and destination
removeSpec plotRef
Depending on the product
Delegates to ::GX::PlotDatasetAPIv2::removeSpec
Effect, return value and conditions
Removes the specification associated with the reference, keeping the plot identity. Returns 1 if present and removed, 0 otherwise. A later load can derive one from the configuration. Related path.
Bridge operation
remove_spec
Signature and destination
saveSpec ref spec
Depending on the product
Effect, return value and conditions
Validates and saves the specification in the Session. The host returns the save outcome, the Bridge wrapper translates it to 1. The rendered file requires a subsequent action. Related path.
Bridge operation
save_spec
Signature and destination
setConfig plotRef key value
Depending on the product
Delegates to ::GX::PlotDatasetAPIv1::setConfig
Effect, return value and conditions
Writes a configuration key allowed by the product descriptor. Value and validation depend on the key type. Updates the persistent configuration. Related path.
Bridge operation
Host surface only
Signature and destination
setPlotEnabled plotRef state
Depending on the product
Delegates to ::GX::PlotDatasetAPIv1::setPlotEnabled
Effect, return value and conditions
Sets the enabled/disabled boolean on the reference. Returns the normalized value. The choice affects use and the flows that honor the enabled state. Related path.
Bridge operation
set_plot_enabled
Signature and destination
setTitle plotRef title
Depending on the product
Delegates to ::GX::PlotDatasetAPIv1::setTitle
Effect, return value and conditions
Writes the figure title to the reference. The automatic value leaves the composition to the renderer. To see the change, regenerate the output. Related path.
Bridge operation
Host surface only
Signature and destination
specEquivalent first second
Depending on the product
Effect, return value and conditions
Compares the complete PlotSpec with the typed codec. The key order of objects is irrelevant, while array order and actual values remain significant.
Declared types: first (PlotSpec dictionary), second (PlotSpec dictionary). Returns boolean. Related path.
Bridge operation
Host surface only
Signature and destination
upsertPlotFromSpec producer key spec
Depending on the product
Effect, return value and conditions
Creates or updates a variant per product/producer-key pair. The key must have the prefix of the admitted producer. Returns the same PlotRef when the key exists. Related path.
Bridge operation
upsert_plot
Signature and destination
validateSpec spec
Depending on the product
Effect, return value and conditions
Validates the schema and the references of the accepted Datasets and variables. Returns 1 or an input error. Admission of a spec and actual preparation by the renderer are distinct steps. Related path.
Bridge operation
validate_spec

Series, panels and axes

Signature and destination
addPanel plotRef panelId
2D
Delegates to ::GX::PlotDatasetAPIv2::addPanel
Effect, return value and conditions
Adds the new ID to the specification. Use a compatible mode and a distinct ID. Returns the updated PlotSpec. Related path.
Bridge operation
add_panel
Signature and destination
getSeries plotRef seriesId
Depending on the product
Delegates to ::GX::PlotDatasetAPIv1::getSeries
Effect, return value and conditions
Returns the record of a series of the reference, with Dataset, variables and presentation. Related path.
Bridge operation
Host surface only
Signature and destination
listSeries plotRef ?includeDisabled = 1?
Depending on the product
Delegates to ::GX::PlotDatasetAPIv1::listSeries
Effect, return value and conditions
Returns the plot series in order. includeDisabled is 1 by default where exposed by the owner. Use 0 to exclude disabled rows. Related path.
Bridge operation
Host surface only
Signature and destination
movePanel plotRef panelId delta
2D
Delegates to ::GX::PlotDatasetAPIv2::movePanel
Effect, return value and conditions
Moves the panel by delta positions. Returns the updated PlotSpec, or unchanged at the edge. Related path.
Bridge operation
move_panel
Signature and destination
moveSeries plotRef seriesId direction
Depending on the product
Delegates to ::GX::PlotDatasetAPIv1::moveSeries
Effect, return value and conditions
Moves the series in the plot order according to direction. The end position limits the movement. Related path.
Bridge operation
Host surface only
Signature and destination
multiPanelEnabled plotRef
Depending on the product
Delegates to ::GX::PlotDatasetAPIv2::multiPanelEnabled
Effect, return value and conditions
Reads the boolean state of the panel stack. Related path.
Bridge operation
multi_panel_enabled
Signature and destination
panelIds plotRef
Depending on the product
Delegates to ::GX::PlotDatasetAPIv2::panelIds
Effect, return value and conditions
Returns the list of panel IDs in the configured order. Related path.
Bridge operation
panel_ids
Signature and destination
panelInfo plotRef panelId
Depending on the product
Delegates to ::GX::PlotDatasetAPIv2::panelInfo
Effect, return value and conditions
Returns the requested panel with its assignments, axes, title and annotations. Related path.
Bridge operation
panel_info
Signature and destination
removePanel ref panelId
2D
Effect, return value and conditions
Removes a compatible panel from the layout. Respects the minimum panel and relocates the series according to the lifecycle; check the remaining assignments. Related path.
Bridge operation
remove_panel
Signature and destination
removeSeries ref seriesId
Depending on the product
Effect, return value and conditions
Removes the specified Graph Series from the configuration; the next rendering reflects the operation. Related path.
Bridge operation
Host surface only
Signature and destination
setMultiPanel plotRef state
2D
Delegates to ::GX::PlotDatasetAPIv2::setMultiPanel
Effect, return value and conditions
Sets the stacking state of the product. Stacked mode belongs to XY; distributions and rectangle use a single panel. Related path.
Bridge operation
set_multi_panel
Signature and destination
setPanelAxis plotRef panelId axis fields
Depending on the product
Delegates to ::GX::PlotDatasetAPIv2::setPanelAxis
Effect, return value and conditions
Sets fields of the x, y_left or y_right axis of the panel. Pair both X tick fields when you change them. Returns the saved panel. Related path.
Bridge operation
set_panel_axis
Signature and destination
setPanelTitle plotRef panelId title
Depending on the product
Delegates to ::GX::PlotDatasetAPIv2::setPanelTitle
Effect, return value and conditions
Changes the panel caption. Returns the panel record. Related path.
Bridge operation
set_panel_title
Signature and destination
setSeries plotRef seriesId fields
Depending on the product
Delegates to ::GX::PlotDatasetAPIv1::setSeries
Effect, return value and conditions
Adds or updates the Graph Series by ID with the fields of the Graph Series contract, including Dataset, X/Y, side, label and filters. An invalid source is rejected. Related path.
Bridge operation
Host surface only
Signature and destination
setSeriesEnabled plotRef seriesId state
Depending on the product
Delegates to ::GX::PlotDatasetAPIv1::setSeriesEnabled
Effect, return value and conditions
Changes the enabled state of the series and checks the renderer conditions. The row reference stays stable. Related path.
Bridge operation
Host surface only
Signature and destination
setSeriesOrder plotRef orderedIds
Depending on the product
Delegates to ::GX::PlotDatasetAPIv1::setSeriesOrder
Effect, return value and conditions
Registers the sequence through the list of series IDs. Use the actual IDs and include the rows required by the owner. Related path.
Bridge operation
Host surface only
Signature and destination
setSeriesPanel plotRef seriesId panelId
2D
Delegates to ::GX::PlotDatasetAPIv2::setSeriesPanel
Effect, return value and conditions
Assigns a series to the chosen panel and returns the updated specification. Use existing series and panel IDs. Related path.
Bridge operation
set_series_panel
Signature and destination
setSeriesPresentation plotRef seriesId fields
Depending on the product
Delegates to ::GX::PlotDatasetAPIv2::setSeriesPresentation
Effect, return value and conditions
Edits the representation properties of the existing series, such as kind, style, band or errors. Returns the updated series after validation. Related path.
Bridge operation
set_series_presentation
Signature and destination
sharedXAxisGet plotRef
Depending on the product
Delegates to ::GX::PlotDatasetAPIv2::sharedXAxisGet
Effect, return value and conditions
Reads the common X configuration with scale, step, minor grid, unit if resolved and tick pairs. Related path.
Bridge operation
shared_x_axis_get
Signature and destination
sharedXAxisSet plotRef fields
Depending on the product
Delegates to ::GX::PlotDatasetAPIv2::sharedXAxisSet
Effect, return value and conditions
Updates the admitted common X fields and projects them onto the panels. Converts the positions if the unit changes and the pairs are kept. Rejects incomplete pairs, conflicts and non-positive log ticks. Related path.
Bridge operation
shared_x_axis_set

Rendering and exchange

Signature and destination
artifacts ref
Depending on the product
Effect, return value and conditions
Lists destination, PNG, cache and candidate summary. Existing reports which files exist. v4 adds native snapshot and owner. Related path.
Bridge operation
artifacts
Signature and destination
captureForArtifact artifact destination
Depending on the product
Effect, return value and conditions
Freezes sources and presentation of an eligible scientific artifact into the host directory. Rejects non-admitted sources or resources. Related path.
Bridge operation
Host surface only
Signature and destination
modelFromSpec spec ?context = {}?
Depending on the product
Effect, return value and conditions
Prepares a native model from the admissible PlotSpec, with sources, axes, presentation markers and limits. Does not write a persistent plot. Related path.
Bridge operation
Host surface only
Signature and destination
openEditor ref
Depending on the product
Effect, return value and conditions
Opens the existing editor for the reference. Requires active Tcl GUI and Session contexts. Related path.
Bridge operation
Host surface only
Signature and destination
render ref
Depending on the product
Effect, return value and conditions
Prepares the sources and produces the artifacts of the reference. The result includes execution and artifacts; v4 includes renderer_owner and receipt when native. Data, schema or rendering errors can stop the step. Related path.
Bridge operation
render
Signature and destination
renderCommand ref ?operation = render?
Depending on the product
Effect, return value and conditions
Returns the renderer invocation allowed by the host for the requested operation. The default is render. It serves orchestration, without starting the Job by itself. Related path.
Bridge operation
Host surface only
Signature and destination
renderModel model destination ?width = 1000? ?height = 720?
Depending on the product
Effect, return value and conditions
Draws an admitted model to a PNG, SVG or PDF host destination. Validates the source context and returns dimensions, axes and receipt depending on the type. The managed wrapper render_model has a different surface.
Declared types: model (PreparedModel), destination (OutputPath), width (PixelCount), height (PixelCount). Returns NativePlotReceipt. Related path.
Bridge operation
render_model
Signature and destination
renderSnapshot directory graph
Depending on the product
Effect, return value and conditions
Regenerates the plot from its authorized snapshot, using the legacy or native owner. Destination and clone state remain the host’s responsibility. Related path.
Bridge operation
Host surface only
Signature and destination
renderTransientCurve3D xs ys zs label destination
3D
Effect, return value and conditions
Prepares the temporary curve from X/Y/Z sequences and caption in the host destination. Related path.
Bridge operation
Host surface only
Signature and destination
renderTransientCurves2D xs series label destination ?xUnit = {}?
2D
Effect, return value and conditions
Prepares 2D curves that share an X sequence with label and optional unit. Returns the temporary rendering in the host context. Related path.
Bridge operation
Host surface only
Signature and destination
renderTransientIndependentCurves2D series label destination
2D
Effect, return value and conditions
Prepares 2D curves with independent X/Y pairs, allowed styles and captions. Returns temporary artifacts. Related path.
Bridge operation
Host surface only
Signature and destination
renderTransientOverlay artifact xs ys label destination
Depending on the product
Effect, return value and conditions
Prepares a temporary rendering with the given X/Y curve over a valid source plot. Uses a host working directory. Related path.
Bridge operation
Host surface only
Signature and destination
rerender ref
Depending on the product
Effect, return value and conditions
Regenerates the current reference. In v4 it uses the same render path. Check timestamp, owner, output and errors before using the file. Related path.
Bridge operation
rerender
Signature and destination
snapshotCopy source destination
Depending on the product
Effect, return value and conditions
Copies an admissible snapshot to the host destination, keeping data and internal relationships. Related path.
Bridge operation
Host surface only
Signature and destination
snapshotPresentationFields directory graph
Depending on the product
Effect, return value and conditions
Extracts the presentation fields available for editing a native snapshot. Related path.
Bridge operation
Host surface only
Signature and destination
snapshotPresentationSet directory graph fields
Depending on the product
Effect, return value and conditions
Updates the admitted presentation fields in the chosen snapshot after validation; the frozen sources stay the same. Related path.
Bridge operation
Host surface only
Signature and destination
snapshotValidate directory ?graph = {}?
Depending on the product
Effect, return value and conditions
Validates directory, manifest and resources of a native snapshot; graph can limit the check to the selected resource. Returns admission data or an error. Related path.
Bridge operation
Host surface only
Signature and destination
writeGeometry model receipt destination
Depending on the product
Effect, return value and conditions
Writes the raster calibration metadata for the native result, starting from the receipt and the actual dimensions. Related path.
Bridge operation
Host surface only
Signature and destination
writePointIndex artifact destination
Depending on the product
Effect, return value and conditions
Writes an index of the points of an eligible artifact to the host destination, with source row identity. Requires valid scientific support. Related path.
Bridge operation
Host surface only

Native2D, cells and inspection

Signature and destination
cellFieldNativeScene spec
3D
Effect, return value and conditions
Projects the triangular field onto a flat Native3D scene with Z = 0 and scalar color. Requires compatible spatial coordinates. Exposes levels and scene fields.
Declared types: spec (PlotSpecOrPreparedModel). Returns NativeSceneDictionary. Related path.
Bridge operation
cell_field_native_scene
Signature and destination
cellFieldProfileSpec fieldSpec
2D
Effect, return value and conditions
Authenticates the field specification and creates a scatter series of scalar against centroid abscissa. Uses the existing samples with all ordinates, without interpolation.
Declared types: fieldSpec (CellFieldPlotSpec). Returns PlotSpec. Related path.
Bridge operation
cell_field_profile_spec
Signature and destination
cellFieldSourceIdentity spec
2D
Effect, return value and conditions
Checks the topology of the PlotSpec and returns the specification plus sources and canonical coordinates of the cell and node Datasets.
Declared types: spec (PlotSpecOrPreparedModel). Returns CellFieldSourceIdentityDictionary. Related path.
Signature and destination
cellFieldSpec dataset xVariable yVariable binding ?title = Cell-associated field?
2D
Effect, return value and conditions
Builds a one-panel PlotSpec from a cell Dataset with centroid coordinates and binding of the node references. Requires three distinct connectivity variables and real integer IDs.
Declared types: dataset (DatasetID), xVariable (VariableID), yVariable (VariableID), binding (CellFieldBindingDictionary), title (String). Returns PlotSpec. Related path.
Bridge operation
cell_field_spec
Signature and destination
comparisonModel ownerBinding comparisonRecord ?options = {}?
2D
Effect, return value and conditions
Prepares a view from the numerical result and the binding of the Curve Workbench owner. Revalidates identities, geometries and request. The returned model is derived and uses the receipt samples. In the host test, a binding without api_id was rejected. The comparison modes published by Curve Viewer are illustrated separately.
Declared types: ownerBinding (ComparisonOwnerBinding), comparisonRecord (NativeComparisonRecord), options (Dictionary). Returns PreparedDerivedComparisonModel. Related path.
Bridge operation
Host surface only
Signature and destination
scientificModel datasetId xId series coordinateContext ?options = {}?
2D
Effect, return value and conditions
Prepares the view of the traces of the same Dataset/X source in a public coordinate context. Requires verifiable descriptors and display. Returns a temporary model.
Declared types: datasetId (DatasetId), xId (VariableId), series (PreparedCurveSourceTraces), coordinateContext (CoordinateSnapshot), options (Dictionary). Returns PreparedScientificModel. Related path.
Bridge operation
scientific_model
Signature and destination
widgetChrome path
2D
Effect, return value and conditions
Manages the presentation of the native view controls in the admitted GUI context. Related path.
Bridge operation
Host surface only
Signature and destination
widgetComparisonReceipt path
2D
Effect, return value and conditions
Returns the receipt of the admitted comparison scene and the owner’s derived metadata, after checking the request. Related path.
Bridge operation
Host surface only
Signature and destination
widgetConfigure path spec ?context = {}?
2D
Effect, return value and conditions
Reconfigures an already owned widget with a new source or a new model. If admission fails, it keeps the previously accepted model.
Declared types: path (TkWidgetPath), spec (PlotSpecOrPreparedModel), context (HostContextDictionary). Returns TkWidgetPath. Related path.
Bridge operation
Host surface only
Signature and destination
widgetCreate path spec ?context = {}?
2D
Effect, return value and conditions
Allocates the Native2D controller at a free Tk path after admission of the specification or model and of the context. Returns the path.
Declared types: path (TkWidgetPath), spec (PlotSpecOrPreparedModel), context (HostContextDictionary). Returns TkWidgetPath. Related path.
Bridge operation
Host surface only
Signature and destination
widgetDestroy path
2D
Effect, return value and conditions
Releases a widget and its controller. An unknown path produces a cleanup outcome with no scientific result.
Declared types: path (TkWidgetPath). Returns CleanupResult. Related path.
Bridge operation
Host surface only
Signature and destination
widgetDraw path
2D
Effect, return value and conditions
Draws and returns the receipt of the current native frame at the actual dimensions.
Declared types: path (TkWidgetPath). Returns NativePlotReceipt. Related path.
Bridge operation
Host surface only
Signature and destination
widgetEdit path spec
2D
Effect, return value and conditions
Reconfigures the widget with the new PlotSpec using the context already stored. The new configuration is admitted by the same routine as widgetConfigure.
Declared types: path (TkWidgetPath), spec (PlotSpecOrPreparedModel). Returns TkWidgetPath. Related path.
Bridge operation
Host surface only
Signature and destination
widgetExport path destination ?width = 1000? ?height = 720?
2D
Effect, return value and conditions
Writes a copy of the native view frame to the authorized host output.
Declared types: path (TkWidgetPath), destination (HostOutputPath), width (PixelCount), height (PixelCount). Returns HostOutputPath. Related path.
Bridge operation
Host surface only
Signature and destination
widgetHit path x y
2D
Effect, return value and conditions
Returns the hit-test result on the frame, with sample identity or element exposed by the owner.
Declared types: path (TkWidgetPath), x (PixelCoordinate), y (PixelCoordinate). Returns NativeHitReceipt. Related path.
Bridge operation
Host surface only
Signature and destination
widgetLegendGesture path operation args
2D
Effect, return value and conditions
Handles begin/move/finish/cancel with device coordinates for the legend. Finish returns the admitted placement to apply to the specification.
Declared types: path (owned native Plot widget), operation (choice), args (bounded device coordinates). Returns gesture result. Related path.
Bridge operation
Host surface only
Signature and destination
widgetPointer path operation x y ?factor = {}?
2D
Effect, return value and conditions
Applies an input gesture, pan_start, pan, zoom or fit, with device coordinates and a factor when required.
Declared types: path (TkWidgetPath), operation (Enum), x (PixelCoordinate), y (PixelCoordinate), factor (PositiveFiniteNumber). Returns NotificationResult. Related path.
Bridge operation
Host surface only
Signature and destination
widgetReceipt path ?withPresentation = 0?
2D
Effect, return value and conditions
Reads the widget receipt. The detailed receipt variant includes the available limits, ticks and presentation.
Declared types: path (owned native Plot widget), withPresentation (boolean). Returns receipt dictionary. Related path.
Bridge operation
Host surface only
Signature and destination
widgetRetain path reason
2D
Effect, return value and conditions
Keeps the previous frame during preparation, error or cancellation and blocks interactions that are no longer valid. A valid reconfiguration reactivates the widget.
Declared types: path (TkWidgetPath), reason (String). Returns PreviousRenderReceipt. Related path.
Bridge operation
Host surface only
Signature and destination
widgetValidateSources spec ?context = {}?
2D
Effect, return value and conditions
Checks the sources as a preflight without allocating a widget. Returns valid and source_count, or a rejection. Creation and reconfiguration check again.
Declared types: spec (PlotSpecOrPreparedModel), context (HostContextDictionary). Returns SourceValidationDictionary. Related path.
Bridge operation
validate_sources
Signature and destination
widgetView path operation args
2D
Effect, return value and conditions
Applies fit, restore with a list of axes obtained from the receipt, or a view change on the given panel. Schedules drawing after a valid change.
Declared types: path (TkWidgetPath), operation (NativeViewOperation), args (TclArgumentList). Returns SchedulingResult. Related path.
Bridge operation
Host surface only
Signature and destination
widgetVisibility path panel series visible
2D
Effect, return value and conditions
Sets the visibility of series in panel and returns widget, model_token, panel_id, series_id and visible. Keeps binding and source geometry.
Declared types: path (TkWidgetPath), panel (PanelID), series (SeriesID), visible (Boolean). Returns VisibilityReceipt. Related path.
Bridge operation
Host surface only

Scene, representation and 3D preview

Signature and destination
activateInteractive id
3D
Effect, return value and conditions
Activates the interactive representation of the ID in the viewer. Related path.
Bridge operation
Host surface only
Signature and destination
buildScene ref ?id = {}?
3D
Effect, return value and conditions
Creates or synchronizes a scientific representation from the 3D reference. The optional ID identifies the representation to reuse in the host context. Related path.
Bridge operation
build_scene
Signature and destination
consultationExportCommand reference directory
3D
Effect, return value and conditions
Returns the invocation of the authorized exporter of the 3D inspection. Requires an admitted working directory and source.
Declared types: reference (GraphResourceReference), directory (TemporaryDirectory). Returns CommandArgv. Related path.
Bridge operation
Host surface only
Signature and destination
consultationReceipt hostWindow
3D
Effect, return value and conditions
Presents the receipt of the 3D inspection and of its sources, read-only.
Declared types: hostWindow (OwnedHostWindow). Returns Scientific3DReceipt. Related path.
Bridge operation
Host surface only
Signature and destination
consultationScene reference expectedSourceKey directory
3D
Effect, return value and conditions
Admits the scene produced for the expected source and returns data, figure and receipt.
Declared types: reference (GraphResourceReference), expectedSourceKey (ScientificSourceKey), directory (TemporaryDirectory). Returns NativeSceneDescriptor. Related path.
Bridge operation
consultation_scene
Signature and destination
consultationSource reference
3D
Effect, return value and conditions
Resolves source and immutable identity of a provider reference that can be inspected in the 3D context.
Declared types: reference (GraphResourceReference). Returns Scientific3DSource. Related path.
Bridge operation
consultation_source
Signature and destination
export3D ref destination
3D
Effect, return value and conditions
Exports the 3D output from the reference to the host destination. Related path.
Bridge operation
Host surface only
Signature and destination
interactiveRepresentations
3D
Effect, return value and conditions
Lists the available persistent representations with identity and state, in the Session context. Related path.
Signature and destination
interactiveScene id
3D
Effect, return value and conditions
Reads scene and figure of the current representation from the Session with layers resolved by the owner.
Declared types: id (Plot v4 representation Workspace ID). Returns CORE Viewer Scene dictionary. Related path.
Bridge operation
Host surface only
Signature and destination
interactiveSourceInfo ref
3D
Effect, return value and conditions
Reads the description and source state of the 3D reference. Related path.
Bridge operation
interactive_source_info
Signature and destination
interactiveSources
3D
Effect, return value and conditions
Lists the 3D source references that the service can associate with representations. Related path.
Bridge operation
interactive_sources
Signature and destination
interactiveStatus id
3D
Effect, return value and conditions
Reads SYNCED, OUT OF SYNC or SOURCE MISSING for the representation identity. Related path.
Bridge operation
interactive_status
Signature and destination
openInteractive ref
3D
Effect, return value and conditions
Opens the interactive representation of the 3D scientific reference, with the owner’s viewer. Related path.
Bridge operation
Host surface only
Signature and destination
openRepresentation id
3D
Effect, return value and conditions
Opens the persistent 3D representation of the admitted ID. Related path.
Bridge operation
Host surface only
Signature and destination
prepare3DPreview ref directory
3D
Effect, return value and conditions
Prepares the 3D preview from the model/reference and checks the sources. Related path.
Bridge operation
Host surface only
Signature and destination
previewCompatibility ref
3D
Effect, return value and conditions
Queries availability and limits of the 3D reference for the preview path. Related path.
Bridge operation
Host surface only
Signature and destination
previewExportCommand ref directory
3D
Effect, return value and conditions
Prepares the worker command to export a 3D scene for reading. The directory is owned by the host. Related path.
Bridge operation
Host surface only
Signature and destination
previewSpecAcquire parent spec ?options = {}?
3D
Effect, return value and conditions
Starts the asynchronous host of the Native3D draft in the owning Tk parent; receives admitted visibility options.
Declared types: parent (original host argument), spec (original host argument), options (original host argument). Returns host token. Related path.
Bridge operation
Host surface only
Signature and destination
previewSpecCamera host action
3D
Effect, return value and conditions
Manages the camera of the 3D draft: left/right/up/down/cw/ccw/fit/reset.
Declared types: host (original host argument), action (original host argument). Returns owner action result. Related path.
Bridge operation
Host surface only
Signature and destination
previewSpecControls host visible
3D
Effect, return value and conditions
Shows or hides the compact camera controls.
Declared types: host (original host argument), visible (original host argument). Returns owner action result. Related path.
Bridge operation
Host surface only
Signature and destination
previewSpecExportCommand spec directory
3D
Effect, return value and conditions
Returns the worker command and binds the 3D draft spec and its fingerprint to the temporary directory.
Declared types: spec (original host argument), directory (original host argument). Returns Tcl list. Related path.
Bridge operation
Host surface only
Signature and destination
previewSpecPublicationSpec host spec ?targetRef = {}?
3D
Effect, return value and conditions
Builds the publication specification from the already admitted 3D draft, with frozen visual fallbacks and optional check of the existing reference.
Declared types: host (original host argument), spec (original host argument), targetRef (original host argument). Returns dictionary. Related path.
Bridge operation
Host surface only
Signature and destination
previewSpecReceipt host
3D
Effect, return value and conditions
Reads ready/busy/pending, source, view and controls of the open draft.
Declared types: host (original host argument). Returns dictionary. Related path.
Bridge operation
Host surface only
Signature and destination
previewSpecRelease parent
3D
Effect, return value and conditions
Releases the draft host owned by the given parent.
Declared types: parent (original host argument). Returns owner action result. Related path.
Bridge operation
Host surface only
Signature and destination
previewSpecScene spec expected directory
3D
Effect, return value and conditions
Reads and validates the 3D scene produced by the draft against the expected identity.
Declared types: spec (original host argument), expected (original host argument), directory (original host argument). Returns dictionary. Related path.
Bridge operation
Host surface only
Signature and destination
previewSpecSource spec
3D
Effect, return value and conditions
Derives the canonical identity of the open 3D draft.
Declared types: spec (original host argument). Returns dictionary. Related path.
Bridge operation
Host surface only
Signature and destination
refreshInteractive ref
3D
Effect, return value and conditions
Requests an update of the interactive reference starting from the resolved product. Related path.
Bridge operation
Host surface only
Signature and destination
render3D ref
3D
Effect, return value and conditions
Regenerates the Native3D output of the persistent reference. Related path.
Bridge operation
Host surface only
Signature and destination
render3DSpec spec destination ?settingsName = {}?
3D
Effect, return value and conditions
Performs a Native3D hardcopy from the admitted spec to the host destination. Related path.
Bridge operation
Host surface only
Signature and destination
saveInteractivePresentation id
3D
Effect, return value and conditions
Registers the presentation state of the active 3D representation in the owner context. Related path.
Bridge operation
Host surface only
Signature and destination
sourceFingerprint ref
3D
Effect, return value and conditions
Computes the fingerprint of the 3D source reference to detect changes. Related path.
Bridge operation
source_fingerprint
Signature and destination
syncInteractive id
3D
Effect, return value and conditions
Explicitly synchronizes the representation with the source and can open the viewer. Returns the scene or diagnostics. Related path.
Bridge operation
sync_interactive
Signature and destination
xyzConsultationChunk w
3D
Effect, return value and conditions
Returns an admitted block of the XYZ inspection in the prepared context.
Declared types: w (OwnedHostWindow). Returns PreparationNotification. Related path.
Bridge operation
Host surface only
Signature and destination
xyzConsultationPrepare id axes w
3D
Effect, return value and conditions
Prepares the admitted XYZ source for inspection, with the current parameters and context.
Declared types: id (DatasetId), axes (VariableIdList), w (OwnedHostWindow). Returns PreparationNotification. Related path.
Bridge operation
Host surface only
Signature and destination
xyzConsultationSource datasetId axes
3D
Effect, return value and conditions
Builds the 3D inspection reference from a Dataset and canonical XYZ variables.
Declared types: datasetId (DatasetId), axes (VariableIdList). Returns ScientificXYZSource. Related path.
Bridge operation
xyz_source
Signature and destination
xyzCoordinatePresentation context axes canonicalPoints
3D
Effect, return value and conditions
Projects XYZ coordinates from the canonical context into the declared limits, keeping the distinction between values and view.
Declared types: context (CoordinateSnapshot), axes (VariableIdList), canonicalPoints (FiniteXYZTriples). Returns XYZCoordinatePresentation. Related path.

Operations registered in Script Bridge

Use gxtxt_api_call in the managed Job. The outer Python list or the outer Octave cell contains the positional arguments. Here, availability indicates the shared keys of the installed registry. The manual’s recipes show the 2D calls that were run and the branches with verified rejection.

Operation and signature
add_panel
plot_ref (struct), panel_id (string)
Job contract
Adds the new ID to the specification. Use a compatible mode and a distinct ID. Returns the updated PlotSpec. Registered contract: PlotSpec struct.
Link to the runtime
addPanel
Operation and signature
api_info
no arguments
Job contract
Returns the descriptor: API ID/version, capabilities and schema; v3 includes deprecation and successor, v4 admitted types, owner and host operations. Registered contract: descriptor struct.
Link to the runtime
apiInfo
Operation and signature
apply_spec
plot_ref (struct), spec (struct)
Job contract
Applies the specification to the reference configuration, after validation. Returns the updated plot record. Use render to update the image. Registered contract: plot record struct.
Link to the runtime
applySpec
Operation and signature
artifacts
plot_ref (struct)
Job contract
Lists destination, PNG, cache and candidate summary. Existing reports which files exist. v4 adds native snapshot and owner. Registered contract: artifact struct.
Link to the runtime
artifacts
Operation and signature
build_scene
plot_ref (struct)
Job contract
Creates or synchronizes a scientific representation from the 3D reference. The optional ID identifies the representation to reuse in the host context. Registered contract: representation struct.
Link to the runtime
buildScene
Operation and signature
cell_field_native_scene
spec (complete canonical cell-field PlotSpec)
Job contract
Projects the triangular field onto a flat Native3D scene with Z = 0 and scalar color. Requires compatible spatial coordinates. Exposes levels and scene fields. Registered contract: Closed typed canonical source projection or execution-owned immutable display-model handle; XYZ canonical_columns retain original TableStream dtype/values/unit/value_kind/value_format; points are derived float64 display, not scientific source data; actual source/revision/coordinate/Session guards retained. Render returns bounded original native PNG bytes and cleans its temporary output. No caller arrays/model/context/path/callback, independent calibration or scientific publication..
Link to the runtime
cellFieldNativeScene
Operation and signature
cell_field_profile_spec
spec (complete canonical cell-field PlotSpec)
Job contract
Authenticates the field specification and creates a scatter series of scalar against centroid abscissa. Uses the existing samples with all ordinates, without interpolation. Registered contract: Closed typed canonical source projection or execution-owned immutable display-model handle; XYZ canonical_columns retain original TableStream dtype/values/unit/value_kind/value_format; points are derived float64 display, not scientific source data; actual source/revision/coordinate/Session guards retained. Render returns bounded original native PNG bytes and cleans its temporary output. No caller arrays/model/context/path/callback, independent calibration or scientific publication..
Link to the runtime
cellFieldProfileSpec
Operation and signature
cell_field_source_identity
spec (complete canonical cell-field PlotSpec)
Job contract
Checks the topology of the PlotSpec and returns the specification plus sources and canonical coordinates of the cell and node Datasets. Registered contract: Closed typed canonical source projection or execution-owned immutable display-model handle; XYZ canonical_columns retain original TableStream dtype/values/unit/value_kind/value_format; points are derived float64 display, not scientific source data; actual source/revision/coordinate/Session guards retained. Render returns bounded original native PNG bytes and cleans its temporary output. No caller arrays/model/context/path/callback, independent calibration or scientific publication..
Link to the runtime
cellFieldSourceIdentity
Operation and signature
cell_field_spec
dataset_id (string), x_variable_id (string), y_variable_id (string), binding (struct), title (string, optional)
Job contract
Builds a one-panel PlotSpec from a cell Dataset with centroid coordinates and binding of the node references. Requires three distinct connectivity variables and real integer IDs. Registered contract: PlotSpec with explicit GXTXT_CELL_FIELD_BINDING_v1; no interpolation.
Link to the runtime
cellFieldSpec
Operation and signature
consultation_scene
source (opaque consultation source from this execution)
Job contract
Uses the consultation_source handle. The wrapper prepares and returns a scene limited to the contract and does not accept an executable or a destination from the caller. Registered contract: Current canonical provider source handle or bounded original verified VTP layer bytes and physical-unit/view metadata. Exact source-generated installed exporter argv executes without shell only in a private temporary directory, original producer/source expectation and consultationScene validation remain authoritative; source/revision/coordinates/Session rechecked before/after. No caller command/directory/key/receipt/path/arrays or durable scene/publication authority..
Link to the runtime
consultationScene
Operation and signature
consultation_source
reference (declared canonical provider Graph reference)
Job contract
Receives a 3D provider reference. Returns a Job source handle and the summary with identity, fingerprint and references. Revalidates the source on read. Registered contract: Current canonical provider source handle or bounded original verified VTP layer bytes and physical-unit/view metadata. Exact source-generated installed exporter argv executes without shell only in a private temporary directory, original producer/source expectation and consultationScene validation remain authoritative; source/revision/coordinates/Session rechecked before/after. No caller command/directory/key/receipt/path/arrays or durable scene/publication authority..
Link to the runtime
consultationSource
Operation and signature
create_plot
spec (PlotSpec v2 struct), kind (base or variant), source_variant (string, optional)
Job contract
Validates the specification, creates a base or a variant and applies the configuration to the new reference. Returns PlotRef. The legacy renderer rejects a right-Y-only configuration. Registered contract: plot reference struct.
Link to the runtime
createPlotFromSpec
Operation and signature
delete_plot
plot_ref (struct)
Job contract
The call accepts only a deletable variant reference. Returns 1 on success. Registered contract: integer 0 or 1.
Link to the runtime
deletePlot
Operation and signature
interactive_representations
no arguments
Job contract
Lists the available persistent representations with identity and state, in the Session context. Registered contract: cell of representation structs.
Link to the runtime
interactiveRepresentations
Operation and signature
interactive_source_info
plot_ref (struct)
Job contract
Reads the description and source state of the 3D reference. Registered contract: source struct.
Link to the runtime
interactiveSourceInfo
Operation and signature
interactive_sources
no arguments
Job contract
Lists the 3D source references that the service can associate with representations. Registered contract: cell of plot references.
Link to the runtime
interactiveSources
Operation and signature
interactive_status
representation_id (string)
Job contract
Reads SYNCED, OUT OF SYNC or SOURCE MISSING for the representation identity. Registered contract: status string.
Link to the runtime
interactiveStatus
Operation and signature
load_spec
plot_ref (struct), derive_if_missing (integer, optional)
Job contract
Reads PlotSpec. deriveIfMissing = 1 allows derivation when the saved specification is missing; with 0 it requests the persistent specification. The content can depend on the saved graphics overrides. Registered contract: PlotSpec struct.
Link to the runtime
loadSpec
Operation and signature
move_panel
plot_ref (struct), panel_id (string), delta (integer)
Job contract
Moves the panel by delta positions. Returns the updated PlotSpec, or unchanged at the edge. Registered contract: PlotSpec struct.
Link to the runtime
movePanel
Operation and signature
multi_panel_enabled
plot_ref (struct)
Job contract
Reads the boolean state of the panel stack. Registered contract: integer 0 or 1.
Link to the runtime
multiPanelEnabled
Operation and signature
native_backend_info
no arguments
Job contract
Queries the loaded native library and returns availability, protocol and native capabilities. A version without the required contract reports the reason. Registered contract: native backend metadata with explicit availability and capability IDs.
Link to the runtime
nativeBackendInfo
Operation and signature
newSpec
option_value_pairs (zero or more original flat text option/value arguments, optional)
Job contract
Runs the original constructor with flat text arguments. An empty list means all defaults. An odd number and unknown options are rejected. Returns PlotSpec. Registered contract: Original newSpec fields through existing _plot_spec and unchanged owner defaults/options/errors; native Octave NUL requires the shared String codec at both endpoints.
Link to the runtime
newSpec
Operation and signature
new_spec
graph_id (string), title (string)
Job contract
Accepts graph_id and title as mandatory positional strings. Returns the PlotSpec draft, to be completed with panels and series. Registered contract: PlotSpec v2 struct.
Link to the runtime
newSpec
Operation and signature
open_plot
graph_id (string), variant_id (string, optional)
Job contract
Resolves a base or variant and returns PlotRef with module_id, graph_id, variant_id and plot_id. A nonexistent variant is rejected. Opening the reference does not start a window. Registered contract: plot reference struct.
Link to the runtime
openPlot
Operation and signature
panel_ids
plot_ref (struct)
Job contract
Returns the list of panel IDs in the configured order. Registered contract: cell of panel IDs.
Link to the runtime
panelIds
Operation and signature
panel_info
plot_ref (struct), panel_id (string)
Job contract
Returns the requested panel with its assignments, axes, title and annotations. Registered contract: panel struct.
Link to the runtime
panelInfo
Operation and signature
read_plot
plot_ref (struct)
Job contract
Reads the configuration of the reference, series, identity, enabled state and artifacts. For 2D it includes PlotSpec. Optional resources can be missing before render. Registered contract: plot record struct.
Link to the runtime
readPlot
Operation and signature
remove_panel
plot_ref (struct), panel_id (string)
Job contract
Removes a compatible panel from the layout. Respects the minimum panel and relocates the series according to the lifecycle; check the remaining assignments. Registered contract: PlotSpec struct.
Link to the runtime
removePanel
Operation and signature
remove_spec
plot_ref (struct)
Job contract
Removes the specification associated with the reference, keeping the plot identity. Returns 1 if present and removed, 0 otherwise. A later load can derive one from the configuration. Registered contract: integer 0 or 1.
Link to the runtime
removeSpec
Operation and signature
render
plot_ref (struct)
Job contract
Prepares the sources and produces the artifacts of the reference. The result includes execution and artifacts; v4 includes renderer_owner and receipt when native. Data, schema or rendering errors can stop the step. Registered contract: render result struct.
Link to the runtime
render
Operation and signature
render_model
model (execution-owned immutable scientific model), options (optional bounded width/height, optional)
Job contract
Receives a Job handle and an optional width/height dictionary (default 960 × 580, integers 64–2048). Returns the encapsulated PNG with dimensions, SHA-256, axis receipt and identity. Admits only the two fields; the Job checks the validity of the model and the size of the PNG. Registered contract: Closed typed canonical source projection or execution-owned immutable display-model handle; XYZ canonical_columns retain original TableStream dtype/values/unit/value_kind/value_format; points are derived float64 display, not scientific source data; actual source/revision/coordinate/Session guards retained. Render returns bounded original native PNG bytes and cleans its temporary output. No caller arrays/model/context/path/callback, independent calibration or scientific publication..
Link to the runtime
renderModel
Operation and signature
rerender
plot_ref (struct)
Job contract
Regenerates the current reference. In v4 it uses the same render path. Check timestamp, owner, output and errors before using the file. Registered contract: render result struct.
Link to the runtime
rerender
Operation and signature
save_spec
plot_ref (struct), spec (struct)
Job contract
The wrapper returns 1 when saving succeeds. To redraw, use render. Registered contract: integer 1.
Link to the runtime
saveSpec
Operation and signature
scientific_model
sources (existing execution-owned Curve Source tokens)
Job contract
Accepts a list of Curve Source handles opened in the same Job, from 1 to 512 and with no duplicates. The sources must share Dataset and X. Returns model handle, trace_count, dataset_id, x_variable_id, identity and fingerprint. Limit of 16 models per Job. Use render_model. Registered contract: Closed typed canonical source projection or execution-owned immutable display-model handle; XYZ canonical_columns retain original TableStream dtype/values/unit/value_kind/value_format; points are derived float64 display, not scientific source data; actual source/revision/coordinate/Session guards retained. Render returns bounded original native PNG bytes and cleans its temporary output. No caller arrays/model/context/path/callback, independent calibration or scientific publication..
Link to the runtime
scientificModel
Operation and signature
set_multi_panel
plot_ref (struct), state (integer)
Job contract
Sets the stacking state of the product. Stacked mode belongs to XY; distributions and rectangle use a single panel. Registered contract: integer 0 or 1.
Link to the runtime
setMultiPanel
Operation and signature
set_panel_axis
plot_ref (struct), panel_id (string), axis (string), fields (struct)
Job contract
Sets fields of the x, y_left or y_right axis of the panel. Pair both X tick fields when you change them. Returns the saved panel. Registered contract: panel struct.
Link to the runtime
setPanelAxis
Operation and signature
set_panel_title
plot_ref (struct), panel_id (string), title (string)
Job contract
Changes the panel caption. Returns the panel record. Registered contract: panel struct.
Link to the runtime
setPanelTitle
Operation and signature
set_plot_enabled
plot_ref (struct), state (integer)
Job contract
Returns 0 or 1 as the new normalized value. Acts on the existing reference. Registered contract: integer 0 or 1.
Link to the runtime
setPlotEnabled
Operation and signature
set_series_panel
plot_ref (struct), series_id (string), panel_id (string)
Job contract
Assigns a series to the chosen panel and returns the updated specification. Use existing series and panel IDs. Registered contract: PlotSpec struct.
Link to the runtime
setSeriesPanel
Operation and signature
set_series_presentation
plot_ref (struct), series_id (string), fields (struct)
Job contract
Edits the representation properties of the existing series, such as kind, style, band or errors. Returns the updated series after validation. Registered contract: series struct.
Link to the runtime
setSeriesPresentation
Operation and signature
shared_x_axis_get
plot_ref (struct)
Job contract
Reads the common X configuration with scale, step, minor grid, unit if resolved and tick pairs. Registered contract: shared X axis struct.
Link to the runtime
sharedXAxisGet
Operation and signature
shared_x_axis_set
plot_ref (struct), fields (struct)
Job contract
Receives a structure of shared X fields. Returns the axis state after the update. The tick pairs are two coordinated strings. Registered contract: shared X axis struct.
Link to the runtime
sharedXAxisSet
Operation and signature
source_fingerprint
plot_ref (struct)
Job contract
Computes the fingerprint of the 3D source reference to detect changes. Registered contract: fingerprint string.
Link to the runtime
sourceFingerprint
Operation and signature
sync_interactive
representation_id (string)
Job contract
Explicitly synchronizes the representation with the source and can open the viewer. Returns the scene or diagnostics. Registered contract: scene struct.
Link to the runtime
syncInteractive
Operation and signature
upsert_plot
provider_key (string), spec (PlotSpec v2 struct)
Job contract
The Job uses the current producer and adds the prefix to the key. Returns PlotRef, keeping the ID if the key already identifies the variant of the same product. Registered contract: plot reference struct.
Link to the runtime
upsertPlotFromSpec
Operation and signature
validate_sources
spec (canonical PlotSpec; no prepared context)
Job contract
Checks the sources as a preflight without allocating a widget. Returns valid and source_count, or a rejection. Creation and reconfiguration check again. Registered contract: Closed typed canonical source projection or execution-owned immutable display-model handle; XYZ canonical_columns retain original TableStream dtype/values/unit/value_kind/value_format; points are derived float64 display, not scientific source data; actual source/revision/coordinate/Session guards retained. Render returns bounded original native PNG bytes and cleans its temporary output. No caller arrays/model/context/path/callback, independent calibration or scientific publication..
Link to the runtime
widgetValidateSources
Operation and signature
validate_spec
spec (struct)
Job contract
Validates the schema and the references of the accepted Datasets and variables. Returns 1 or an input error. Admission of a spec and actual preparation by the renderer are distinct steps. Registered contract: logical.
Link to the runtime
validateSpec
Operation and signature
xyz_coordinate_presentation
dataset_id (canonical Dataset ID), variable_ids (three explicit distinct Variable IDs), options (optional bounded start/count/expected_stamp, optional)
Job contract
Adapts the XYZ context to the value structures received from the Job. Applies the context projection; uses payload and context generated by the service. Registered contract: Closed typed canonical source projection or execution-owned immutable display-model handle; XYZ canonical_columns retain original TableStream dtype/values/unit/value_kind/value_format; points are derived float64 display, not scientific source data; actual source/revision/coordinate/Session guards retained. Render returns bounded original native PNG bytes and cleans its temporary output. No caller arrays/model/context/path/callback, independent calibration or scientific publication..
Link to the runtime
xyzCoordinatePresentation
Operation and signature
xyz_source
dataset_id (canonical Dataset ID), variable_ids (three explicit distinct Variable IDs)
Job contract
Adapts the XYZ inspection to Dataset and canonical references from the Job. The receipt includes identity/constraints of the context, according to the requested variables. Registered contract: Closed typed canonical source projection or execution-owned immutable display-model handle; XYZ canonical_columns retain original TableStream dtype/values/unit/value_kind/value_format; points are derived float64 display, not scientific source data; actual source/revision/coordinate/Session guards retained. Render returns bounded original native PNG bytes and cleans its temporary output. No caller arrays/model/context/path/callback, independent calibration or scientific publication..
Link to the runtime
xyzConsultationSource

Runnable recipes