XRT
Can you use XRT/graph to display multiple ranges in the Y-axis
where the ranges are not contiguous with each other. By this I
mean, say you have three ranges (A, B, C) each of them has their
own range that is independant of each other. I would like to stack
these ranges on top of each other so they do not overlap and thus
are not displayed in a maner that allows them to overlap. For
instance:
Range A -> 100-300
Range B -> 50-150
Range c -> 0-20
The graph would display all these ranges in their own little space
on the graph, even though some of the overlap in numbers.
|
A | Range A is displayed here
|- - - - - - - - - - - - - - - - - - - - -
C |
| Range C is displayed here
|- - - - - - - - - - - - - - - - - - - - -
B |
| Range B is displayed here
--------------------------------------------
Is this possible ?
Yes this is possible, but it can be a little tricky. The key to this is to scale and translate each range so that it falls in a particular range on a contiguous Y-axis. For instance :
Range A (100-300) maps to (80-100)
Range B (50-150) maps to (0-20)
Range C (0-20) maps to (40-60)
Once you have established this scale, then any data coming into the graph is sclaed accordingly and then mapped to the appropriate place.
To retreive data, you would do the oposite calculation to get the proper value represented by the graph display.
This is not a simple matter as the developer has to work out the scale factor and make sure you do the proper scale in each direction. I have created a sample program that demonstrates the above mentioned method. Keep in mind that this is a trivial sample program that shows the very basics of what is needed, but it does give you an idea that this is quite possible with XRT/graph.
© 2021 Quest Software Inc. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy