How to export plots in AEDT to jpg - non graphical mode? #4692
Closed
marcoglasses
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Big plots and slow GUI
Plots can be very complex and contain a lot of curves. It can take time for the AEDT GUI to generate a plot and display it. You can avoid this wait time and GUI blocking by using a few simple commands with pyaedt.
pyaedt and non-graphical
The following script takes a project, analyzes it in non-graphical mode and generates a few plots with a lot of curves. Then, it generates a couple of reports, all without opening the interface.
Please remember to change the paths so that they point at your project.
Necessary imports, project loading and instantiation
This section performs the required imports and operations to load an HFSS 3D Layout design. You can change this with any tool that is able to generate 2D reports, and modify the script accordingly.
The non_graphical=True command is crucial and stops the GUI from popping up when loading the project.
Analyze the project and define expressions to be plotted
The next section runs the analysis for all active setups and then defines a couple of long expressions (with a lot of terms) that will be used to create S-parameters plots with a lot of curves.
Generate reports
The following section generates the actual plots, specifying the name of the setup that will provide the solution data for the plot.
Plots export and project closure
This last section of the script exports the generated plots called "plot111" and "plot222" to the desired folder, then saves and closes the project.
This will generate jpg files in the desired folder, containing images of the plots.
Beta Was this translation helpful? Give feedback.
All reactions