XY Graph Axis's autoscale but no plot shows?

I just don't undestand XY Graphs.
I have folowed the examples, tried the xy graph express vi,  even gone as far as copying and pasting the example vi right into my own program.
The axis's autoscale but the plot never shows on the graph?

You only generate one point for each iteration of the large FOR loop and, unlike charts, XY graphs don't keep a history. You might get what you want by double-clicking the "Built xy graph" express VI and unselect "clear data on each call". I don't really use that feature.
How fast does the loop run? Maybe it's OK to build the x and y array at the loop boundary and only plot at the end of the loop (green insert of image)? FOr continuous update while the loop is running, you could also build the x and y arrays in a shift register (upper part of image).
Notice that you don't need to do the complicated detour via a 2D array. Simply keep it as 1D array and insert an "array to cluster" for the chart (see image). Don't forget to set the cluster size to 3 by right-clicking on "array to cluster".
Message Edited by altenbach on 02-12-2007 03:56 PM
Message Edited by altenbach on 02-12-2007 03:59 PM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
XYUpdate.png ‏33 KB

Similar Messages

  • XY Graph, 2D Error Bar, Legend, Multi Plot Help? Please modify the VI

    PLEASE READ THE ENTIRE POST and HELP!
    Please help with this VI and make it an instructive example for me and other novices like me who come across this typical example.
    A typical problem in plotting data is as follows: On the SAME plot (Y-axis = Amplitude vs. X-axis = Time), plot the curves Amp1, Amp2, Amp3, ... coming from sample1, sample2, sample3, ...
    Furthermore, there is Error1, Error2, Error3, ... associated with Amp1, Amp2, Amp3,...., which also needs to be plotted. In order to distinguish between these curves, one may use different
    colors and show a legend that reads Amp1 (say black), Amp2 (say red), and Amp3 (say green). The plot then becomes complete and conveys data very conveniently.
    The attached VI makes an attempt to plot Amp1 and Amp2 using XY Graph and also 2D Error Bar plot (to show error bars). There is one slight problem. The legend does not show what it is supposed
    to show. Can someone fix this? If I plot two curves, the legend should show Amp1 and Amp2, if I plot three curves, the legend should show Amp1, Amp2, Amp3, and so on.
    I don't want to see the default Plot 0, Plot 1, or whatever. Also, it would be nice to dynamically control the symbol, color, curve style etc, as we keep adding more and more curves to the plot.
    Once this problem is fixed, I know I can easily extend it to make it plot more than just two curves in a dynamic way. I could use for loops with shift registers, etc to plot any number of curves on a single plot.
    Believe me, I have searched for other posts and cannot find a simple example like the one I have posted here. Many examples I found have confused me more than helped me. 
    I believe that if this problem is solved in a simple way, many others will find this example very instructive. So by helping me, you help many other people as well!
    Thank you in advance. Please see the attached files (the VI, and an example data file that I just created)
    Solved!
    Go to Solution.
    Attachments:
    Multi_Plot_Legend_Error_Bar.vi ‏24 KB
    data.txt ‏2 KB

    Some members have pointed out that this problem has already been resolved (see the link below).
    http://forums.ni.com/t5/LabVIEW/Dinamically-handle-legend-names-using-property-nodes/td-p/1479572
    I did verify that this works for XY Graph, but not for 2D Error Plot.
    I need both legend and error bars. Shame on LabVIEW for not making such a basic plotting requirement easy and trasparent. 
    There are many clever people who can find work arounds, but that is a not a correct approach. 

  • Line graph :axis problem.

    hi all,
    i am using dvt:lineGraph with subType="LINE_VERT_ABS"..in tabularData atrribute i am using EL to bind array list to populate the graph
    tabularData="#{pageFlowScope.creditcard_helper.creditCardGraphList}"
    creditCardGraphList is populated like this:
    for first line on graph: creditCardGraphList .add(new Object[] { balance, "*Current*", noOfInstallment });
    And
    for second line on graph: creditCardGraphList .add(new Object[] { balance, "*New*", noOfInstallment });
    now my graph is populated properly with Two Line
    one for type "*New*" and other For type "*Current*"
    problem is
    on Y axis my noOfInstallment is getting plotted and for both line it starts from origin i.e 0.
    but
    on X axis my balance is getting plotted .problem on x axis is
    for type Current say first point starts from origin and ends in half way on x-axis, for second type my balance should start from origin only which is not happening like it is for y-axis.
    i.e for second line on x-axis should start from origin only and should take the same scale as of for first line's x-axis....
    can anybody help..???
    i really stuckked here

    yes current is line1 and on same graph one line having the same x and y commodies.......
    say line1 having the co-ordinated
    (x,y):-----(10,2)(20,40)(30,50)
    line2 having the co-ordinate:
    (x,y):-(12,4)(24,30)(15,45)
    now consider line 2nd's first point (12,4) this point on x axis should be between line 1st's (10,2) and (20,30)....which is actually not happening...(12,4) is after line 1st's (30,50)...
    here on x-axis it is taking the values as group.every value it is taking at new point....
    but on y-axis its taking as values...which it will plot 4 between 1st line's(10,2) and(20,40)...
    morever current and New are the same commodies i am adding them i one arraylist...
    for line1: graphlist.add(new Object[] { balance, "current", noOfInstallment });
    for line2: graphlist.add(new Object[] { balance, "New", noOfInstallment });
    something to do with this i guess...
    <dvt:y1Axis/>
    <dvt:o1Axis></dvt:o1Axis>
    thanks for reply
    Dhiraj
    Edited by: dhiraj shingavi on Nov 30, 2010 1:01 AM
    Edited by: dhiraj shingavi on Nov 30, 2010 1:27 AM
    Edited by: dhiraj shingavi on Nov 30, 2010 1:28 AM

  • Graph does not autoscale when it's value is updated in a subvi and Defer Panel Updates is on

    Hello,
    I have a main VI containing several xy grpahs, which I update from a sub vi. In order to cut down on front panel redraws I defer panel updates while the graph values are updated and then redraw the FP after this has been done. However when I do this the graphs do not autoscale properly. I've attached two vi's as an example. Run the Main vi, if the Defer Panel Updates boolean is false then everything works fine, if it is true then the graph does not autoscale.
    I have found a previous post that mentions something similar (here). Has this been fixed or is there a work around.
    I'm using LV 8.5
    Thanks
    David
    Attachments:
    Main3.vi ‏22 KB
    Sub1.vi ‏14 KB

    Hi Matthew,
    Thanks for your reply, it fixed the problem. However it has thrown up a different but related issue.
    In my application the user can select how many graphs to display and I
    programmatically calculate the size and position of each graph. If any
    of the graphs overlap, even slightly, and defer panel updates is on
    then only the topmost graph autoscales correctly, the others don't at
    all, although the data they display gets updated. Turning autoscale off
    and on again for a particular graph rescales that graph, presumably
    because it has been forced to.
    I have attached a test case with 4 graphs. The size and position of the
    graphs are set by the 'Offsets' cluster. Click 'Rearrange' to get it to
    recalcute the positions. If you change the Vertical Gap or Horizontal
    Gap values to 0 or negative then the graphs will overlap. With Defer
    Panel Updates off there is no problem. With it on only the topmost
    graph updates properly.
    My current workaround is to ensure the graphs don't overlap, but I'm guessing they shouldn't be doing this anyway.
    David
    Attachments:
    PositionsCalculator.vi ‏19 KB
    Main21.vi ‏50 KB
    Plot.vi ‏22 KB

  • Xy graph axis number font sizes.

    sorry see my earlier xy graph axis font post for the details but what I really want to do is change the size of the font.
    thanks.

    Property node properties-> X (or Y) Scale -> Marker -> Font -> FontSize

  • Xy Graph property node:apply to all plots

    I have an xy graph with multiple plots and am using property nodes to give each plot a different color.  My problem is that i would like to set the "point style" for every plot to be the same, in other words: create a default point style that differs from the XY graph default.
    Cheers
    CLA, CLED, CTD,CPI, LabVIEW Champion
    Platinum Alliance Partner
    Senior Engineer
    Using LV 2013, 2012
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.

    You can do this statically on the "Plots" tab of the graph properties dialog box.  You can also get a property node to alter this dynamically by right-clicking on the graph and selecting  Create >> Property Node >> Plot >> Point Style. 
    Brian R.
    District Sales Manager
    Washington DC
    National Instruments

  • XY-Graph: How to set number of plots in legends depending in number of plots

    Hello,
    i have an xy-graph that gets an array of plots. The size of the input array is can be different.
    Now how can i set via properties the number of plots shown in the plot-legend?
    Thanks

    Hi Thomas,
    there's a property to determine the number of plots shown in the legend…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Can i select which plots show in graph?

    Hey guys, I want to know
    if I have a graph and I have like 8 plots
    can I select which plot show like, in some cases I want to see only 2 plots, in other case I want to see 1 plot only, and other time I want to see all the plots, can I select or make something to make it happens?
    Thanks
    Solved!
    Go to Solution.

    Hello Gerd,
    I found another way than coloring the plot transparent (btw. with better performance for huge data graphs). It has another advance since the graph remembers the original color.
    greets, Dave
    Message Edited by daveTW on 01-12-2010 01:12 PM
    Message Edited by daveTW on 01-12-2010 01:12 PM
    Greets, Dave
    Attachments:
    Example_VI_BD.png ‏7 KB

  • I deleted a contact, but they still show up in my text options to send.  I would like to delete the contact from my texts too.

    I deleted a contact, but they still show up in my text options to send.  I would like to delete the contact from my texts too.

    No don't restore your iphone. I've done that several times &amp; it has never worked. -I still have deleted contacts in my iphone texts.  *However if you do restore it you will not lose all your data, pics, text messages etc if you backup in iCloud. It restores back to original phone. Very nice :). Anyhowwww....
    I JUST  figured it out!! :))). Remove the contact from recents.
      Start a text. You should see the deleted contact. All the way to the right of the name is a symbol. The symbol is a circle with "i" in the middle. Click that symbol then in red lettering click "remove from recents".

  • HT3819 I have movies but no TV shows on my shared iTunes

    I can see movies from all passwords used for my iTunes. My family members share one computer. The Share is my user ID. I can watch my movies but no TV shows apear on my iPad. Since I only have this set up to watch a specific TV show it is been kind of  frusterating.
    iTunes won't let me edit the metadata so I have been downloading the episodes from the cloud and deleting them. Silly since I can watch them on my computer in the other room that is connected by wifi. Perhaps Apple likes sending out extra data?

    That means it is not fully downloaded so you are streaming it. Fully download it.

  • I tried updating my iPod 5th gen to iOS 8 but it only shows me a picture of the iTunes logo and a charger at the bottom, I'm not sure what this means or what I need to do. Can someone please help me?

    I tried updating my iPod 5th gen to iOS 8 but it only shows me a picture of the iTunes logo and a charger at the bottom, I'm not sure what this means or what I need to do. Can someone please help me?

    After restoring to factory settings/new iPod you will then have to restore from backup
    To restore from backup see:
    iOS: Back up and restore your iOS device with iCloud or iTunes       
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:                         
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        

  • My iPod touch is not working in iTunes, but it is showing up on my "My Computer".

    My iPod touch is not working in iTunes, but it is showing up on my "My Computer". The instructions from Apple Support is NOT effective. Please help.

    See
    iOS: Device not recognized in iTunes for Windows
    - I would start with
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    or              
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    However, after your remove the Apple software components also remove the iCloud Control Panel via Windows Programs and Features app in the Window Control Panel. Then reinstall all the Apple software components
    - Then do the other actions of:
    iOS: Device not recognized in iTunes for Windows
    paying special attention to item #5
    - New cable and different USB port
    - Run this and see if the results help with determine the cause
    iTunes for Windows: Device Sync Tests
    Also see:
    iPod not recognised by windows iTunes
    Troubleshooting issues with iTunes for Windows updates
    - Try on another computer to help determine if computer or iPod problem

  • TS1814 Most of the songs on my iPod Classic no longer dshow up on iTunes on my laptop.  I deleted iTunes & installed the latest version but this did not change anything.  For example on 1 playlist I have 66 songs but only 1 shows on the iTunes screen.  Th

    Most of the songs on my iPod Classic no longer show up on iTunes on my laptop.  I deleted iTunes & installed the latest version but this did not change anything.  For example on 1 playlist I have 66 songs but only 1 shows on the iTunes screen.  Thanks you for any help.

    See Empty/corrupt iTunes library after upgrade/crash or
    Recover your iTunes library from your iPod or iOS device.
    tt2

  • Have a first gen ipod touch and it is not showing up on my computer, it is in my devices but won't show up so I can put music on it.  it syncs please help

    I don't know hoIw to fix this problem, anyone.   I have tried to add device, but like I said it is already on the devices but won't show up in the computers so I can put music on it syncs on the itunes site it also says my ipod on the itunes site but no itunes logo shows up  any help is appreciated thanks

    Have yu tried here:
    iPhone, iPad, or iPod touch: Device not recognized in iTunes for Windows

  • External Drive Files Not Showing Up on Mac but files do shows Up on PC

    External Drive Files Not Showing Up on Mac but files do shows Up on PC
    i had the Ex HD for about 3 years running smoothly on my mac but recently everything disappeared. plunged it into a pc to see if it read my files and it did. what can i do? to make it work on mac again. i don't want to reformat that drive because i have important applications (DMG) and other zip photo video files in the drive.

    yes. i did.
    ...i have tried "verify" & "repair" but they didn't pass the san test. and when i "unmounted/mount" a error message popped up say that there is a application running off the drive but there nothing (i see) running, to close all activity

Maybe you are looking for

  • I try to restore my iphone 4 software it shows unkown 16 errpor

    i try to restore my iphone 4 software it shows unkown 16 errpor

  • ICS/My Music App Issues?

    I just got my Razr 7 days ago. It was updated to ICS in the VZW store by the "device specialist" before it was ever in my hand. Last night, I was finally getting around to setting up playlists. When I started, the check boxes to add music to the play

  • No Cover Flow View over a network?!?

    I'm really exicted about the new version of iTunes 7. I especially like the new Cover Flow view. However, I'm attempting to connect to the my library on my network from my laptop and the view options for the album and cover flow are grayed out. Am I

  • Fusion Intelligence (DBI) content or data model

    Hi all, At the moment we are implementing Fusion Intelligence (mainly financial). In order to determine to what extend the pre-build reports / dashboards matches the reports described in the functional design we need to know to what eBS objects the o

  • Security risks through Facebook integration?

    Facebook (as well as Google) are known to track all of a user's web surfing habits, URLs and paths through the net, as long as their cookies and data are on the machine. So anybody loving privacy and freedom can delete such cookies / caches after acc