Choose Between API v3 and v4
GX-TXT P011-bis · Scientific Dataset Plot 4.4.2
Plot Dataset v3 and v4 manage references and publication. The declarative form of the plots is PLOT_DATASET_PLOTSPEC_v2. The API version, the value schema and the build version identify distinct levels.
Comparison in P011-bis
- Aspect
- Use
- v3
- Legacy compatibility. The descriptor reports deprecation and denied admission for new constrained Viewers.
- v4
- Current public API for new Viewers and for Native2D capabilities.
- Aspect
- Construction
- v3
- PlotSpec and lifecycle of the v1/v2 owners. Legacy interactive 3D functions delegated to the 3D service.
- v4
- Keeps the canonical types and manages presentation, renderer properties, scenes, models and native widgets where allowed.
- Aspect
- 2D rendering
- v3
- In the standard test the Job used the legacy Octave/GNUplot renderer.
- v4
- The variant exposes
renderer_owner = PLOT_DATASET_API_v4, the PNG and the Native2D receipt.
- Aspect
- Right Y only
- v3
- Explicit rejection when there are enabled right series and no active left series.
- v4
- The case is allowed for the compatible Cartesian shapes. Histogram and box require the left side.
- Aspect
- Text X ticks
- v3
- The five pairs were saved and redrawn with the legacy renderer.
- v4
- The native receipt returns position, text and drawing coordinates of the ticks.
- Aspect
- Script Bridge in the build
- v3
- 37 registered keys, with
new_specandnewSpec. - v4
- 49 registered keys. Includes adapters with temporary handles, triangular cells and supplementary functions.
Reference lifecycle
- Build the PlotSpec and assign stable Dataset and column IDs. Validate before mutating the Session.
create_plotcreates a base or variant.upsert_plotuses a key of the managed producer; repeating the key keeps the ID in the context of the same producer and product. A new key creates another identity.read_plotandload_specinspect the reference and the specification.apply_spec,save_specand the panel operations have distinct effects on the configuration. The PNG requiresrenderorrerender.- Check the rendering result and
artifacts. The paths in the receipt identify the resources. Checkexistingor the actual presence before using an optional file. Then open the reference via Plots oropen_plotand check that the Session reopens.
The Script Bridge operations are those declared by gxtxt_api_describe. The Tcl host commands include widgets, temporary destinations and actions that require the owner context. The names of the worker or of private procedures are for the framework. The next two sections show the host signatures and the Job operations separately.
Same grid, different owners
The base figure exists as a product of the Run. An XYZ scientific publication from PlotSpec uses a persistent variant. Both v3 and v4 require the PlotSpec v2 schema, cartesian_3d and canonical XYZ bindings. The comparative Job saves, rereads and renders the same surface in the two versions.
- Context
- Analysis, base plot
- Rendering and identity
- Uses the plan source, the bindings of the Analysis pane and the module’s legacy output. The base reference is excluded from the persistent XYZ PlotSpec cycle.
- Context
- Plot Dataset API v3
- Rendering and identity
- Legacy variant. Delegates lifecycle and rendering to the previous path; for building and synchronizing the representation it uses the legacy scientific consumer.
- Context
- Plot Dataset API v4
- Rendering and identity
- v4 renderer ownership, Native3D geometry and plot presentation. The runtime can export and open windows, while the Bridge exposes the registered subset for managed runs.
The inspection, the persistent Workspace, the draft and the Graph in Plots have separate identities. The Sync check uses the source fingerprint. Reread the specification after a change and check each artifact in Plots.