LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I limit the vertical size of the plot legend?

Hi all,
in my program I use a waveform graph and its plot legend.
My problem is that the vertical size of the plot legend increases out of my frame and screen if I add too many plots to the graph!!!!
 
Is there a possibilty to limit the vertical size of the plot legend and/or to use a vertical scrollbar in the plot legend?
 
I use LV 8.2.1 .
 
Thanks
daHans
0 Kudos
Message 1 of 11
(3,654 Views)
Are you incrementing the Legend->Plots Shown property each time you add a trace? You must have either a really tiny graph or tons of graphs on one Waveform Graph control. As far as I know there is no scrollbar attribute for the plot legend. An alternative solution you may want to consider is to provide an "active graph" control that allows the user to select which trace is active, and then the user can customize the selected trace. Or, you can use the solution described here.

Message Edited by smercurio_fc on 05-22-2007 01:41 PM

Message 2 of 11
(3,641 Views)
How can I use an "active graph" control with a waveform graph or chart?
0 Kudos
Message 3 of 11
(3,610 Views)
You can write to the "Active Plot" property node. The example given in the thread I linked to before shows using this. Did you take a look at that example?

I'm only suggesting the alternative of an "Active Plot" control if you're trying to give the user the ability to manipulate one of the plots (like color, point style, etc). If you have a lot of plots, and the plot legend is too big, you can provide a numeric control where the user selects the plot, and then additional controls to set the properties for that plot. Not as intuitive as the plot legend, but if that's what you've gotta do, that's what you've gotta do. Attached is a simple example (LabVIEW 8.20).
Message 4 of 11
(3,603 Views)
Thanks, that looks good.
0 Kudos
Message 5 of 11
(3,584 Views)

Here's an example of a technique I use from time to time, it uses an array of clusters. It allows the user to make each trace visible and swap Y scales.

Ian

Message 6 of 11
(3,570 Views)
Thanks for your great example.
0 Kudos
Message 7 of 11
(3,554 Views)
Yes, well done !
Message 8 of 11
(3,551 Views)
Can anybody please repost the VI saved for LV 7.1 ?
- Partha ( CLD until Oct 2027 🙂 )
Message 9 of 11
(3,542 Views)
I mean the Plot Control.vi...
- Partha ( CLD until Oct 2027 🙂 )
Message 10 of 11
(3,540 Views)