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.

Similar Messages

  • 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

  • What's this crap on my plot legend? And; how to get rid of it?

    Forgive the lack of a technical term; but what's the crap (shading/vertical lines) added to the mini-plot previews on the Plot Legend on this XY Graph in LV2012 SP1?
    And how do i get rid of it to make it look more like the original (e.g., just a solid color background)?
    I would normally specifcally identify these parts by name; yet it appears these parts have no name:
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

    Figured it out: it's from setting the Plot Area:Colors:BG Color property to Transparent. Changing this to a solid color likewise changes the preview to a solid color.
    Bonus points: who can describe those design elements that appear when plot area is transparent? This is not a trick question; i don't know the answer, and am curious.
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • Size of plot legend graphics

    After trying to resize the plot legend of a waveform graph with the mouse, the small graphics showing the color and other plot properties suddenly got much longer, and the plot text was no longer left aligned. Tried to modify the legend programatically with a property node, setting ActPlot, LegWidth etc, but it doesn`t work the way I expected. The attached picture show an example of the problem. I want to resize the legend so it get a width the same as the outer bounds of the graph, the text should be left aligned, and the graphics stay small and right aligned. I`m using LV 2009.
    Spoiler (Highlight to read)
    Attachments:
    graph-legend.JPG ‏66 KB

    Gunnar,
    You can basically get the sizes and alignations correct by customizing the Plot Legend. Select first the waveform graph itself -> Edit: Customize Control. After that select the first row (See Picture) from the Plot Legend and do the same -> Edit: Customize Control. Now you can type in the long plot name and move the graphics part to the right. Press "Apply changes" often to check if the Legend and its elements are in right place. Finally replace the original control with the customized control.
    I hope this helps. A bit tricky to explain, but by playing with the customizing tool I'm sure you will get the idea soon.
    Cheers,
    Cerati
    P.S. I noticed that it is in fact easier to write the plot names first directly to the legend and then use the customizing tool for the plot row to move the graphics to the right.
    Attachments:
    Customize plot legend.jpg ‏73 KB

  • Plot legend wont update?

    My plot legend won't show the new names that I am wiring. It shows the default Plot 0, Plot 1, and so on, instead of the column headers it's supposed to read from the data file.
    Any ideas? See the attached VI and the associated text file that I am trying to plot.
    Solved!
    Go to Solution.
    Attachments:
    Plot_Legend.vi ‏35 KB
    track_scan.txt ‏11 KB

    In the example you posted, your array for plot colors is empty so the for loop does not run.

  • 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

  • Modify Plot Legend

    Hello,
    I want to modify plot legend. There is alot of options to select when click on signals but I only want users could select Color part.
    How could I make remove other options (common Plots, Line Style, etc...) from the Plot legend menu.
    And How could I change the language of it like Color is Renk in Turkish and I want to show this part in Turkish.
    Yasemin Barutçu
    Electrical And Electronics Engineer

    If I couldnt change or disable these menus then  I have to change the language of this menu. How?
    Yasemin Barutçu
    Electrical And Electronics Engineer

  • Can plot legend grow upward?

    Hi,
    I'm dynamically adding plots to an XY graph. The plot legend is placed on the top, right corner of the graph by default. When I add new plots, the legend grows downward, blocking the graph. Is there a setting that I can change so that the legend will grow upward? Also, I tried to place the legend on the right hand side of the graph. This also caused a similar problem when I changed the name of the plot because the name grew to the left. Is there a possible setting change for this so that the legend will grow to the right when the text becomes longer?
    Thank you,
    Jae Ho
    LV7.1

    Use the "Plot Bounds" property along with the Plot legend property ("LegLeft") to move the plot legend's left side to the edge of the plot after setting the plot names, colors, etc.
    “A child of five could understand this. Send someone to fetch a child of five.”
    ― Groucho Marx

  • 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

  • How to remove a plot and resize the plot legend in LV 8.6 as in this link to a LV 7.0 example

    This VI ( ftp://ftp.ni.com/pub/devzone/epd/201150.vi ) works exactly as I want an 8.6 application to - but the property node used in the example is no longer supported.
    I can add/remove plots and resize the plot legend with 8.6 using the "LegNumRows" property however this property does not appear to behave the same way.
    It seems this should be straight forward but I must be missing something.
    Solved!
    Go to Solution.

    Hi again!
    I have implemented a method to shuffle the plots in the legend and was satisfied with one exception- the plot colors. This application allows the user to add or delete plots from the graph, adding a plot is easy as the new plot name gets appended to the next place on the legend and the number of rows grows by one. Deleting a plot is also quite easy but this action brought up a usability issue in that the existing plots that were shuffled on the legend would also shift their colorsaccordingly. To eliminate possible confusion I want to keep the correlation between existing plots and their assigned colors so I tried to use the plot color property to change the plot color programmatically with unexpected results.
    Programmatically changing a color from the "Plot Colors" array does not change the color of that plot if it is set to any of the "Common Plots" wih the exception of "Common Plot 0" - i.e. this doesn't seem to work for Bar Plots which is what I am using.
    I have attached a demo VI to illustrate this behavior - there are detailed free labels on the front panel which describe this in more detail.
    Regards and thank's in advance!
    Attachments:
    Plot color behavior.vi ‏27 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

  • Programmatically formatting the active plot and plot legend

    I am monitoring 6 production sequences on an XY graph. A ring control selects which sequence I show on the graph. For each sequence I have tag data showing the "actuals" and tag data showing the "averages" and a boolean toggle switch controls which of these plots I show on the graph. I am having trouble controlling the formatting of the plots (both actuals and averages are currently shown in white) and the plot legend is wrong. I have tried programming my vi to format my plots using a property node from the XY graph and writing to the correct plot inputs, however it doesn’t seem to be working. I would also like the plot legend to show ONLY the active plot on the XY graph.
    I would like a red continuous line for the averages and blue square scatter points for my actuals. I can’t seem to get this at all. I have attached my vi if anyone can help?
    Many thanks for taking the time to help,
    Best regards,
    Stuart
    Attachments:
    Historical Handling Time Trends.vi ‏137 KB

    Hi Stuart
    Maybe this helps you.
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...
    Attachments:
    Plots.vi ‏65 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

  • How do I programmatically change the plot legend names on my xy graph?

    I have a need to change the names/labels on my XY Graph's Legend at run time.  This is because plot 0 is not always the same set of data.  I have searched high and low for a couple days now to no avail.  The closest thing I've seen is overlaying a string over the plot legend, but I would prefer to do change the property of this box.  Any help would be appreciated.

    Hello Ben,
    with waveforms this also works for me fine. So where is the pitfall? (if always all works fine, one don't really gets experience)
    greets, Dave
    P.S. @ J.B. I used the Code Capture Tool from the Starware Thread, this made me so fast. If I could do, I would give it five stars each time I use it.
    Btw. would it be possible to programmatically give ratings with LV? Here it should be used. Thanks again to tst & the others
    Message Edited by daveTW on 06-14-2007 09:13 AM
    Greets, Dave
    Attachments:
    Example_FP.png ‏5 KB

  • Strange Fonts in labview graph's plot legend.

    Hello All,
        I am running labview 7.1 on a Windows XP machine and
    the default and only language is English (US). Verified this under
    Control Panel > Regional Settings.
        When I run a VI, I get strange fonts in the plot
    legend. They keep updating as the VI runs. Here is a screen shot of the
    plot legend:
    I change the font to something I can read, save the VI and run it again
    and it automatically changes to this unreadable font again. Any ideas
    on what I can do? Thanks.
    KB

    Is it just the font that is off, or are these actually non-printable characters?
    Are you graphing e.g. dynamic data types? Do you possibly have weird names for your signals?
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for

  • I can not open iphoto or itunes - message is that "the program quit unexpectedly"

    I am not able to open iphoto or itunes from our family computer. It attempts to open and then gives the message saying i photo quit unwxpectedly.

  • How to clear the form after save?

    Hi, My environment is JSF1.2 and Hibernate3. Scope of my bean is request level. On JSF form where I press the save button, data is saved in the database and form is empty for new record. I do not want to call method resetMe() because I have many bean

  • Sound seems very quite even on 100%

    Recently got my Macbook back from the Genius Bar for a mag board replacement. Since having it back the speakers seem very quite even when on 100%. I know it wasn't like this before. Any ideas what might be wrong? Sound seems to sound like an echo.

  • Bad iTunes/iPod podcast sync

    I've noticed iTunes 7 handles podcasts particularly poorly. I've got it set to copy the last 3 episodes of a selection of podcasts to my 2G iPod. Some of them don't appear in the "podcasts" icon under the iPod in iTunes, nor do they appear in the "po

  • No more Norton Utilities support in OS 10.4.4?? what now?

    Since Symantec isn't supporting Norton Utilities for 10.4.4 any more and I need to defragment my hard drive, are there any suggestions? TechTool Pro? Any experience with that program out there? Any other suggestions? Is there any freeware or sharewar