Plot Assistant

Use the Plot Assistant to create plots from the various 2D and 3D OML plot types.

  1. From the GUI Utilities ribbon, select the Plot Assistant.
    The Plot Assistant appears with tabs for plotting data from a delimited file, such as a .csv, or your OML workspace. The 2D line plot is generated on startup using data from the demo_line.csv file.
  2. Select the data to plot:
    To Plot from Do this
    Delimited file Select the File tab. Any headers in your file are automatically populated in the list of variables:


    Otherwise, the column number is displayed:


    OML Workspace Select the Workspace tab, then select the desired numerical variables for X, Y and Z.


    If you select a matrix variable, choose the column to plot:


  3. Click the Plot button.
    The plot is created based on your data selections:
  4. To add a curve to the plot, select Hold on, select a new variable from the workspace or file, then click Plot again.
  5. To modify a curve display, right-click the curve and use the options in the microdialog to make your changes.

    When you modify a plot, the Plot Commands window is updated to reflect the changes. For each change you make in a microdialog, a new set command is added at the end of the Plot Commands. If a property has already been changed and has an entry in the Plot Commands, when you make a new change, the previous entry is removed and a new entry is added at the end of the commands.

    Some properties will trigger the change of other properties. For example, if you change the axis type from Linear to Logarithmic, notice that the number of ticks also changes.

    There are some options in the microdialog that do not have an equivalent property to set:

    • "Diagonal labels" in 2D bar plots.
    • "Bar labels numeric format", "Bar labels numeric precision" in 2D bar plots.
    • "Assign to axis" in 2D line plots.

    The microdialog used for scatter, area, patch and quiver is the same as the microdialog for lines, but the properties are different. For example, in a scatter plot, you can change the line color or line style in the microdialog, but the scatter element doesn't have the color and linestyle properties.

  6. To clear the plot and plot commands without changing the Plot type or Variables, click the Clear Plot button.
  7. To clear the Plot Assistant interface and reset it to its initial state, click the Reset button. If the File tab is selected, the demo file will be restored and the plot and plot commands will be generated.