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

Similar Messages

  • 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

  • Plots start at zero in plot legend

    I have a graph that plots measurements from 14 different sensors. However, the graph legend starts numbering the plots at zero. I would like this to start at 1 rather than zero, but cannot find an option for this. This should be simple, so perhaps I am not looking in the right place. I am fairly new to labview, so perhaps I am missing something simple. Any help would be appreciated. Thanks!

    I must be a little slow today. This was a silly question. I just figured it out. Apparently all you have to do is click on the legend with your text cursor and type in whatever you want. I was trying to make this much more difficult than it is.

  • 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

  • Plots legend arrangement

    Hi all,
    I am design my software front panel.  I have a problem about plots legend. The defaut arrangement is in vertical direction as attachment shown. I want to arrange the plots legend in horizontal direction. I searched  Labview help and did not find the solution. Would you give me some clue? Thanks in advance!
    Lang.D
    帖子被Mechtest在 03-03-2010 07:09 PM
    时编辑过了
    Solved!
    Go to Solution.
    Attachments:
    Plot legend.png ‏5 KB

    Placae the Graph or chart on the front panel and then pull the plot legend horizontally....(when you click on the plot legend and drag the highlighted part of the legend horizontally so that multiple plot legends can be seen.Pull them vertically if you want to see them in vertical position)
    Guru
    Regards
    Guru (CLA)

  • Legend scrollbar for Labview 8.0

    Anybody know if an XY graph's plot legend can be made into a scrollbar? I have several plots on one graph (up to 80), and have written a program that at run-time makes certain plot visible or not visible, depending on user input. I want the legend so the plot color will appear next to each plot.
    If a scroll bar isn't possible, does anyone have any ideas on good ways to show this information?
    Michael

    Hi Michael,
    I made this VI as a suggestion. I used a multicolumn listbox to list the Plot names.
    Greets, Dave
    Message Edited by daveTW on 01-23-2007 01:08 AM
    Greets, Dave
    Attachments:
    Show Graph plots FP.png ‏20 KB
    Show Graph plots.png ‏15 KB
    Show Graph plots.vi ‏66 KB

  • 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

  • Plot legend overlapping text

    I have an xygraph (from silver controls palette) (LabVIEW 2012 (SP1 12.0.1f5). I have encountered a problem where the plot legend text overlaps with plot graphic icon image. I don't know the cause of it but it always starts at my boss's end and the only solution that I have is to replace the xygraph with a new one (by right clicking the graph and selecting replace and then a new xygraph from the silver controls paltete. Is there a solution to this problem (autosize legend is turned on).
    This is how it should be (and this is how it starts)
    But this is how it ends up (after inderterminate time)
    Any fixes?
    Thanks in advance

    Right-click on the graph and go to Advanced->Customize.  You will now have the control editor open.  Click on the wrench in the toolbar.  It should now look like tweezers.  You can now move individual peices around.  This is how you can switch the legend text and icon.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • XY graph position changes when legend position is set!.

    Hello All.
    Try the example in attachment. When I change the position of the graph legend, the position of the total graph is changed!!! Or maybe I am doing something wrong?
    Pawel
    Attachments:
    XY_graph.vi ‏48 KB

    Hi Pawell,
    the Position property returns the top left coordinates of the front panel object including its related objects.
    If you place the legend above the graph, the Y coordinates refers to the upper position of the legend box rectangle; this is why if you move the legend up and down, the graph position value changes although you are not moving the plot area.
    Ask if I haven't been clear enough.
    Alberto

  • Synchronizing a listbox and a plot legend

    Hello all,
    I'm working on some code where I would like to be able to select/deselect as many as 50 plots on an XY graph.  Because of the relatively large number of plot names, it makes sense to place them in a scrolling legend or listbox. 
    Problem is (as far as I know) the plot legend can't be used to *easily* make plots disappear and appear with a single click-- one must right click, go to colors, and select transparent, etc. then reverse the procedure to make the plot reappear.
    An alternative might be to use a list box 10 rows long as the master indicator, then use some of its properties to create a dynamic plot legend borrowed from a second hidden graph.  This plot legend would reconfigure its line/symbol colors dynamically based upon the where the user is within the scrolling listbox.
    One problem I've encountered is that the Label.ScrollPosition property will not write out to an indicator for me.  Please see the example code.
    Top row provides some feedback from the listbox, but not enough info to do the job properly.
    Any thoughts?
    Regards,
    Ted
    Solved!
    Go to Solution.
    Attachments:
    scrolling listbox Row numbers.vi ‏16 KB

    Hi to know the position of the list box element...
    try this...
    <<Kudos are welcome>>
    ELECTRO SAM
    For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life.
    - John 3:16
    Attachments:
    scrolling listbox Row numbers.vi ‏18 KB

  • Waveform graph plot legend in labview 8.5 won't respond to arrow keys?

    I heard labview 8.5 fixes most of the problems that plague 8.2, so I recently installed it to try it out and see if it is worth the effort of another upgrade.  Messing around today, I found an issue that wasn't related to the installer itself.
    The plot legend on a waveform graph doesn't appear to respond to arrow keys for precise placement.  It doesn't matter whether auto-size plot legend is turned on or off.  When I want to place a plot legend very precisely, just like with any other labview control I like to use the arrow keys to get things perfectly aligned.  I want to make the plot legend perfectly in the corner of the graph but its very hard to get it placed right with just the mouse.  In labview 8.5 it seems like plot legends no longer respond to arrow keys.
    Can anyone confirm this or know of a way to precisely place the plot legend in labview 8.5?
    -Devin
    I got 99 problems but 8.6 ain't one.

    Ben,
    I checked the snap to grid hypothesis. Even when activated the arrow keys still allow an accurate positionning of the objects at pixel level.
    That's so nice that I changed my setup. I now have a reasonnably large spaced grid (50 pixels) with an invisible grid (contrast adjusted to zero). That should make object positionning and dimensionning much faster than before.
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • Capture mouse event(s) on XYgraph plot legend

    I notice that when I move the mouse over the plot name portion of the plot legend, the mouse icon changes.  If I left-click in this portion, the entire plot name region is highlighted. What event(s) and/or properties do I use to capture this behavior.  I would like to know the size and/or location of the plot name region highlighted.  I'm using LV 2010.  I know about the Legend.Size and Legend.Position properties. 

    Faustina:
    Unfortunately, there isn't an event we can latch onto when the plot within the legend is clicked on. As a workaround, we can add a radio button control beside the legend to select various plots. The radio button indices match up to the plot indices, so we can still select the active plot and rename it.
    I've attached a small example that allows the user to select a plot, and rename it from a menu of presets. You'll probably want to adapt it to run in a state machine or event structure, but the logic for changing plot names is there.
    Caleb Harris
    National Instruments | Mechanical Engineer | http://www.ni.com/support
    Attachments:
    change plot names.vi ‏19 KB

  • Numeric indicator label used to create plot legend

    When I create a channel for data (numeric indicator) it carries along with it a name for the value.  So for example if i am reading 8 temps, I name them temp #1, temp #2, etc.  How can I have those names carry through into the plot legend?   Thyey only show up as plot 0, plot 1, etc.
    Does it matter if it is a chart or graph?

    What makes you assume that some scalar indicator label information would flow upstream and somehow end up as plot labels?
    All you need to do is write the desired plot names once at the start of the program, e.g. as in the attached modification.
    You currently have duplicate control labels, so that's something you should fix.
    Sorry, I don't have DAQmx installed, so I cannot help with the assitant. Still, maybe the attached can give you some ideas....
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    RTD Bearing ComparisonMOD.vi ‏74 KB

  • 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