Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Navigate through the magnetics IDS node and search for the node ids.magnetics.flux_loop[0].flux.data
    Image Removed
    Image Added

  2. Right-click on the node ids.magnetics.flux_loop[0].flux.data
  3. From the pop-up menu, select the command Plot ids.magnetics.flux_loop[0].flux.data
    Image Removed
    Image Added

    The plot should display as shown in the image below.
    Image Removed
    Image Added

    Info

    Each plot window has a menu for printing (File menu), saving and exporting data (File menu) or customizing the plot (Options menu).

    Any part of the plot can be zoom-in using the mouse (Options menu to zoom out).

...

  1. right-click anywhere on the plot and select Configure option
    Image RemovedImage Added
  2. Plot configuration window will open, displaying all available customizations
    Image RemovedImage Added

3.2 Adding a plot to an existing figure

...

  1. From the previous navigation tree, navigate to the node ids.magnetics.flux_loop[16].flux.data
  2. Right-click on the node ids.magnetics.flux_loop[16].flux.data
  3. From the pop-up menu, select the command Add plot to existing figure and Figure0 in the attached submenu
    Image Removed
    Image Added

    The plot should display as in the image below.
    Image Removed
    Image Added

3.3 Comparing float 1D arrays between 2 shots

...

  1. Open the shot 52682.

    Panel
    titleTutorial IDS case parameters:
    User name: g2lfleur
    IMAS database name:test
    Shot number:52682
    Run number:0
  2. Load occurrence 0 of magnetics' IDS

  3. Navigate through the magnetics IDS of shot 52682 and search for the node ids.magnetics.flux_loop[0].flux.data

  4. Right-click on the node ids.magnetics.flux_loop[0].flux.data
  5. From the pop-up menu, select the command Add plot to existing figure and Figure0 in the attached submenu
    The plot should display as in the image below. 
    Image Removed
    Image Added

3.4 Selecting 1D arrays, plotting the selection

...

  1. Navigate the tree of shot 52682 and search for the node ids.magnetics.bpol_probe[0].field.data
  2. Right-click on the node ids.magnetics.bpol_probe[0].field.data
  3. From the pop-up menu, select the command Select ids.magnetics.bpol_probe[0].field.data
    Image RemovedImage Added
    The selected node turns into red.
    Image RemovedImage Added
  4. Navigate the tree of shot 52682 and search for the node ids.magnetics.bpol_probe[9].field.data
  5. Right-click on the node ids.magnetics.bpol_probe[9].field.data
  6. From the pop-up menu, select the command Select ids.magnetics.bpol_probe[9].field.data
    The selected node turns into red.
    Image Removed
    Image Added

  7. Right-click one of the selected nodes
  8. From the pop-up menu, select the command Plot all selected signals to a new figure
    Image Removed
    Image Added
    Image Removed
    Image Added

    Note
    Selections list are proper to each shot navigation tree; selections list are not concatenated between different shots. 

...

  1. Load the equilibrium IDS from shot 52682
  2. Navigate the tree of shot 52682 and search for the node ids.equilibrium.time_slice[0].profiles_1d.f
    Image Removed
    Image Added

  3. Click on the + symbol  at the right of node ids.equilibrium.time_slice[0].profiles_1d.f to expand it.
    You should get the image below. Note that coordinate1 = ids.equilibrium.time_slice[itime].profiles_1d.psi
    for this FLT_1D data array.
    Image Removed
    Image Added

  4. Right-click now on the node ids.equilibrium.time_slice[0].profiles_1d.f
  5. From the pop-up menu, select the command Plot ids.equilibrium.time_slice[0].profiles_1d.f to a new figure
    Image Removed
    Image Added
    The plot should display as in the image below.
    The data are represented as a function of coordinate1 for the first time slice.
    Image Removed
    Image Added

  6. Click on the time slider and release the mouse at index value 41
    The time slider allows you to move along the time axis. You should obtain the image below.
    Image Removed

Image Added

3.5.2 Plotting 1D arrays as a function of the time along coordinate1

  1. From the previous shot 52682 tree, right-click now the node ids.equilibrium.time_slice[0].profiles_1d.f
  2. From the pop-up menu, select the command Plot ids.equilibrium.time_slice[0].profiles_1d.f as a function of time
    Image Removed
    Image Added
    The plot should display as in the image below.

    The data are represented as a function of time for a given coordinate1 value.
    Image Removed
    Image Added

  3. Click on the time slider and release the mouse at index value 19.
    The slider allows you to move along the coordinate1. You should obtain the image below.
    The title of the plot gives the coordinate1 value which is selected by the slider. The label of the
    plot is the short name of the quantity which has been selected in the tree (equilibrium.time_slice[itime] has 
    been removed from the label).
    Image Removed
    Image Added

3.6. Multiple plots configuration

...

  1. Load the magnetics IDS (see above 'Loading 'magnetics' IDS from an IMAS local data source example')
  2. Navigate through the 'magnetics' IDS of shot 52682 and select the next nodes:
    1. ids.magnetics.flux_loop[0].flux.data
    2. ids.magnetics.flux_loop[5].flux.data
    3. ids.magnetics.flux_loop[15].flux.data
    4. ids.magnetics.bpol_probe[0].field.data
    5. ids.magnetics.bpol_probe[40].field.data
    6. ids.magnetics.bpol_probe[80].field.data

      At this stage, there are six FLT_1D arrays selected.

      Note
      Currently, up to 6 plots only can be plotted simultaneously. This limitation will be removed in the future.
      Info
      Each plot can be customized individually; right click on a node and select 'Configure Plot'.
  3. Right-click on one of the selected node
  4. From the pop-up menu, select the command Plot all selected signals to a multiplot frame
    Image RemovedImage Added
    Image Removed

    Image Added
  5. In the menu, select Options -> Save plots configuration and type Magnetics_flux_loop_bpol_probes as a name for the configuration, click the OK button
    Image Removed
    Image Added
    Image Removed
    Image Added
    The configuration has been saved as a file in your $HOME/.imasviz directory (i.e Magnetics_flux_loop_bpol_probes.cfg file).

...

  1. Open the shot 52344 if it is not already opened

    Panel
    titleTutorial IDS case parameters:
    User name: g2lfleur
    IMAS database name:test
    Shot number:52344
    Run number:0
  2. From the Options menu of the navigation tree of shot 52344, select the command Apply multiple plots configuration
    Image RemovedImage Added

    Image Removed
    Image Added
  3. Click on the Apply configuration
    The new multiplot should be displayed as shown in the image below.
    Image RemovedImage Added
Info
The time that is taken by the command 'Apply multiple plots configuration' is short (few seconds) if all the required IDSs have been loaded previously. If not, the command needs to load 
all IDSs (from which the data to be plotted are fetched) before to plot the data.

...

  1. Select multiple FLT_1D arrays (as previously shown in section 3.4)
  2. Right-click on one of the selected arrays and select Open subplots manager
    Image RemovedImage Added

  3. SubPlot Manager Input window will be shown. The required number of subplots is automatically inserted. Press OK button to proceed
    Image RemovedImage Added

  4. Next, SubPlot Manager will open, displaying the selected arrays. The order of subplots can be customized if the user chooses so. Press Open subplots to proceed
    Image RemovedImage Added

  5. Next, the resulting subplots will be shown within the same Subplot Manager display window with all subplots having the same x-axis range. 

    Info

    The x-axis range was defined by taking the minimum and maximum x-axis value between all of the selected FLT_1D arrays.


    Image RemovedImage Added

     

3.7.2 Applying mouse-selected x-axis range to all subplots

SubPlot Managers enables to select the plot section selection in the first subplot. 

Image RemovedImage Added

The x-axis range of other subplots will update, following the first subplot x-axis range. 

Image RemovedImage Added

To zoom out to default view chose Zoom Out option in the Options menu

Image RemovedImage Added

3.7.3 SubPlot configuration

As already shown at the end of section 3.1, each plot can be configured. Same goes for the subplots in the SubPlot Manager.

Image RemovedImage Added

For example, changing the theme of the first subpanel can be done by selection dark  color theme in the configuration

Image RemovedImage Added

This gives us the next SubPlot Manager view:

Image RemovedImage Added

In order to apply the same theme to all subplots within the SubPlot Manager display window, select Top theme to all option in the Options menu.

Image RemovedImage Added

This, for the dark plot theme, all other subplots below the first plot will be set to the selected theme.

Image RemovedImage Added

Info

Note that this feature always takes theme set for the first subplot.

...

When the SubPlot Manager display window is closed, it can be reopened from the Show/Hide subplots selection from the right-click menu. 

Image RemovedImage Added