Display particular plot legend

Hi there,
I have a listbox that has 100 items into it and I plot like 25 items at a time but the plot legend has all the 100 plots legends. How could I just display the 25 Plot legend selected from the list box.
Thanks
Solved!
Go to Solution.

Hi,
try this :
Right click on your graph -> Untick "Autosize plot legend"
Right click on your graph -> Properties -> Appearance -> Plot Shown : select 25.
Hope this helps
J.D.
French Labview beginner
N'oubliez pas de complimenter les bonnes réponses - Don't forget Kudos for good answers

Similar Messages

  • Plot legend

    Hi,
    I use a case structure to display or hide a plot to a xy-graph. It is the 4th plot of the graph, so the plot legend automatically gives its name as Plot 3. Then I change the name to what I want it to be. But after I hide this plot, and then bring it to display, the plot legend go back to Plot 3 again. How I can assign the name to this plot permanently?

    Hi,
    You're not making the name invisible. You're creating a new plot.
    Doing a quick and strange thing (cause i got to dinner), you can solve your problem with the changes that I'de made.
    Software developer
    www.mcm-electronics.com
    PS: Don't forget to rate a good anwser ; )
    Currently using Labview 2011
    PORTUGAL
    Attachments:
    Plot%20Legned%20Example[1].vi ‏23 KB

  • Changing Graph Plot Legend

    I have no problem changing a normal graphs plot legend with a property node, but I'm trying to display three different sets of data on one graph.  I tried doing it using a plot reference with the Plot Legend and using Caption Text.  They should be settable when the VI is running, but the way I was trying to do it I got a reference error (1055 Reference Invalid).  Setting either the Plot Legend or Caption Text would be acceptable if I could just figure it out.
    I'm trying to display 32 spectrums, but only use 8 graphs and have the name of the particular channel change.  Doing this without doing an FFT the channel name gets brought into the graph, but when I use the Power Spectrum VI I don't have the Spectrum Info wired into anything.  So, I'm bringing my original channel name array over and trying to do an iteration to pick the correct plot reference and channel name.
    I've extracted only the part of my code for this question, so hopefully it is easy to look at what I'm doing.
    The first VI and SubVI are functional.  The second SubVI is where I was attempting to change the Caption Text.  I've tried other things too, but I just wanted to show one way I was attempting to do it.
    Solved!
    Go to Solution.
    Attachments:
    Part of Analyzer - Displaying Graph Legend.vi ‏1432 KB
    Calc Channel Indices 1_35.vi ‏27 KB

    I don't have the SV add on so I can't check out your main program. I looked at your sub vi and you're doing more code than you need to. Take a look at my example, I've put your 8 graphs into a cluster then used an array of references along with arrays for your chanel indecies. Maybe it can give you some ideas for your program.
    Attachments:
    Calc Channel Indices 1_35 mod.vi ‏766 KB

  • Start position on plot legend scrollbar

    If I right click on the plot legend I can show the index display and vertical scrollbar. When I move the scrollbar the index changes accordingly. Does anyone know how to programmatically find the value of this index so that I know which plot labels the user sees. I've tried looking at the property node but I can't see anything that gives me what I need.

    Thanks for your reply Rob.
    I was thinking that was the case. Sometimes it’s possible that there are clever little tricks hidden away in the set up screens. I’ve ended up now with my old method which looks very clumsy (see attached vi), I can make it look much better when I get the scroll bar position.
    I’ll follow up on the product suggestion though as it would be a very useful feature.
    Attachments:
    Scrollbar Demo.vi ‏52 KB

  • Disabled item in plot legend when scrollbar is visible

    Problem is that plot legend shows only the plots being displayed correctly, while plot legend scrollbar is not being displayed, which is being controlled using LegPlotMin and LegNumRows properties. But when plot legend scrollbar is enabled (when number of plots exceed a certain number) then one disabled item (already being displayed in the enabled item above it) becomes visible. How to not show it while plot legend scrollbar is visible?
    Second question. If plot legend scrollbar is visible and the user has scrolled it to the bottom and left it there and then selects options where the number of plots are less than a certain threshold and the scrollbar is set to invisible, using property node; then the only lower disabled plot names are shown. So how do I set the scroll position for plot legend scrollbar. I could not find any scroll position property for plot legend scrollbar.
    Thanks

    It is true that you cannot set the index of the topmost displayed plot in a plot legend. It's a missing property! To accommodate long legends, I have used two graphs, one hidden behind the other. Both receive all the data, and their two legends are aligned side by side. In fact, I wrote a routine to align legends of stacked plots, which I've attached here for you. Maybe you'll find it useful!
    Attachments:
    align legends.llb ‏144 KB

  • Horizontal scrollbar for plot legend

    Hello,
    The plots in my plot legend for a graph can have quite long names so it would be great having a horizontal scrollbar.
    Quote from here
    >>To add a scroll bar to a plot legend, right-click the plot legend and select Visible Items»Horizontal Scrollbar or Visible Items»Vertical Scrollbar from the shortcut menu.
    I can see the entry horizontal scrollbar, but it is always grayed out, what's wrong?
    Thanks a lot for your help!
    Cheers,
    Rico

    I think you are misinterpreting the use of the scrollbar.  If you have a lot of plots on your graph, then you can use the scrollabr to not show all the plots at once and this allows you to scroll through the list.  It does not allow you to make the plot legend smaller to hide long names and scoll across.
    So, if you resize the plot to be horizontal, then you can display the horizontal scrollbar:
    If you resize it vertically, then you can display the vertical scrollbar:
    Message Edited by Matthew Kelton on 05-09-2008 12:09 PM
    Attachments:
    Plot legend horizontal.png ‏2 KB
    Plot legend vertical.png ‏2 KB

  • Plot legend flicker when in RUN mode

     Hi all,
    i have written a code in LV to acquire data from 12 sensors and display them. In the waveform chart I tried renaming the legend. When I run the vi, the legend name flickers to module name and channel name. I am attaching a snapshot to give you guys a clear idea.
    The vi is also atttached.
    Any help is appreciated.
    Regards,
    Arihant
    Attachments:
    plot legend issue.png ‏46 KB
    Temp meas using DAQmx.vi ‏39 KB

    I think it's flickering because you placed the code that writes the plot labels inside the while loop, so at each iteration you re-write it, just place all that code before the while loop, so that it executes only once before you get into the loop.
    And also since you're using waveforms, DAQmx automatically includes metadata with your channels, if you want you have to remove those metadata plot by plot.
    You can also optimisze a bit the code to write all the plots' names. See attached VI.
    Hope this helps
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
    Attachments:
    Temp meas using DAQmx.vi ‏29 KB

  • Customize plot legend

    Hello all, I am trying to customize a plot legend. Changing the color to transparent gets me only to the point where the pseudo-3d effect of the surrounding box is gone. How do I get rid of the hole around the plot sample in the legend? I want it to look like a simple plot with, at most, a box around the entire legend. Thank you very much.

    Hello asche,
    I justed tested it:
    I can make everything transparent, so that you only see the text and the line of the legend...
    I only used the color tool to do so.
    Oh wait: to remove the box around the line style of the legend you have to make the border of the
    graph display transparent. It seems to use the same setting: graph fore- and background is the same
    like legend plot style... I made a picture to show this behaviour.
    So it seems that NI has to change a setting in LabView for the next version...
    Best regards,
    GerdW
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    Graph_legend_transparent.png ‏8 KB

  • Plot legend color

    During data acquisition I am checking the values of certain data to make sure they are in the allowable range.  I am plotting several of these "checked" values on the same waveform graph.  I was wondering if there is a way to change the color of the background of the plot legend (as seen in the picture) while the program is running?  I would also like to be able to change each one independently.
    I have seen ways of changing the color of the waveform graph colors before running and I have also seen the use of a multicolumn listbox for something similar, but I would like to use the legend itself.  I have searched and as of a year or so ago it appears as if there is no way to do this.  I was just wondering if this had changed.
    Thanks for your help.
    --Robert
    Message Edited by knapkerd on 07-14-2008 04:26 PM
    Attachments:
    graph_legend_color.PNG ‏9 KB

    Afaik, you cannot use the plot legend itself to change the background color but you can have a front panel color box control and use this to write to a property node. You cannot have different background because you have a single graph and obviously, only one background color. For displaying data in and out of tolererance, have you seen the example called Envelope? It uses the new Plot Images property.

  • Plot Legend Ordering

    I am having a small, but frustrating problem in a LV app. I have a waveform chart that has a plot legend that is assigned programmatically. I assign the names with a property node of plot.name. The plot legend names are assigned in numerical order. I can add another element set to read and it shows the names in numerical order. I also set the active plot and the length of the plots.
    The legend is not displayed in order and the plots are all off by one. The last one is actually the first one. The first one is actually the second one.
    Any ideas?
    TIA
    James

    Thank you Joe!
    So this could also be the result of the active plot being set set AFTER (i.e. lower in the property node) the name is set.
    So (imagining now) if a for loop is used to do the naming and the active cursor is the last when the loop starts, the first name would be applied to the last active plot. Then the active plot gets set to "0" in prep for the next iteration.
    Just guessing.
    So if this is the case, the fix would be to change to order in which the properties are manipulated in the property node (they execute top to bottom).
    So thanks again joe for "the kick in the head"!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Can you display a chart legend horizontally?

    I have a chart (actually several) that are contain 3 or 4 plots.  The legend on the top right (or wherever I put it) can only be stretched vertically to display the legend for the multiple plots.  This, for me, produces a big waste of realestate.  Is there anyway that this can be stretched horizontally so that each plot in the legend lie side by side along the length of the top of the chart?

    This is a pretty large hack that takes the image of the waveform chart legend and slices it into pieces. The slices are put into a 1D array. You could also reshape this 1D array into several rows and columns for a large number of plots.
    Message Edited by unclebump on 08-04-2006 05:41 PM
    Attachments:
    Horizontal plot legend.vi ‏161 KB
    Horizontal plot legend with 2D picture array.vi ‏183 KB

  • How to remove entries from the plot legend?

    Hello,
    I have got a waveform graph to display measurement data. Sometimes there will be 40 plots shown. The plot legend also expands to 40 and I limit the number of elements shown in the Plot legend and I have activated the vertical scroll bar. Of course 40 plots are too many to work with. So the user has the ability to select plots to be shown. Now I want to decrease the number of elements in the plot legend as well. But if there were once 40 elements the plot legend remains in this size and the vertical scroll bar indicates that there are more elements than shown even if there are only e. g. two plots in the graph.
    I don't want to increase and decrease the number of plots shown in the plot legend programmatically each time the user changes the number of plots shown. Secondly the plot legend shall have a maximum number of 20 elements (otherwise it would exceed my front panel). So I don't want to programmatically check whether to show the vertical scroll bar or not.
    The legend should look like a partially filled array with grayed out elements. 
    How do I do this? 
    Is there a simple way to clear the plot legend and remove all entries?
    Regards, Jörn

    Hi Suse,
    your example does not exactly solve my problem. I wanted the plot legend always to show 10 legend entries.
    But it helped me to find the solution: set LegNumRows to 10 and set LegPlotMin to the number of plots in the Graph (see attached example).
    One thing is still missing: setting the plot number currently at the top of the legend. If you run the attached example with 30 plots shown, scroll the legend down and run the VI once again with 3 plots shown then you will see no plots in the legend despite the fact that all could be shown. You need to move the scroll bar first to see the 3 elements.
    Best regards, Jörn
    Attachments:
    Graph_Plotanzeige.vi ‏12 KB

  • 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

    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).
    Attachments:
    plot.vi ‏21 KB

  • Display values in legend obiee 11g

    Dear All,
    Is there a way to display values in legend for obiee 11g graph? I could not find that features. It only has show or do not show the legend.
    Thanks,
    Sushil

    is it not something like
    select columnA from SubjectAreat where
    columnA is not like '%A%'
    and columnA is not like '%B%'

  • How to Generate Event on change in Plot Legend for XY Graph

    Hi,
    I have two XY graphs on the front panel and would like to maintain a common plot legend such that any change in the plot legend affects both graphs.
    Objective: I would like any value change in plot legend to fire an event.
    How do I program that?
    I know of value change event for the graph but am unable to find something specific to the plot legend. Other option is to have the user press a "refresh" button that will fire the event.
    Feel free to share thoughts on other elegant methods to achieve the same objective.
    Thanks,
    Gurdas
    Gurdas Singh
    PhD. Candidate | Civil Engineering | NCSU.edu

    Hi Sarah,
    Looks like you are talking of exactly what I want!
    I have attached a sample VI to try achieve what I want. But it still has some issues which are:
    1) I am unable to configure a Plot Attribute Change Event. I have used a mouse leave event instead. How does one configure a Plot Attribute Change Event?
    2) Is there no single property which will transfer all the settings of plot legend from one graph to plot legend of another graph? In my sample VI, I have to read each property of the master graph and feed it into the slave graph.
    Kindly note I am using LV FDS 7.1 on Win2000
    Thanks,
    Gurdas
    Message Edited by Gurdas on 03-27-2006 11:51 PM
    Gurdas Singh
    PhD. Candidate | Civil Engineering | NCSU.edu
    Attachments:
    Graph_PlotLegend_Event.vi ‏45 KB

Maybe you are looking for