plotmachinedescription¶
plotmachinedescription The plotmachinedescription script is used to visualize and plot machine descriptions based on one or more URIs. It allows users to fetch machine configuration data and display it graphically, with options to show labels and save figures. You can control visibility of shapes and labels by clicking on legends.
Syntax plotmachinedescription¶
$ plotmachinedescription -h Usage: plotmachinedescription [-h] [--rc RC] [-u [URI ...]] [--dd-update] [--save] [--directory DIRECTORY] ---- View and plot machine description with one or more URIs as data entries Options: -h, --help show this help message and exit --rc RC Semicolon-separated rcParams string (e.g., 'lines.linewidth=2;axes.titlesize=14') -u, --uri [URI ...] Provide machine descriptions that you need to plot with uris for example "imas:mdsplus?user=public;pulse=116000;run=4;database= ITER_MD;version=3#wall", "imas:mdsplus?user=public;pulse=116000;run=4;database= ITER_MD#wall:0/description2d[0]/vessel/unit[:]", "imas:mdsplus?user=public;pulse=116000;run=4;database= ITER_MD;version=3", "imas:hdf5?path=./testdb", "testpulse.nc" --dd-update Convert IDS to the default version of the data dictionary if enabledotherwise, use the original IDS stored on disk. --save Save figure at default location --directory DIRECTORY Directory to save the figure
Example¶
$ plotmachinedescription --uri "imas:mdsplus?user=public;pulse=134174;run=117;database=ITER;version=3" --show-labels![]()
![]()
![]()
$ plotmachinedescription --uri "imas:mdsplus?user=public;pulse=111001;run=103;database=ITER_MD;version=3#pf_active" --show-labels $ plotmachinedescription --uri "imas:mdsplus?user=public;pulse=111001;run=103;database=ITER_MD;version=3#pf_active" "imas:mdsplus?user=public;pulse=116000;run=5;database=ITER_MD;version=3#wall/description_2d[0]/vessel/unit[0:2]" "imas:mdsplus?shot=150100;run=5;user=public;database=ITER_MD;version=3#magnetics" "imas:mdsplus?shot=115004;run=6;user=public;database=ITER_MD;version=3#pf_passive" "imas:mdsplus?user=public;pulse=111002;run=2;database=ITER_MD;version=3#tf" --dd-update $ plotmachinedescription --uri "imas:mdsplus?user=public;pulse=150100;run=5;database=ITER_MD;version=3#magnetics/flux_loop" --show-labels $ plotmachinedescription --uri "imas:mdsplus?user=public;pulse=150100;run=5;database=ITER_MD;version=3#magnetics/flux_loop[1:4]" --show-labels $ plotmachinedescription --uri "imas:mdsplus?user=public;pulse=116000;run=5;database=ITER_MD;version=3#wall/description_2d[0]/vessel/unit[0:2]"