From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

ScatterGraph invert X and Y axis

Hi to all,

Is there a quick and easy way to invert X and Y axis in a ScatterGraph (ie: have the XAxis be up and down and the YAxis be left and right)?

Obviously, just plotting Y vs X instead of X vs Y for my plots is not the answer I am looking for. X and Y axis objects have different characteristics so I really need to actually invert them for display purposes.

I thought there might be a property for the ScatterPlot for this but it doesn't seem to be the case.

Thanks,

CD

 

0 Kudos
Message 1 of 5
(4,321 Views)

Set the XAxis.Inverted and/or YAxis.Inverted property to true.

 

Regards,

 

Vijet Patankar

National Instruments

0 Kudos
Message 2 of 5
(4,319 Views)
I actually meant inverting the x with the y axis, as in x axis is on the left and y axis is at the bottom.
Thanks,
CD
0 Kudos
Message 3 of 5
(4,311 Views)

Could you give us a screenshot?

And, I am wondering why you would choose to do so!

 

Regards,

 

Vijet Patankar

National Instruments

0 Kudos
Message 4 of 5
(4,308 Views)
It is for display purposes. I want to be able to show x at the bottom or on the side, without having to replot manually the numerous objects already there .
Also, i need mouse over events to return x and y correctly without having to write code such as

If x axis is at bottom
...
Else
...
0 Kudos
Message 5 of 5
(4,303 Views)