Display Range
rhjpires
Need some help from you guys.
I have some 2D waves containing a bunch of info and I want to display only a part of it - i.e., a range.
From the documentation it seems that
Display
does not support the /R
flag or anything that would signal a range to plot.Also, since I am interested in actually plotting one pair of coordinates some like
Display Wave2D[0][1] vs Wave2D[0][0]
also does not work.Is there any way to do this other than using
MatrixOP
to extract the info I need to plot?Instead of creating waves for plot purposes can I store the ranges as variables and then point them to the same 2D wave?
Please let me know if anything like this is possible.
Best,
R.
You can use Display to select a subrange of the data, too.
Subrange Display Syntax
The Display, AppendToGraph and ReplaceWave operations support the following subrange syntax for a wave list item:
wavename [rdspec ][rdspec ][rdspec ][rdspec ]
where rdspec is a range or dimension specification and the brackets are part of the syntax (rather than indicating options). Higher unneeded specs can be omitted. Only one my be a range spec and the others must be a single numeric or dimension label value. A range spec may be [] or [*] to indicate the entire range of the dimension, may be [start,stop], or [start,stop;inc] where stop may be *.
This can be restated as:
1. Only one dimension specifier may contain the range to be displayed
Legal syntax for range is:
[] or [*] for entire dimension
[start,stop] for a subrange; where stop may be *, stop must be >= start, the range is inclusive
[start,stop;inc] for subrange with specified positive nonzero increment (inc) value.
2. Other dimensions must contain a single numeric value, or dimension label using % syntax
Legal syntax for nonrange specifier is:
[value] or [%name].
3. Unspecified higher dimensions are treated as if zero was specified
For non-XY plots, the X-axis label uses the dimension label (if any) for the active dimension (the one with a range).
When cursors or tags are placed on a subranged trace, the point number used is the virtual point number as if the subrange had been extracted into a 1D wave.
Subrange syntax is also supported for waves used in the ErrorBars command's wave keyword and the ModifyGraph command's zmrkSize, zmrkNum and zColor keywords.
Subrange syntax is also supported for waves used with ErrorBars when an error bar wave is selected (see Error Bars), and color, marker size and marker number as f(Z) (see Setting Trace Properties from an Auxiliary (Z) Wave). These correspond to the ErrorBars operation used with the wave keyword and to the ModifyGraph (traces) operation with the zmrkSize, zmrkNum, and zColor keywords.
Subrange Display Limitations
In category plots, the category wave (the text wave) may not be subranged. Waves used to specify text using ModifyGraph textMarker mode may not be subranged.
Subranged traces may not be edited using the draw tools (i.e., option click on the edit poly icon in the tool bar on a graph).
Waterfall plots may not use subranges.
When multiple subranges of the same wave are used in a graph, they are distinguished only using instance notation and not using the subrange syntax. For example, given display
w[][0],w[][1],
you must use
ModifyGraph mode(w#0)=1,mode(w#1)=2
and not
ModifyGraph mode(w[][0])=1,mode(w[][1])=2
as you might expect.
The trace instance and subrange used to plot given trace is included in trace info information. See Identifying a Trace.
--Jim Prouty
Software Engineer, WaveMetrics, Inc.
November 7, 2017 at 09:35 am - Permalink
found it!!
Best,
R.
November 7, 2017 at 10:20 am - Permalink