Plot colors mismatched with legend

Does any happen to know why colors on a graph would not match the colors indicated in the legend?
I am trying to use a property node to set the color and name for each set of data which is displayed. The colors and names are displayed properly in the legend, but the color of the plot itself does not follow.
Attachments:
View_Collected_Data.vi ‏132 KB
data.txt ‏6 KB

The loop knows how many times to go due to a feature of LV called auto-indexing. If you pass in an array and let it autoindex on the boarder, the loop will automatically pull out the next value in the array with each iteration--AND set the number of time to loop before stopping. Compared to the hoops C makes you jump through to use arrays, this is indeed Very Cool...
Note that if you wire both the N terminal on a FOR loop, and autoindex an incoming array, the loop will iterate the smaller of the two sizes. For example, if you wire 5 to N and pass in an array with three elements, the loop will only go three times.
Finally, always remember that a FOR loop can iterate zero times. In that case any outputs coming directly from the loop will be
the default value for the datatype. Arrays will be empty, numbers will be zero'd and (this is a biggie) references numbers will be invalid(!).
In the case of your code, I modified the logic such that it generates an array of indexes that has one element for each signal selected. This array drives the loop that sets the plot properties. Note that if the operator selects more than 5 signals the higher-numbered plots will be undefined in terms of color and label because you only specify 5 colors in an array. (Input an array of 10 items and an array of 5 items and the loop only goes 5 times.)
Note that, although it's not used here, auto indexing also works with outputs. In that case though, the loop will automatically collect an array of the output values--one element per iteration.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Similar Messages

  • LR/ACR color mismatch with Nikon D7000 NEF files

    I recently purchased the Nikon D7000. The NEF RAW files are not supported in current versions of LR and CS5.
    Downloaded and installed LR 3.3RC. Also downloaded and installed ACR 6.3R1.
    Both work with the D7000 NEF-files with ONE exception. If I shoot a "Multiple Exposure" (one feature of the D7000)  the resulting image in both LR and ACR displays in strong "pink"/magenta. All other images display correctly.
    If I open the pink images in Nikon Capture NX2 2.2.6 they open correctly.
    If I use the White Balance tool (pipette) in LR, I can bring the image back to "almost normal" but the WB values then are Temp: 2150, Tint: -138. Conclusion: the Multi Exposure Image from the D7000 is completely mismatched by LR/ACR. But they are correctly matched by Capture NX2.
    This obviously needs to be corrected before final release.
    Has anyone else expreienced the same? Is there a workaround?

    Can you please supply some sample .NEF images? You can use YouSendIt.com with a target email address of [email protected] Thanks.

  • Polar plot with legend points

    I can put one Polar Plot with legend in points?
    Case:
    I have magnitude and phase arrays for build polar plot and i want put rotation legend in each point of measurement. Then we have 3 arrays (magnitude, phase and rotation), but rotation need stay like legend for each point.
    Somebody already do it?
    thx for tip.
    Leonardo de S. Cavadas
    Maintenance Engineer and Inspection - Bureau Veritas do Brasil
    Engineer Metallurgist with emphasis in Advanced Materials
    Technologist in Computer Science

    Unclebump,
     i do one simple modification to be possible add rotation value to image, isn't better solution but i think that i'm near to solution way. Look these VIs, Re-link is necessary.
    Leonardo de S. Cavadas
    Maintenance Engineer and Inspection - Bureau Veritas do Brasil
    Engineer Metallurgist with emphasis in Advanced Materials
    Technologist in Computer Science
    Attachments:
    Plot Polar Data with Legend.vi ‏74 KB
    OtherPolarPlot.vi ‏67 KB
    Polar Plot with Legend.vi ‏75 KB

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

  • Keeping plot colors with the right data

    I have a vi written in 7.1 that has three traces in one plot.  I have selector radio buttons so the user can turn on or off any channel.  The problem is the color of the trace is automatically grabbed by the vi and chooses the colors based on which trace is turned on first, second and third.  So, if the user turns off all of the channels and then turns them on one at a time, from top to bottom, they are correct, green, blue, and then red.  But, if they turn them on from the bottom first, then the first and third traces no longer follow the plot color legend.  Basically, I want to know how to lock a plot color to a given channel.
    Regards,
    Ron
    Solved!
    Go to Solution.

    I can't vouch for 7.1, but you are looking at plot.color property node similar to the one in this example. http://digital.ni.com/public.nsf/allkb/C6BFD9BD5F0​1108C86256F8100638B29
    Beginner? Try LabVIEW Basics
    Sharing bits of code? Try Snippets or LAVA Code Capture Tool
    Have you tried Quick Drop?, Visit QD Community.

  • Change colors in multiple pie chart - with legend

    I need to change the colors of groups shown in multiple pie chart diagram in CR XI.
    I managed to actually change the colors in the diagram by using highlighting rules in the wizard. (Sorry, I need to guess the correct English terms since I am using the German version.)
    But the colors in the legend are not affected by the rules, so the legend displays colors which are not shown in the diagrams at all. How can I fix this?
    Thanks in Advance
       Andreas

    Hi Andreas
    I have the same problem.
    I found this BO note:
    https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3131383434373026
    I says that this behaviour is by design and cannot change
    Not what you would expect really! 
    If the series colour can be changed then why does the series marker colour not match the series it represents?
    Patrick

  • Predefine plot color palette

    Has anyone found a way to change the set of colors used by Labview to color plots in a waveform or xy graph?  By default the color sequence is white, red, green, blue, yellow, purple, orange...  I'm working on a waveform graph that plots a sequence of waveforms collected by daqmx.  The user can select which signals to measure and plot - e.g voltage, current, light intensity.  The user also defines a test sequence where they would like to watch the response of the DUT at each segment of the sequence. 
    Based on other posts on this forum, I've figured out how to toggle between two plots in an xy graph to get the colors, but it seems like it should be much easier and more efficient to just change the preset colors that will be used by the waveform graph.   Why not just set the palette to something like red, white, red, white... and let the graph do its thing?
    Any ideas?
    Solved!
    Go to Solution.

    Hi Matthew,
    I've gotten this method to work with an xy plot (I can't use waveforms since my dt is a user variable).   Its much more processor efficient than using property nodes but I'm bothered by the 2x increase in memory.  So far this is the best solution, but I can't help thinking that if I could change the color set that the graph pulls from when plotting, then I could just set the colors I want and let the plot do all the work.  When you create a plot indicator on a vi front panel and look at the plot legend, the color set is always the same - where does it come from?  Maybe an ini file somewhere?
    It just occurred to me - when you modify a plot, like change the axes or plot colors, where are the changes saved?  They are persistent, even when the vi is compiled.  So in theory, it should be possible to do programmatically before I start filling the plot with data.
    Message Edited by gharris on 12-22-2008 09:32 AM

  • Chart Plot Color change programatically

    Hi, 
    May i know that for the graph plot in labview web ui design, can i change the plot color programatically ?

    Hi Ceties,
    There is Corrective Action Request:
    CAR#36683
    Though this is a bug and yet not solved, I prepared an example for you which show possible workaround - it is based on the fact, that the redrawing works correctly when you resize legend. Because this is not possible to do programmatically at ru-time for staced plots, this example uses SubPanel which display SubVI with only waveform chart. I know this is not convenient, but I guess you could use such a approach in order to improve yours customers' experience.
    With kind regards,
    Martin Stefik
    Application Engineer,
    Czech Republic and Slovakia
    Attachments:
    Example.zip ‏22 KB

  • Xy graph plot color

    Hi!
    I have a XY Graph with 2 plots. For screen displey I have the Graph with black background color. But for printing I set the BG-color to white and the Plot colors to black.
    Before changing the Plot colors I save the colors with a property node (setting active plot and reading plot color). After printing I try to restore the colors (same way, by setting active plot and writing plot color).
    My problem is that the colors get only restored if I have set them manualy before. Otherwise the value gets saved but not restored and the plots stay black...
    Anyone knows why this happens?
    thanks
    hmann

    There's a number of things that could be going wrong here - could you please post your VI so we can have a closer look?
    Copyright © 2004-2015 Christopher G. Relf. Some Rights Reserved. This posting is licensed under a Creative Commons Attribution 2.5 License.

  • Problem with Legend Representation.

    Dear All,
    any inputs on this issue ....
    We have a Pie Chart which represents the data in categories and a LEGEND for understanding the ranges for categories .
    We have provided navigation block for further data analysis.
    Quoting an example which gives you an idea of issue.
    I am categorizing all students in a school into 3 categories as
    S grade, M grade and A grade.
    At legend level I m representing as
    GREEN    - S marks > =90
    YELLOW  - M marks >= 80 and <90
    RED         - A marks < 80
    But now when we restricting the data with the fields in the navigation block, say by Department of a Student.
    The colors of the legends are varying...not as the defaultu2026
    which I mean to say is that it is not accepting the Color
    Constraints which I have mentioned for each grade separately,
    In a department XYZ, I had 5 students only ,all with S rating
    Now we should get a pie chart represented with Green with a count of 5.(we are able to achieve this)
    and the default legend should be
    GREEN    - S marks > =90
    YELLOW  - M marks >= 80 and <90
    RED         - A marks < 80
    but the we are not able to achieve the legend with is defined
    but the legend is showing 3 different green shades for 3 categories S grade, M grade and A grade (other than standard defined colours),which actually should be GREEN for - S grade YELLOW for - M grade and RED for - A grade.
    Can you help me in achieving the 3 different(Green,Yellow,Green) colors in Legend and suggest me how to overcome this issue.
    Please do the needful..
    Regards,
    Pradeep.

    Hi All,
    any idea on  this issue...??
    Edited by: N R Pradeep Reddy on Oct 23, 2008 3:05 PM

  • Constraining the algorithm for assignment of multiple plot colors

    I would like to know if there is some way to modify the algorithm that
    LabVIEW uses to automatically assign different colors when a graph
    displays multiple plots. In particular, given the default background
    color (black), it appears that black is never used for a plot color.
    However, if I programmatically change the background color to white,
    for example, I would like the plot color assignment to not use white. I
    would also like to know if it is possible to constrain the plot color
    assignment to a single color a priori, without having to go back and
    explicitly assign the colors of each plot via the property node in a
    loop.
    Thanks.
    Lyle

    I think you will have to create your own plot color assignment function to do this.
    You can set the color of each plot by using the active plot property (index of the plot you want to change) and then set the plot color property (just expand one and the same property ndoe to set both at the same time).
    You can then make that function check the background color and choose a color table that fits. If this is in a built application you would run this function when a color change is detected, if it's in the development environment you need this feature make the function ask for a VI and plot name (so that it can get a reference to the plot) and put it in your projects folder. That way whenever you need to set the plot colors differently you just select this function from the Tools menu of LabVIEW. An easier alternative though would be to just create the different graphs you need (with the colors for all plots already defined correctly for that background etc.) and save them as custom indicators...
    MTO

  • Color mismatch between CS4 and Canon PIXMA PRO6500

    Hi there! I am trying to research if anyone else is having a problem with color mismatch between CS4 and their printer. Last night I printed a .tiff image out of CS4 to my Canon PRO6500 printer and the sky came out purple / pink! It was supposed to be a stormy grey color. I have the color management turned off on the printer settings. I have CS4 manages color turned on and the correct ICC profile selected for the paper I am using. When I do a soft proof in CS4 the image looks fine, but when I print I get something completely different, mostly with the sky (purple / pink) color! Just for the heck of it I did a Print Preview under my Page Setup and guess what, the sky actually shows purple / pink! So I have no idea what's going on. I checked all my setting, ink cartridges, tried different paper with the appropriate ICC profile and no dice. Still have a goofy looking sky! I thought PROOFING the image is supposed to show you how the printed image is going to look? apparently it doesn't because it's not. The Print Preview has an accurate representation of the print but I have no idea where the pink / purple sky is coming from. They are supposed to be stormy clouds as I said. I appreciate any help anyone can provide .
    Sabciu

    I have the color management turned off on the printer settings.
    But do you have a measured color profile based on a sample print? Most likely not, so this is not doing anything in your favor. The current profile may present the defaults for a given printer, but not the actual density based on your other printer settings. So by all means, unless you can be sure to obey a full calibration throughout, turn on the printer CM. Also, since it is a Pro model, you may actualyl have to use the dedicated RIP software that was bundled with it to get correct results, not the default windows print engine.
    Mylenium

  • Plot.Plot Color Bug?

    I am puzzled about this. Check out the two almost identical VIs attached. Run the first one and try to change the Plot Color. The color property changes based on the color value. Do the same with the second VI (PlotColorWrong.vi). Try to change the color of the plot - it does not change!
    Am I doing something wrong or is this a LV bug?
    LV2009, SP1, Windows XP.
    Solved!
    Go to Solution.
    Attachments:
    PlotColorCorrect.vi ‏36 KB
    PlotColorWrong.vi ‏37 KB

    you would use a FOR loop, e.g. as follows:
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    GetPlotColors.PNG ‏4 KB

  • Indesign issues. Impossible to fill a form created by the pen either with color either with an image. The image is there but is invisible. Same problem with the line (impossible to color it or to change the tickness. Is there anything to change in the pre

    I have recently installed Indesign CC (I had the CS 5.5). I have some issues in doing simple things such as fill in a forma created with the pen either with a color either with an image. The image is there but is invisible. same issue when I want to draw a line. Impossible to color the line  and when I increased the thickness, it was creating a sort of wrap around the shape. have you ever encountered this kind of issue ? Thanking the community for his help.

    You will probably get better help in InDesign
    This forum is about the Cloud as a delivery process, not about using individual programs
    If you start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Flex Error #1001: Digest mismatch with RSL error

    I apologize if this is not the correct location for this question but it was the closest I could find.
    I am working in salesforce trying to add a new content pack.  This screen uses a tool written in flash.  The screen that comes up is an error with the following:
    Flex Error #1001: Digest mismatch with RSL
    https://cs13.salesforce.com/_swf/121310/sfc/flex/framework_3.5.0.12683.swf.
    Redeploy the matching RSL or relink your application with the matching
    library.
    I have been working with SalesForce support but they don't have a clue and want to punt to Adobe. 
    The support staff at SalesForce has no trouble accessing the page with the flash control from thier pc.  I have tried several computers in my office and from several browsers (IE 9 and Chrome).  I have reinstalled Flash Player 11 and cleared browser caches.  Nothing seems to work.
    It has to be something common to computers in my office or my network.  All of the information I can find on the Internet talks about rebuilding the application and redeploying it.  I can't do that since this is part of SalesForce and not something I own.  Also, it works for them on their computers.
    I am running windows 7 64 bit.  I have McAfee running (and have checked that Flash is not blocked).
    The flash player itself works when I go to the Adobe site and try other content.
    The only other odd thing I have is that my hard drive is encrypted.
    Any ideas?
    Thanks,
    Mike

    Chris,
      I have cleared the browsser and flash cache data then restarted browswers and windows. Still no luck.  I reverted the flash player back to 10.3 after following the instructions in the link you provided for a clean install but still get the error.  SalesForce did not state what version of FlashPlayer they are using but I will check with them later today. 
    All of the machines that I have tested on have been at the office and all have encrypted hard drives with PGP desktop.  I am going to try my laptop on my home network tonight to see if we are blocking something during the download.
      This is driving me nuts.  I know is it something specific to the machines in the office or the office network but I can't find it.
    Thanks for your help.  Please let me know if you have any other ideas.
    Mike

Maybe you are looking for

  • Cálculo base PIS e COFINS sem IPI - Consumo

    Olá pessoal, Estou com uma demanda da área fiscal e gostaria de saber se podem me ajudar. Temos um material de uso e consumo e a nota que o fornecedor enviou contém PIS + COFINS + IPI apenas. O problema é que o SAP para consumo calcula IPI a partir d

  • How do you save µ-law in Audition CS6?  It's listed in the CS6 brochure.

    I've been waiting for Audition CS6 to show up so I didn't have to choose between the new features of Audition CS5.5 and then switch back to Audition CS3 to save to µ-law, but I can't find it in the save options. How do you save in the µ-law format? T

  • OSX 5.7 update display problems

    I have never had problems with updates before. With 10.5.7 I have an external display running with my macbook, (which was connected during the install), but since installing the update, I cannot correct the display. Now my macbook display has turned

  • Essbase Security Filter issue.

    Hi, Its regarding the security filter issue. The major problem is whosoever user is provisioned under that security filter, if the user is trying to connect to Application using Excel Addin / Smartview, it crashes the essbase server [Network Error [1

  • Uninstalling Acrobat reader 8.12

    Hi, I am trying to install Acrobat Pro 9 and need to uninstall previous programs. I can't uninstall Acrobat reader 8.12 as it says the source is unavailable. Any ideas how I can get rid of it? Thanks goll