DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

manual X axis scaling

Hello,
 
I would like to scale x axis manually. For example, the x axis data will be like this:
70
71
72
73
74
75
110
111
112
113
160
161
162
As a result, there will be a gap between 75 and 110 (also between 113 and 60). In order to diminish the gap, I have to config the x scaling like 70...75, 110...113, 160...162. Is it possible to solve this problem?
 
Thanks
 
kind regards,
zhiyao
0 Kudos
Message 1 of 4
(3,992 Views)
Hi zhiyao,
 
There is no configuration setting in DIAdem to do this with one axis system.  What you could do if you wanted to solve this without programming would be to place two axis systems side by side (one on the left, the other just to the right of it), then configure their x axes accordingly:
 
[ 70, 71, 72, 73, 74, 75 ]  [ 110, 111, 112, 113 ]
 
In the example you listed, you would need 3 axis systems.
 
If you're willing to program the solution, then you can change only the x axis numbering with a user command that is placed in the format string of the x axis text, but this does not affect the way the values are graphed.  In that case you would need to plot the data vs. array index, so that the real x axis always ran [1, 2, 3, 4, ...], but you could change the display of the x axis to match the real x values, stored in the x channel [ 70, 71, 72, 73, 74, 75, 110, 111, 112, 113, 160, 161, 162 ].  Type "CFV" into the search field of the DIAdem Help to see more on the subject of changing the x axis display using the CFV variable in the x axis format string.
 
Ask if you have further questions,
Brad Turpin
DIAdem Product Support Engineer
National Instruments
0 Kudos
Message 2 of 4
(3,975 Views)
Thanks Brad
According to my understanding, if I plot data vs. array index, then I have to build a 3D axis system with x as array index, y as original x axis data, z as original y axis data, right?
 
Zhiyao 
0 Kudos
Message 3 of 4
(3,949 Views)

Hi Zhiyao,

No, that's not necessary.  You can configure a 2D axis system to display a Y channel vs. its array index by just selecting nothing/blank/empty for the X channel.  Then you can configure other string or numeric values to be displayed on the X axis in addition to or replacing the array index values-- and these other string or numeric values can come from a 3rd channel in the Data Portal.

Brad Turpin
DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 4 of 4
(3,934 Views)