Plot 4 Graphs with only 2 legends

Hi!
I have a graph in which I want to put 4 plots of defined color and line width, but in the Legend I want to show only 2 of them.
I tried to define the plots and scaled the Legend with the mouse to the wanted first 2 plots. Unfortunately this setting isn't saved, when I close and reopen the vi.
Next try was to define the plots at the start with property nodes. But when I set "Legend: Plots Shown" to 2, it's not possible to setup the third plot.
Anybody an idea for a solution?
Thank you in Advance.
   Hendrik alias XS-er
PS: I'm using LabView 8.0
Message Edited by XS-er on 05-17-2006 02:39 AM

Graphs only save settings for the plots they have default data for at the time of saving.  So, if the default data for the graph has four traces, it will save info for four traces.  If it only has one trace, it will save info for one trace.  If you need to save data for plots, a more robust solution is to set the values using property nodes on the graph in the initialization section of your code.  That way you won't lose them.  Note that you cannot set properties on a trace which does not exist.  You will need to preload your graph with the number of traces you are using (I think you can use zero length traces).  If you stop using one of the traces, you can lose the information at run time.
This account is no longer active. Contact ShadesOfGray for current posts and information.

Similar Messages

  • How to evolve a graph with only one loop

    1. how to continue to add new nodes to a graph with only one loop
    would like to use graph traversal like my previous post to traversal a binary tree, but this time, it can 
    loop forever, i mean it traverse all nodes in whole graph in the meanwhile it add new nodes too
    assume maximum number of joint is 2 or 3
    computing nightmare

    I just realised that you weren't talking about cyclic graphs (in the case of 1 cycle) here, but meant a single pass traverse and mutate.
    What you don't specify is how the new nodes are being supplied.  If they are supplied up front, then the loop will of course terminate once all the inputs are addressed, rather than going on forever.  If they are being supplied from time-to-time,
    then you need to have some sort of event-wait on input.  The traversal could have a move-next something like this
    If at end of tree with no new nodes, wait for input
    If at end of tree, with input, reset to start
    If at insertion point for new node at top of input queue, insert that
    Move to next node in tree
    This seems the sort of thing that would naturally be coded in a functional language as a tail recursion rather than an iteration.

  • Create a Graph with only one set of data? Threw serial

    I feel this is a simple question, but I am over thinking it. I am trying to make a program that takes data that is sent threw serial Rs232 from a device, and put that data both into a file and display a live graph of the data (saving the graph would also be great). The devise is strait forward it gives me data when it is don't making the test. After it has the data is sends it and it is always in this form, (ignore Quotes) "[ 122.8 PSI     ]' where "122.8" will always be 5 characters and the decimal point stays the same.
    I would like to take Ex. 122.8 and plot that on y and use the line number from the text file as the x value. How can this be achieved?
    Currently I am displaying the values in a list because I can't figure the graph out. But attached is my messy code and a sample of data that gets sent.
    P.S.. The data list can get as long as 2000 or more.
        side question... when the program is built into an EXE when using serial, can the user change what port?
    Attachments:
    test 1.vi ‏20 KB
    test 1.txt ‏1 KB
    test 1 graph.txt ‏1 KB

    Well, that's called Rube Golberg code.
    All that you have to do is convert the string to a numeric (i.e. a single Scan From String not your match pattern functions) and wire it to a chart. The chart's x axis by default will increment by 1 with each sample written so reading the x axis from file is silly. Be sure to set the chart history. Since you are already writing the data to file, why write it again? Either write the full string or just the value. Your second while loop becomes unnecessary and if for some reason you needed it, it would only record the very last value.
    Don't open the file with each iteration. Place that outside the loop.
    You might want to take the free LabVIEW tutorials.

  • Plotting graph with CPU's system time

    Hi, I am new to labview and I am currently trying out some basic features like graph plotting which is a vital aspect for my project.
    However, the graphs that I need to plot requires it to run with respect to my CPU's system time. This is something which I have not been able to implement after many attempts with the tools palette.
    Could anyone show me the wiring to make the x-axis not start at 08:00:00 but according to my system's clock which is 22:23:00?
    Thank you.
    Solved!
    Go to Solution.

    Smercurio,
    I apologise for the mistake..yes unknowingly i cleared the album.. 
    Here is the images attached...
    LV 8.0, 8.6, 2011,2012,2013 WinXP
    Attachments:
    property.JPG ‏39 KB
    time to dbl.JPG ‏6 KB

  • 4-quadrant plot (graph with axes passing through centre)

    Hi guys,
    Been away for a while, but now I'm back in to the swing of Labview again! I'm trying to create a system which presents data in an x-y graph, but I want the graph to have the x- and y-axis passing through the centre, rather than meeting at a corner.
    I read this thread, but I couldn't figure out how to customise the graph the way Jake H suggested. I also saw this thread, but the solution proposed doesn't really do what I want. If there's any confusion over what I need to achieve, the hurriedly-drawn sketch (attached) should clarify things.
    Thanks in advance!
    LabVIEW 2013, Windows 7
    He who asks the question is a fool for five minutes; he who does not ask the question remains a fool forever.
    Attachments:
    graph_axes.jpg ‏30 KB

    Hi Rob, thank you for your attention. Unfortunately, this solution isn't helping, for two reasons:
    1) Even with autoscaling off, and the graph set with the low numbers on each axis to a negative number, the axes do not move to the centre.
    2) I will need to autoscale the x-axis, as the upper and lower limits (while usually equal) will vary depending on the data being plotted.
    Is there something else I can try? Many thanks.
    LabVIEW 2013, Windows 7
    He who asks the question is a fool for five minutes; he who does not ask the question remains a fool forever.
    Attachments:
    test graph.jpg ‏27 KB

  • Plot graph with .txt data

    Hi. I am doing on a project which i need to plot the graph of the data in text format.These data are data of solar reading.
    I am able to plot the graph for Int_ana text file but unable to plot the graph for int_sma textfile. I also want to show the 2 graphs
    of Ana and Sma sperarately.Please help me!
    Attachments:
    NgKuanJie_103115x.vi ‏21 KB
    int_sma_120204.txt ‏51 KB
    int_ana_120204.txt ‏11 KB

    Hi.
    Try this mod.
    Saludos.
    Alipio.
    "Qod natura non dat, Salmantica non praestat"
    Attachments:
    NgKuanJie_103115x_A.vi ‏22 KB

  • Graphing with logarithmic scale in AI5?

    I received a graph in MS Excel that uses a logarithmic (as opposed to linear) scale, but as far as I know, it isn't possible to create a scatter-plot graph with logarithmic scale in Illustrator. Does anyone know if there is a plug-in or a script that can do this?
    I am happy to upload the Excel file if that would be helpful. This is my first time using this forum, though, so I just need to know how to attach it.
    Thanks

    I found this link that has a plugin that states it does logarithmic scale, it is called ToolDemo here is the link, hope it's what you are looking for. http://www.telegraphics.com.au/sw/#tooldemo

  • Xy graph with dynamic number of plots

    I've got an XY Graph with some dynamic number of plots to graph. Once I know this number, I change the LegPlots property and plot the data from an array containing all the plots. The data is displayed correctly, but I get overlapping colors. Say I'm only trying to graph 3 plots. I get three lines (good) but then the three lines have 29 colors (bad), as if it's plotting all possible plots at the data points of the three. The legend updates to only show three (good), but am I missing something else? Does the LegPlot property not govern that, but only governs the legend itself?

    If the problem is the code then I'll take a look at my mess of wire, I just wanted to see if it was the LegPlots property first.
    Here's what it looks like, just in case
    Attachments:
    toomanycolors1.JPG ‏25 KB

  • How to show only legend in graph?

    Is there any way to show only legend in graph? I tried to look in XML of request but I didn't find anything. Please help. :)

    Just add a custom graph with
         <Graph Name='graph' Top='0' Left='0' Visible='False' Evaluation='Yes' Type='Bar' SubType='Basic'>
              <ValueScale Position='Left' MinorFont='Size:10;'/>
              <CategoryScale MinorFont='Size:10;'/>
              <Legend Name='legend_graph' Top='0' Left='0' Width='300' Height='100' Anchor='BottomRight' ZIndex='1'>
                   <Properties AutoSizeMarkers='False' BorderType='Medium' BorderColor='#e5e5e5' UseTransparentFill='False' FillColor='#b999b9' GrowVerticalMaxHeight='64' MinimumFontSize='0' Font='Style:Italic; Color:#4c4c4c;'/>
              </Legend>
         </Graph>see also:
    http://obiee101.blogspot.com/2008/08/obiee-date-time-scatter-graph.html
    regards
    John
    http://obiee101.blogspot.com

  • Autoscale XY Graph with 2 plots

    I have a graph with 2 different plots on the same Y axis. If I turn off the "visible" property on one of these plots (so I have only one plot visible), the autoscale Y continue to take both plots into account, thus creating a very too large scale for the visible plot. Is there a way to autoscale only one plot while another is hidden but associated with the same scale?

    You have several possibilities, for example:
    * instead of setting the property to invisible, temporarily replace one graph with empty data. (see attached sample code).
    * Don't use autoscale, but use ArrayMinMax on the visible y values, the set the yrange.minimum and yrange.maximum accordingly.
    *switch the second plot to a second y scale while invisible and back to scale 1 when visible again.
    * any other variation of the above.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    HideXYPlots.vi ‏51 KB

  • Reeal-time 3D graph with multiple plots

    Hello,
    I realise this is a very complicated question and I would appreciate any healp anyone could give. I am trying to:
    1- draw a 3D graph with three plots (plots are from coordinates read from XL)
    2- do it in real time, so that only one point from each plot shows at a time (the previous points disappear)
    Can anyone help me out? I looked at Sarah's advice and I got as far as the program that I have attached. I have also attached an XL sheet with random values (actually I didn't have any luck attaching two files).
    I would appreciate any response!
    Thank-you,
    Confused
    Attachments:
    3D graph.vi ‏127 KB

    IBAHKA wrote:
    Could you look at this new and improved (yet not perfect program) and help me out?
    Issues:
    Why do the axis all change and why aren't the points drawn all at once? ALso, is it possible to retain in memory and plot more than one point from each plot at once?
    The axis are changing because you didn't ask for constant scales. Just right-click on the 3D graph indicator and go to CWGraph3D/Properties... There a pop-up window will give you access to a number of settings. Explore. You will find how to allow the user to pan/zoom/rotate the graph, and to disable autoscaling...
    The points are not drawn all at once because you pass them one at a time!!! To plot several points at once, you have to build an array with the proper number of points (initialise first) then you can rotate the array after plotting, and replace the first point at the next iteration.
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • LabVIEW crashes when you run a VI that contains a mixed signal graph with a multi-plot cursor.

    Hello, LV 8.2.1 notes indicates the following bug fix:
    43SAIR2A  Fixed an issue where LabVIEW crashes when you run a VI that contains a mixed signal graph with a multi-plot cursor.
    I am running this version, and still have this behavior.  Is there anything I may be missing, and/or certain circumstances that may still be causing this?
    thanks in advance,
    Darren

    Darren:
    I looked at the CAR ID that you mentioned and the issue has been resolved in LabVIEW 8.2.1. To verify something similar, I ran the attached VI and things worked just fine. Please feel free to send me the steps to follow to reproduce the issue you are running into in 8.2.1.
    Regards,
    Rudi N.
    Attachments:
    MixedGraphs.vi ‏15 KB

  • Stacked Bar Graph with a line plotting count

    Hi everyone
    I am facing a problem with plotting a stacked bar graph with a line or dot for count.
    I have 2 y axes and one x-axes.
    Can anyone help out with suggestions as to how to do this in 9i Reports.
    Thanks
    Neelima

    The graph wizard in Reports 9i allows you to create a dual Y combination graph - is this not sufficient for your needs, or am I missing something?
    Danny

  • Is it possible to make a graph with drag and drop plots and use it as a control?

    I am trying to make a graph with multippel plots to use as a control, the plots should be drag and drop. Is this possible in LV 7.0 or do i have to use c++ or WB?

    I second Doc-Doc comment. I am not sure what you are asking.
    The attached is an example I found on the NI web-site some time ago. I cannot find the link again so here is a ZIP of what I found in a temp folder on my machine.
    Trying to help,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    WF_SketchPad.ZIP ‏67 KB

  • Plot excel data onto X-Y graph with time stamp

    Dear all, I have the same set of data but it is saved in excel format instead of text file now. However i think the column data are separated by tab, i have tried to write some codes but it dont seem to plot out the graph properly. I have no problem ploting out data in text file but not this excel file. Can anyone help out to plot this graph with timestamp?
    Attachments:
    test4.txt ‏1 KB

    I still don't understand your comment 'I have no problem ploting out data in text file'. The Read From Spreadsheet by default uses a tab separator so you should have no problem reading the file. Post the code you have already written so someone can see where your problem is.

Maybe you are looking for