11-13-2014 08:10 AM
Hi All,
I am initializing the XY graph with 20 plots and updating 20 plots data on that.
After updating data, i am making plot 3 to unvisible, Now I need to plot legend to arrange in such a way that it should have ,plot 0,plot1,plot2,plot4,plot 5.....plot19, in its Plot legend and should not have Plot3.
So while printing the graph and viewing the graph in pdf ,i can see the plot names only for Visible plot in pLot legend and can avoid the confusion of having plot3 in my Graph print.(Since that plot is unvisible and data for pot 3 wont be in graph and so I dont what that in my print as well)
Is their are ways to achieve,Please provide your suggestions.
Thanks,
Selvan
Solved! Go to Solution.
11-13-2014 11:12 AM
Attached is a VI that will do what you want...to a point. It has a couple problems (won't update the graph until you change the Boolean array, plot legend location) but it shows the idea. You'll need to adjust the legend position based on the number of rows via a property node.
11-13-2014 12:29 PM
Hi Zwried,
Thanks for that.
But you see when we make any plot invisible (For Example:Initialy let the Graph have 5 plot and have it own plot colors and names, Now if I make plot C (means Plot 2 ) as invisible ,it color Green get assigned to Plot D and Plot D color get assigned to Plot E, which is my problem),
I just need the Plot C () to go away from legend and other plot to get aligned (Which is working perfect here) ,but without color change .
I tried the same and got same response.
Is their is any ways to avoid that?
Please suggest to get expected output
thanks,
Selvan
11-13-2014 12:50 PM - edited 11-13-2014 01:03 PM
You can set the plot colors, point style, etc programmatically as I did with the plot name. Colors are just an extension of the concept I used with the names array.
11-13-2014 01:07 PM
Hi ,
Thanks a lot for that.
It helped me.
thanks,
Selvan