The Plot Python API environment in detail
Customize a graph
You can fully customize a graph to your requirements.
This customization can be carried out on the graph type (2D, 3D, Pie chart...), on the displayed texts (graph title, axis title, legend...), or on the axes (colors, unit text, tick marks...). This section shows how to do this customization.
Graph type
The basic customization is to choose the type of graph you want to use. In the Graph documentation, you can find a list of functions (called Graph type functions) that allow you to modify the graph type.
Note
The Graph type functions section also contains some functions dedicated to a specific graph type. Check the documentation to know if a function can be used on your type of graph.
When a graph is created, the default type is 2D. You can modify the type using the *convertTo...*functions on the Graph object.
Here is an example to switch to a 3D graph type:
Copy
# Convert to 3D graph type
graph.convertTo3D()
Note
You can change the graph type before or after adding the curves. Neverthless, the graph type needs to support the curves type.
Figure 4: The same curve in 2D or 3D graph
Graph text management
You can display some predefined texts and indicators on the graph. The visibility of these objects is mainly managed by the graph and can be modified using the function configureTitles.
Figure 5: Predefined texts on the graph
Note
The axis unit visibility is managed by the Axis object.
The Legend object can use several positions (using predefined anchors) that you can manage using the same function.
Axis customization
You can customize the axes of a graph. To do this, first, access the Axis object through the graph, for example:
Copy
axis = graph.xAxis()
Figure 6: The properties of the Axis object
Then you are able to customize almost all the properties of the axis:
Visibility
Unit visibility
Color, line style, thickness, font
Graph grid (the grid drawn on the graph area, according to axis ticks)
Range
Tick-marks
Format (log scale, power...)
...
Note
See the documentation of the Axis object for further information. You can also consult the Plot API App that contains examples of axis customization (see the associated documentation).
Source: https://docs.sw.siemens.com/en-US/doc/254352342/PL20250521841123434.amesim_collection.Plots_Python_API/xid1241933 · retrieved 2026-07-17