10-17-2007 10:40 AM
10-17-2007 01:51 PM
10-18-2007 04:10 AM
10-18-2007 09:53 AM
@Guillaume Dargaud wrote:
...how do you know how many plots are on your graph...
10-18-2007 11:31 AM
10-18-2007 11:44 PM
Luis, I wonder how many of these hidden tips will fall out of your pockets if we shake you hard enough?!?!
![]()
Anyway, how many plots will return this attribute in your example? 2 or 3? In the first case, setting the zplane order of a plot to 2 (the last one) will not move it below all the others since it will remain on top of plot 3... I'll make a try later when coming back to the office.
10-19-2007 03:06 AM
10-19-2007 09:40 AM
04-16-2009 07:49 PM
Hi all,
Your posts have helped me learn how to change the order of plots (albeit a long time after your original posts).
I have noticed in my case running LabWindows/cvi 8.5 that changing the order using the ATTR_PLOT_ZPLANE_POSITION only changes the visible order of the plots and the order of the plot legends. It does not change the order of the data arrays in the graph memory.
For example if I plot Array0 then Array1 using 2 PlotY calls, swap the plots and then read the plots back using 2 GetPlotAttribute calls with ATTR_PLOT_YDATA the data arrays will be returned in the original order of Array0 & Array1.
Is this what you would expect ?
Thanks
Aaron
04-16-2009 08:19 PM
I have also noticed that the last plot added to a graph becomes the top visible plot 0 and all previous plots shift up by 1. The plot legend visible order is also descending.
For example if I add a Temperature plot it will be visible plot 0 and the legend will look like this...
Temperature (visible plot 0)
If I then add a Pressure plot it will become visible plot 0, the Temperature will now become visible plot 1 and the legend will look like this...
Temperature (visible plot 1)
Pressure (visible plot 0)
If I swap the plots the legend will look like this...
Pressure (visible plot 1)
Temperature (visible plot 0)
The Temperature & Pressure data array / plot handle numbering will be unchanged though.
I guess this shows that the visible plot order / numbering is seperate from the data array / plot handle numbering.