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

Similar Messages

  • 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

  • How to chang the number of plots in the plot legend during run time?

    Hi, I am using waveform graph. At run time only i will come to know, how many plots should be plotted in the waveform graph. Based on the number of plots i have to change the plot legend. Is there any method to do the same?

    Maybe something like this?
    The inputs on the left are (from the top)
    your array of data you want to plot (or anything that contains the number of inputs you have)
    next one is an array of colorschemes (maybe you dont need this)
    and the third is an array of booleans that are true if that "channel" should be plotted and false otherwise
    /Anders
    Message Edited by Tohatsu on 01-08-2008 08:56 AM
    Attachments:
    graph.JPG ‏10 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

  • 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

  • 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

  • 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

  • Windows 7 or Windows Server 2008 R2 domain join displays error "Changing the Primary Domain DNS name of this computer to "" failed...."

    Hi,
    Windows 7 or Windows Server 2008 R2 domain join displays error "Changing the Primary Domain DNS name of this computer to "" failed...."
    DC:windows Server 2008 R2
    Domain functional level:Windows Server 2003
    When Winxp join domain, have no this error message.
    I checked http://support.microsoft.com/kb/2018583?wa=wsignin1.0 does't work.
    There have 3 suggestion in this article:
    1.The "Disable NetBIOS over TCP/IP" checkbox has been disabled in the IPv4 properties of the computer being joined.
    Doesnt's work.
    2.Connectivity over UDP port 137 is blocked between client and the helper DC servicing the join operation in the target domain.
    On my DC, I run netstat -an, reslut as below:
     UDP    192.168.20.3:137       *:*
    3.The TCP/IPv4 protocol has been disabled so that the client being joined or the DC in the destination domain targeted by the LDAP BIND is running TCP/IPv6 only.
    We are not using IPV6.
    This server recently updated from Windows Server 2003 to Windows Server 2008 R2. Before upgrade, when Win7 and Win2008 join this domain, also have the same error message.
    Please help to check this issue.
    Thank you very much.
    BR
    Guo YingHui 

    Hi Guo Ying,
    I have faced this critical error which makes over-writes the host names in the domain when you join.
    For example: Already you had a host name called as PC.domain.com in the domain.com Domain.
    When you try to add the another host name called as PC in the domain.com Domain, it doesn't give you the duplicate name error on the network it does over-write the existing host name called as PC.domain.com & it will add the new host name into the domain.
    Host name which got over-written will get removed from the domain. I faced this issue in my project. My DPM host name got removed from the Domain & new host name got joined into the domain which halted my backups for one day.
    Final Resolution is as follows:
    You need to start the dns console on the DC & drop down the domain name.
    Select the _msdcs when you click on _msdcs it will show the Name Server's list on the right hand side.
    You need to add the Domain Naming Master under the _msdcs or add all the domain controllers which you had.
    After you add the Name server's try joining the PC OR Laptop to the domain which is successfully joins it.
    Regards
    Anand S
    Thanks & Regards Anand Sunka MCSA+CCNA+MCTS

  • 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

  • Programaticly changing the (suggested only) file name in the save prompt when signing a document?

    When you sign a document in Adobe X (or XI), the system says it needs to save the file first.   Is there some way to change the (suggested only) file name to a different value for that save?
    Right now, people open a blank form - lets call it formX.pdf.   They fill it in and sign it.  The suggested file name for the save is FormX.pdf.   I can generate a unique file name which i'd like to put in place of the suggested default...

    AFAIK, you can't do it with code. Your best option might be to use a form field to show a message to the user when they sign the document with that information.

  • How do I change the spelling of my name in the upper right corner of icloud?

    How do I change the spelling of my name in the upper right corner of icloud?

    Is this on the http://icloud.com website ? You can edit your account's name by logging into the account via http://appleid.apple.com

  • How to change the fully qualified host name

    Hi,
    how can I change the fully qualiied host name?
    Regards
    Marc

    Hi Michal,
    I'm doing the FlightSeatAvailabilityCheck-Scenarion of the demo example and get an error. To get more details about the error I had a look in the XI Runtime Workbench. There I can see, that the wrong url is called (without the hostname) and  that the access is forbidden (403). Therefore I want to change the fully qualified host name. I knew that I have to change icm/host_name_full but I don't know where I can do it (which transaction)?
    Regards
    Marc

  • How to change the output executable file name(a.prj:(output)--- b.exe)

    LabWindows / CVI: how to change the output executable file name
                For example, I have an A project a.prj, I do not want to compile the output file is a.exe, but b.exe.
    I will try to save as a.prj b.prj, a.cws save as b.cws
    eg:a.prj  ---->(output)--->b.exe
    Solved!
    Go to Solution.

    You can go to Build >> Target Settings menu item, select Release (or Release 64) in the Configuration filed and set the name of the executable to create in Application FIle field, withouyt need to change the prj or cws filename.
    See the complete description of available options here.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How can I programatically change the Plot Style of a 3D surface?

    I believe this can be done using a property node...however I am unable to find the property. At one point in my program, the plot style automatically switches to Points, and I want it to be Surface again later. I have a 3D surface reference wired to a property node, giving me the CWGraph3D properties. If the properties followed the menu style you get from right clicking on the 3d surface, I should be able to then select the property plots, and change the plot style. However, even though I can get a reference to the plot, the only property I can access is the count. I would appreciate it if someone could show me where I am going wrong, since Im confident this can be changed programatically.
    Thank you!
    Jeff
    Using Labview 7 Express

    Hi Jeff,
    here's what I did (found somewhere in the examples that come with LabView):
    Message Edited by GerdW on 03-14-2007 04:28 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    3dplot.png ‏9 KB

  • Why do waveforms show garbage in the plot legend and why is no one mentioning this?

    I have tried this on multiple machines and the result is the same. The plot legend expands and shrinks with garbage characters each time the waveform is updated.
    Sometimes the plot legend expands to as many as 100 garbage characters (or more). Is NI aware of this?

    Hi Ben
    Ok I managed to get a small enough version of it to zip it up and show what happens. I hope the demo is intact enough to show the plot legend.
    just run the VI "0_bloat-OVEN.vi"
    It uses a simulation file for the waveform but if u have a DAQ bd just uncheck the "Simulate DAQ bd?" button.
    Ive seen this on 3 machines now WIn 98 WIn XP and Win2K.
    Attachments:
    WF-PlotLegend.zip ‏778 KB

Maybe you are looking for

  • My ipod needs to be restore and I get a error message saying :ipod software update server coud not be contacted.

    My ipod needs to be restore and I get a error message saying :ipod software update server coud not be contacted.

  • Why can't i put videos on my Ipod video?

    i put it into itunes and then plug in my ipod. My ipod says "updating" and everything but the video doesn't appear on my ipod, only in the itunes library. What am i doing wrong. btw im on a pc with a 30GB ipod (not like THAT means anything) can anyon

  • File permissions on burned CDs and DVDs

    When I burn CDs and DVDs, I often find that the permissions are set such that they are only readable by me. This causes a problem when I go to a Linux machine (or presumably another Mac) with a different login ID. (Interestingly, windows ignores thes

  • No vendor assigned for Service Procurement

    Hi all, While creating request for External Staff, i am unable to assign vendors for the request. I created service in COMMPR01 and created contract with vendor, but i am unable to see the vendor while creating request and no F4 help to assign vendor

  • Access to variable in object definition

    HI all! :) How can i read the selectedItem-variable of ListView object in the following code? var list = ListView {     items: []     onMouseClicked: function( e: MouseEvent){         if(this.selectedItem != null){ }i tried with this operator and als