|
ENVI User's Guide: Interactive Display Functions |
|
Plot windows in general provide several interactive analysis capabilities including moving plots between windows, data input and output, plot output, editing, annotation, and other options.
The following table shows the mouse button functions available in ENVI plot windows.
To display an X-Y line-cursor, click and hold the left mouse button within the plot. The line cursor snaps to the closest data point when multiple plots display. The X and Y values of the point will be listed in the lower left corner of the plot in the color corresponding to the selected data set.
To continuously display the line-cursor, data marker, and data values, move the cursor with the left mouse button depressed.
To toggle data labels on and off, click the right mouse button within the plot to display the right-click menu and select Plot Key.
To edit the plot data label see Editing Y Plot Data Values.
To delete a plot from the plot window, right-click on that data label and select Remove plot name.
| Note You cannot delete the plot for the active cursor; e.g., the X profile, the Y profile or the Z profile in their respective windows. |
To move plot labels and their associated data plots from one plot window to another, click and hold the left mouse button on the plot label and drag it into a different plot window and release the mouse button.
To rescale the x and y plot ranges within the plot:
To reset the profile to each of the previous regions, click the middle button within the plot to back-stepping through the previous scalings.
Use the plot window right-click menu to access plot options such as turning the plot key on or off, stacking and unstacking plots, scaling the plot range, and to clearing the plot window.
For detailed descriptions of the menu options, see Plot Window Options.
Use the File menu in a plot window to input into the window. Data input formats include ASCII and ENVI spectral library.
Use this procedure to load ASCII data or other (x, y) data to plot in a plot window. ENVI reads ASCII data that has multiple columns separated by commas or white space. Lines beginning with text or semicolons at the top of the file are ignored.
Input Data
ASCII.
When loaded, all of the other plot options are available.
Input Data
Spectral Library.
Use the Edit pull-down menu to control data and plot parameters and to edit plot data. Data parameters control the line types, colors, and other attributes of plotted data. Plot parameters control the axes, titles, and data ranges plotted.
Data Parameters.
Plot Parameters. The Plot Parameters dialog appears.
| Note Modifications applied with the Plot Parameters dialog only appear in the plot window when the Plot Parameters dialog is open. If you close the Plot Parameters dialog, the plot parameters return to their default values. |
| Note Data values less than the entered minimum value and greater than the entered maximum value are not plotted. |
.hdr file by entering the values for the Z Plot Range parameter. See ENVI Header Format).
Data Values.
Use the Options menu to create new plot windows, annotate plots, stack the data plots, apply automatic scaling to the Y-axis, clearing the plot window, and reset the plot data range.
To create a new, blank window, select Options
New Window: Blank.
To create a copy of the current plot window including the data within it, select Options
New Window: with Plots.
| Note New plot windows can be set up as data collectors to hold useful plots from profiles and other plot windows. |
To move plots and plot labels between windows, see Moving Plots to Another Plot Window.
For using Annotate Plot to annotate the x, y, and z profiles and other plots, see Annotating Images).
| Tip Resize both plot and Image windows to their final desired size prior to annotation. If the plot window is resized after annotation, the annotated objects will be offset from their correct positions. |
To turn plot key labels on or off, select Options
Plot Key in the plot window or Plot Key from the right-click menu.
To offset all plots within the window so there are no overlapping data plots, select Options
Stack Data.
To set the amount of offset between each stacked plot:
To replot the data without stacking, select Options
Unstack Data.
| Note Unstack Data appears in the Options menu only if the data has been stacked. |
To show the X or Y profile for the entire band instead of just the part of the band that displays in the Image window, select Options
Profile: Full Band.
To show the X or Y profile only for the part of the band that displays in the Image window, select Options
Profile: Image Window.
To automatically rescale the Y-Axis to the data minimum and maximum when adding or updating plots, select Options
Auto Scale Y-Axis On.
To leave the current Y-Axis range set, select Options
Auto Scale Y-Axis Off.
| Note If auto scaling is off and a plot is added outside the y-axis range set, that plot will not be visible until the y-axis is rescaled. |
The Clear Plot selection appears under the Options menu in plot windows if they were created using ENVI spectral library functions or using New Window.
To clear all of the displayed plots within one of these windows, select Options
Clear Plot.
| Note Profiles can not be cleared because they contain the profile for the current pixel. |
To reset the x and y plot axes to their default data ranges or minimum and maximum values, select Options
Reset Range or click the middle mouse button to the left of the y-axis.
| Note This option always resets the range to its original values even if it was reset using the Plot Parameters option or using the middle mouse button to zoom into a part of the plot. |
The Set Z Profile Avg Window selection appears under the Options menu in Z profile plot windows. Use it to plot an average spectrum calculated using a box around the cursor:
The average box size can also be set in the ENVI file header (see Editing ENVI Headers).
To plot multiple Z profile spectra, select Options
Collect Spectra.
To replace the current Z profile with the new profile spectrum, select Options
Replace Spectrum.
Select from the following additional plot functions. These functions are accessed through the plot window Plot_Function menu.
To plot the band number (or other index number) on the X axis, select Plot_Function
X Axis:Index.
For plots of images with wavelengths in the image header, plot the wavelength on the X axis, select Plot_Function
X Axis:Wavelength.
For plots of images with wavelengths in the image header, plot the wave number (1/wavelength) on the X axis, select Plot_Function
X Axis:1/Wavelength.
To replot the data displayed in the window with its continuum removed, select Plot_Function
Continuum Removed. The continuum is the convex hull that fits over the data and is divided into the original data values to produce the continuum removed values (see Using Continuum Removal for details). The continuum is calculated using the first and last data points displayed in the plot, so for plots that have been zoomed, the continuum is calculated based on the displayed data range only.
To replot the data displayed in the plot window as binary encoded plots (0s and 1s), select Plot_Function
Binary Encoding. Binary encoding replots the data as a spectrum of 0s and 1s. It calculates the mean of the data and encodes each value as a 0 if it is less than or equal to the mean and as a 1 if it is greater than the mean (see Applying Binary Encoding Classification for details).
To replot the original data values, select Plot_Function
Normal.
You can add your own IDL plot function to this menu by entering the name of the function into the useradd.txt file in the ENVI menu subdirectory (see Plot Function) and adding a .pro or .sav file containing the function code to the ENVI save_add subdirectory.
Use the File menu in plot windows to save plot data. You can save plot images or output data to ASCII files, spectral libraries, IDL variables, PostScript files, and image files.
Save Plot As
ASCII.
Use this procedure to build a standard ENVI spectral library file (spectral library image) from profiles and spectral plots.
Save Plot As
Spectral Library.
| Note If the ENVI command line is not visible in the IDL window, select Window Command Input in the IDL window. |
The exported data is available to use at the ENVI command line. If data from more than one plot is exported to a single variable, the data is exported into a two-dimensional array that contains the x and y values for each plot. The first row, array [*,0], contains the x values for the first plot, the second row, array [*,1], contains the y values for the first plot, the third row, array [*,2], contains the x values for the second plot, etc.
To save a plot and any associated annotation as a PostScript or other image format file, select File
Save Plot As
PostScript or Image File.
To print the plot, select File
Print.
For detailed instructions, see Display Output Options.
ENVI Online Help (August 12, 2005)