Accessing Plot/Legend name

In the proprty node of the graph I can only access the number of plots shown, but not their name in the legend. For exemple I have 6 plots. I want to name the last one "MyPlot 6". When I put plot shwn =5 plot 6 is disable, but when I put plot shown = 6, I have 6 plots but the name of the plot changed. I want to keep the same name as "MyPlot 6"

You can use the "Active Plot" property to select a plot and change the plot name through "Plot -> Plot Name".
Joe

Similar Messages

  • Stop plot legend names changing

    Hi all,
    I'm using the X-Y graph for the plot (comparison) of two datasets.
    I have manually given each of the two datasets a name which appear in the legend.
    The problem is once the graph is updated then the plot name in the legend for one(1) of the plots reverts to "Plot 1".
    How do I stop it from doing this?  I want to fix the names of the plots in the legend.
    Thanks,
    Battler.

    Hi Battler,
    I can't think why one of the plots would lose it's defined name unless you are setting the data in a bizarre way.
    You can always set the plot legend name each time you update the data by using a property node for the XY graph and setting two properties:
    1. Set the  ActivePlot property to 1 (0 is the first plot, 1 the second plot)
    2. Set the  Plot.PlotName property to your desired string.
    Thoric (CLA, CLED, CTD and LabVIEW Champion)

  • 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

  • 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

  • Changing the Plot Legend (NonSequential Names)

    I've got a Chart that serves multiple purposes.  As such, the plot legend needs to change.  I've looked through the forums, and have found options that let me create a dynamic legend of the form (Name1, Name2, Name3).
    However, I don't want the labels to be sequential in nature.  I'd like to be able to define the legend as either (x,y,z) or (A1,A2,B1)
    Any suggestions?
    Thanks!

    You have the option to change the scale label through the property node, using that you can set any name you want. Is that what you are looking for?
    The best solution is the one you find it by yourself

  • Can I detect a plot name change event in a plot legend?

    I'd like to update a configuration file if a user changes the name of a plot in the plot legend.
    The events I see for plots are:  value change, autoscale range change, plot attribute change, and scale range change.
    Plot attribute change does not seem to include anything that looks like plot name, and the others obviously don't contain that info either.
    Is there any way to grab this event?
    Thanks.
    Solved!
    Go to Solution.

    Jordan,
    First off, remember that there is no single way to code anything, so I can offer one possible solution for you, but it is definitely not the only one.
    LabVIEW does not have a property to check if the name has been changed through an event structure, but you can create your own events that LabVIEW can read. I found this really good document that might help you. Read through this and mess around with it and see if it gets you anywhere: Creating User Events
    Once you get it to trigger the proper case, then its just getting that case to update the file you would like.
    Another possible workaround, although not ideal, is to create a string control and have that be on top of the plot name. You would be able to then produce an event from that string changing value.
    Hope this helps.
    Douglas C.
    Applications Engineer
    National Instruments

  • Chart legend name programmatically

    Hi,
    How can I change programmatically the legend name of my chart?
    Thanks,
    ToNi.

    The property node used to access the string in the legend is in Plot>Plot.Name
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • 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 .

  • 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

  • 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

  • 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

  • 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.

  • 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

Maybe you are looking for

  • Tp return code 12 while trying to release a request in enhanced CTS

    Hello All, I have installed PI 7.1 on windows with Oracle DB. I have followed all the pre requisites to configure enhanced CTS feature and configured Enhanced CTS making DEV as source system and QAS and PRD as Target Systems. For the firast time when

  • I updated iTunes and now my 160 GB iPod Classic makes iTunes freeze.

    I have done everything from resetting the iPod to uninstalling and reinstalling iTunes.  I have formatted and reformatted the iPod.  The iPod actually works, I can go through and fix the settings to my liking.  But when I go to sync with my iTunes, i

  • New ideas for ipod touch

    Here are my ideas for the ipod touch, put a flash light on it. I have a flash light on my t-mobile cell phone and I would like on on my ipod touch or iphone. Historically, a flash light uses little energy but useful during emergencies. Currently cust

  • Problem 3G help urgent

    Hello good need help since my iphone does not work on 3G only remains in E, please i need urgent help

  • Business process management

    Greetings all Hello everybody ! Whats going on? Today i am going to tell you something most important thing about business process management. Its help to growing your business market. If you wish to know more i can suggest you a site. The site is le