LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

xy graph with negative values in another quadrant

How do i represent negative values in another quadrant in a xy graph?
0 Kudos
Message 1 of 9
(3,987 Views)

Could you be a little bit more precise?

Because negative values can just be added the same way as positive numbers.

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 2 of 9
(3,982 Views)
Hello,
 
The XY graph receives an array of bundled X and Y axes. If you wanna represent points in another quadrant you just have to use "build array" and add the other points.
 
If this info was not what you want try to explain in another way and tell the labview version that you are using.
Software developer
www.mcm-electronics.com





PORTUGAL
Message 3 of 9
(3,979 Views)
Thank u for ur responses.
 
Yes,we can represent negative and positive values.
 
But the problem is,the graph will represent both the +ve and -ve values in the same quadrant.
Suppose I have -ve and +ve values for X.It will represent X axis as -ve values....0....+ve values
 
But i want all the +ve values in the right side of origin and all negative on the left side.
 
Is there any way for that?
 
 
Thanks...
0 Kudos
Message 4 of 9
(3,968 Views)

Hmm - I don't understand what you want.

As 0 is the origin and the negative values are on its left side, it  does what you want.

Maybe a picture of what you want to do could clearify.

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 5 of 9
(3,957 Views)
If you are saying that you want to keep the origin in the graph's center, you may either set a fixed range for the X scale in the graph's properties dialog (say, from -100 to 100), or you can set it by code during the program, by creating the graph's Property Nodes X Scale->Scale Fit (set to 0=don't autoscale) and X Scale->Range->Minimum and Maximum (set to -a and a, where a could the max x absolute value, or something slightly larger. A similar approach can be followed for Y Scale
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 6 of 9
(3,951 Views)
Hi,

it seems you want to have the y-scale in the center of the graph...
No, that doesn't work. The scales are always at the edges of the graph display.

Solution:
Make up your own xy-graph using a picture indicator... Much work, but you can place the scales whereever you want 🙂
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 9
(3,950 Views)
Hello,
another solution would be to use separate XY- Graphs and make them partially transparent as suggested in the attached VI. But then you have to ensure that the plot areas don't resize. I don't know whether this is much easier than using picture indicators.



Greets, dave

Message Edited by daveTW on 03-05-2007 01:41 PM

Greets, Dave
Download All
Message 8 of 9
(3,932 Views)

Hi,

Thanks to all for the feedback.

We are working on the problem now and will revert should there be any problems.

Rgds.

 

0 Kudos
Message 9 of 9
(3,903 Views)