Chat now with support
Chat with Support
• Get Live Help

# Multi-Range Y Axis (4111)

Return

Feedback Submitted

Select Rating

• ## Title

Multi-Range Y Axis
• ## Description

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 ?

• ## Resolution

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.

• ## Attachments

Feedback Submitted

Select Rating

Request or Create a KB Article »

Must select 1 to 5 star rating above in order to send comments
Recommended Content
Product(s):
XRT
2.2
Topic(s):
Technical Solutions
Article History:
Created on: 1/13/2000
Last Update on: 5/25/2010
Author:
Ben Bernatchez
Search All Articles