diana_plot_result
Plot a selected result in DianaIE's RESULT view and return a screenshot, enabling inspection of contours, vectors, or diagrams for a chosen analysis and component.
Instructions
Plot a result in DianaIE's RESULT view and return a screenshot.
Args: analysis: analysis with loaded results. result: result label from diana_load_results, e.g. "Displacements" or "Cauchy Total Stresses". component: component, e.g. "DtY", "SXX". case: result case (load case / step), default the first one. block: output block, needed only when the analysis has several. item_type: result owner; required by DianaIE unless the label starts with it (e.g. "Reinforcement ...") or the result is nodal. location: where the result was computed, "node" or "element" (see diana_load_results). layer: fibre / layer of beams and shells: a number, "maximum" or "minimum". plot: contours, vectors or diagram. viewpoint: camera direction; 2D models in the XY plane are best seen from "top". width: image width in pixels. height: image height in pixels.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| case | No | ||
| plot | No | contours | |
| block | No | ||
| layer | No | ||
| width | No | ||
| height | No | ||
| result | Yes | ||
| analysis | Yes | ||
| location | No | ||
| component | Yes | ||
| item_type | No | ||
| viewpoint | No | current |