Plot View - VirtualPhotonics/Vts.Gui.Wpf GitHub Wiki

Plot View

Plot View

This view will appear on the right side of the application window when there is a reflectance or a spectrum result to be plotted.

There is an icon at the top in the tab next to the Plot View label that when clicked will pop out a separate window containing the current plot. The main plot can then be cleared and a new plot can be created. This feature will allow you to compare several plots.

Hide Key

This checkbox is unchecked by default and will hide the key when checked. It is useful when using the pop out window or plotting multi-axis selection.

Hold On

When the Hold On checkbox is checked, the plot will not be cleared between plots.

Note: The plot will clear automatically even if this checkbox is checked if the plotting is incompatible, example: Complex plot followed by a non Complex plot.

Clear All

This button will clear all the plots.

Clear Newest

This button will clear the last plot plotted.

Auto-X

When the Auto-X checkbox is checked, the Min and Max values for X are populated but they are inactive. If the checkbox is unchecked these values become editable and you can change the minimum and maximum values of the x-axis. Recheck the checkbox to reset the x-axis to the default values.

Auto-Y

When the Auto-Y checkbox is checked, the Min and Max values for Y are populated but they are inactive. If the checkbox is unchecked these values become editable and you can change the minimum and maximum values of the y-axis. Recheck the checkbox to reset the y-axis to the default values.

X Axis Spacing

This option toggles the x-axis spacing between Linear and Log 10.

Y Axis Spacing

This option toggles the y-axis spacing between Linear and Log 10.

Plot Toggle

When a complex plot is plotted, the Plot Toggle option will be displayed. The choices are Complex, Phase and Amp. The Complex selection plots the real and imaginary components of the result on the same plot. The Phase and Amp options replot the data showing phase or amplitude results, respectively.

Normalization

The choices for Normalization are None, Max or Curve. The Max selection normalizes each plot by the plot's maximum value. The resulting plot will have 1 as the maximum value for all plots. This is useful, for example, when you are interested in comparing the slopes of reflectance as a function of rho plots. The Curve selection divides the first plot into all subsequent plots. The resulting plot will have a horizontal straight line at 1 for the first plot and the subsequent plots will show their relation to the first plot. This is useful when viewing spectra for mua and mus'. First plotting the mua spectra, then the mus' spectra and selecting Curve will show the mus'/mua values over the wavelengths plotted.

Plot Label

This textbox is optional, when text is entered here, it will be displayed as a label in the key.

Export As Image

Clicking this button will bring up a file save dialog where you can enter an image filename and save the plot as an image.

Export Data

Clicking this button will bring up a file save dialog where you can enter a filename to save the plot data as a text file. For more information about processing this file see Exporting Data.

Additional Built-in Plot Commands

image