How to plot with multi colors in a single XY graph?

Hi,
  I'm making hesteresis measurements. In this case, I collect data while sweeping voltage first from 0 to 2V, and then back from 2V to 0V, and the data are plotted in a single XY graph. In the XY graph, I want forward sweep plot of one color while the reverse sweep with another color so I can easily make comparisons. And I want to see the data real time. I tried to wire "plot color" in "property node", but this will change the color globally and can not be applied to a section of data. Can anyone advise me how to do this? Thanks!
Guanglei 
Solved!
Go to Solution.

Hi Graham,
  Thank you very much for the reply, I really appreciate it.
  However I don't quite understand your descripton. Yes I do spit my data in two arrays, one for forward sweep, and the other for reverse sweep. I can plot with different colors in XY graph by appending several XY graphs into one, but by doing this I can not see the data real time. I quickly made a vi to demonstrate my problem,  hope this will give you a better understanding. Thanks. 
Guanglei
Attachments:
demo_GL.vi ‏108 KB

Similar Messages

  • How to print a plot with two colors Without using two plots

    Hello everybody,
    Escuse my English (poor Frenchies....)
    I'm working with VB6 and I will need to print a plot with two colors (Some values greater than a trigger for example, ...)
    I was looking for some help to discover if that thing is possible without using another plot, this is what I'm already doing, and it do not satisfy me (and my boss....)..
    Thank for your Help.
    Julien

    Hi Julien,
    I have found on the different link to make that you want.
    This first link is on National Instrument site, the first is general, and second provided information about : How Can I Programmatically Print Out a ComponentWorks Graph Object?.
    http://digital.ni.com/public.nsf/websearch/81D87CB2A5BF6C11862569E4008240FE?OpenDocument
    http://digital.ni.com/public.nsf/websearch/dc3430165bc916c586256317006f8cc9
    Links below are on the web, and explain how do you can print a graph on Visual Basic. (the first is French link  )
    http://khany.developpez.com/tutoriel/mschart/
    http://www.programmersheaven.com/zone1/cat378/18546.htm
    Regards,
    Message Edité par Christophe S. le 12-27-2005 01:51 PM
    Christophe S.
    FSE East of France І Certified LabVIEW Associate Developer І National Instruments France

  • How can I get Multi-color text it a swing componet?

    How can I get Multi-color text it a swing componet?
    I've tryed JTextPane and JEditorPane.
    If they support having text in more then one color then I don't see how.
    I want to make a color-coded Java editor in Java, but I can't color-code if I can only have one color.
    JComponent.setForeground(Color fg)
    is not what I need.
    maybe Java doesn't support it yet.
    but I hope it does.
    Please help, thanks.

    Hi,
    I've made you a little example with a coloured JEditorPane and JTextPane:
    import javax.swing.*;
    import javax.swing.text.*;
    import java.awt.*;
    import java.awt.event.*;
    public class ColorDemo extends JFrame {
         public ColorDemo() {
              super("ColorDemo");
              // coloured JEditorPane
              JEditorPane editorPane = new JEditorPane("text/html",
                   "<FONT color=red> This </FONT>"+
                   "<FONT color=blue> is </FONT>"+
                   "<FONT color=green> a </FONT>"+
                   "<B> JEditorPane </B>");
              editorPane.setPreferredSize(new Dimension(250, 150));
              // coloured JTextPane
              JTextPane textPane = new JTextPane();
              textPane.setPreferredSize(new Dimension(250, 150));
              Document doc = textPane.getDocument();
              Style def = StyleContext.getDefaultStyleContext().
                   getStyle(StyleContext.DEFAULT_STYLE);
              try {
                   StyleConstants.setForeground(def, Color.blue);
                   doc.insertString (0, "This ", def);
                   StyleConstants.setForeground(def, Color.red);
                   doc.insertString (5, "is ", def);
                   StyleConstants.setForeground(def, Color.green);
                   doc.insertString (8, "a ", def);
                   StyleConstants.setBold(def, true);
                   StyleConstants.setForeground(def, Color.black);
                   doc.insertString (10, "JTextPane", def);
              } catch (Exception e) {}
              JPanel contentPane = new JPanel();
              contentPane.add(textPane);
              contentPane.add(editorPane);
              setContentPane(contentPane);
         public static void main(String[] args) {
              JFrame frame = new ColorDemo();
              frame.addWindowListener(new WindowAdapter() {
                   public void windowClosing(WindowEvent e) {
                        System.exit(0);
              frame.pack();
              frame.setVisible(true);
    }Hope this helps,
    Kurt.

  • Ipod froze with multi-colored lines.

    My iPod suddenly froze with multi-colored lines in the screen as I was waiting for an app to start. I tried holding both the sleep/awake button and home button at the same time to restart it, but it won't work. I tried connecting it to the computer itunes but it wasn't recognized. What should I do, help please?

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • How can I make multi-colored links change their rollover or hover color?

    I have made links with seperate colors using css, but the links with new colors have no hover property. I want these links to change color when the cursor hovers over them the same way the other links on my page do. I have tried making a new css rule for <hover> and tried writing the property into the css code but to no effect. I have searched the web and this forum for an answer and found notheing that works. Does anyone know how to give links with multiple colors a hover property that will make them change color? All of my other links change color as defined in the page properties, but the links with new color rules don't change color anymore. This is probably pretty basic. I'm new to DW, using CS6. If anyone can provide a step by step and show where the code should be inserted, this would be very helpful. Thank you in advance!

    Basic HTML5 Layout with Multi-colored menu.
    Copy & paste the code below into a new, blank document.  SaveAs test.html.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5 Document</title>
    <!--[if IE]>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <![endif]-->
    <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
    <style>
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    body {
        font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, sans-serif;
        font-size: 62.50%;
        width: 900px;
        /**with width, this is centered**/
        margin: 20px auto;
        padding: 0;
        background: #CCC099;
        box-shadow: 3px 3px 12px #333;
        border-radius: 12px;
    /**TEXT LINKS**/
    a {
        text-decoration: none;
        font-weight: bold;
        color: #F63
    a:visited { color: #F93 }
    a:hover, a:active, a:focus { text-decoration: underline }
    header {
        margin: 0;
        padding: 0;
        min-height: 100px;
        border-radius: 12px 12px 0 0;
        color: #FFF;
        background: url(http://lorempixel.com/output/abstract-q-c-1056-100-7.jpg) no-repeat;
    /* Multi-colored Horizontal Drop-Menu */
    nav {
        float: right;
        padding: 4px;
        text-align: center;
        background: rgba(0,0,0,0.3)
    nav ul {
        margin: 0;
        padding: 0
    nav li {
        list-style: none;
        font-size: 12px;
        float: left;
        text-align: center;
    /**top level menu**/
    nav li a {
        display: block;
        text-decoration: none;
        margin-right: 0; /* space between links */
        width: 10em; /* adjust as needed or use auto */
        padding: 8px;
        font-weight: bold;
        line-height: 1.50em;
        border-top: none;
        color: #000;
    /**alternating background colors**/
    nav li:nth-child(odd) > a { background: #CAD3D3 }
    nav li:nth-child(even) > a { background: #FFCCCC }
    /**top menu style on mouse over**/
    nav li:hover > a {
        color: #FFF;
        background: #033D53;
    /**sub-menu**/
    nav li ul {
        display: none;
        text-align: center;
        margin: 0;
        padding: 0 1em;
        background: none;
    /**sub-menu, help for older IE**/
    nav li:hover ul, nav li.hover ul {
        display: block;
        position: absolute;
        padding: 0;
    nav li:hover li, nav li.hover li { float: none; }
    /**drop-menu style**/
    nav li:hover li a, nav li.hover li a {
        width: 10em; /* adjust width as needed or use auto */
        margin-top: 0;
    /**drop-menu style on mouse over**/
    nav li li a:hover {
        background: #D3E1B7;
        color: #004A43;
    /* Clear floated elements at the end*/
    nav:after {
        display: table;
        content: '';
        clear: both;
    /**END DROP-MENUS STYLES**/
    article {
        background: #FFC;
        padding: 3%;
        font-size: 125%;
    /**3-COLUMNS**/
    section {
        float: left;
        width: 33.33%;
        padding: 1%;
        background: #EAEAEA;
        min-height: 250px;
    /**alternating background-colors**/
    section:nth-child(even) { background: #DADADA; }
    footer {
        clear: left;
        color: #FFF;
        background: #033D53;
        font-size: small;
        font-weight: bold;
        text-align: center;
        padding: 1%;
        border-radius: 0 0 12px 12px;
    /**text styles**/
    p {
        margin: 0 0 1.5em 0;
        padding: 0;
        font-size: 1em;
    /**header text**/
    h1 {
        margin: 0;
        padding: 0.5em 1% 0;
    h2 {
        margin: 0;
        padding: 0 1%;
        font-style: oblique
    h3 {
        margin: 0;
        padding: 0;
        font-size: 1.5em;
        color: #09F;
    </style>
    </head>
    <body>
    <header> <h1>Site Name</h1> <h2>Some Pithy Slogan</h2>
    <!--begin top menu-->
    <nav>
    <ul>
    <li><a href="#">ABOUT US &#9660;</a>
    <ul>
    <li><a href="#">Videos</a></li>
    <li><a href="#">Newsletter</a></li>
    </ul>
    </li>
    <li><a href="#">PRODUCTS &#9660;</a>
    <ul>
    <li><a href="#">Broken Glass</a></li>
    <li><a href="#">Mosaic Tiles</a></li>
    <li><a href="#">Adhesives</a></li>
    <li><a href="#">Grout</a></li>
    </ul>
    </li>
    <li><a href="#">ACCESSORIES &#9660;</a>
    <ul>
    <li><a href="#">Gloves</a></li>
    <li><a href="#">Rubber Mallets</a></li>
    <li><a href="#">Sponges</a></li>
    <li><a href="#">Safety Glasses</a></li>
    </ul>
    </li>
    <li><a href="#">CONTACT</a></li>
    </ul>
    </nav>
    <!--end top menu-->
    </header>
    <article>
    <h3>Main Content goes here...</h3>
    <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris vitae libero lacus, vel hendrerit nisi! Maecenas quis velit nisl, volutpat viverra felis. Vestibulum luctus mauris sed sem dapibus luctus.</p>
    </article>
    <!--3-columns-->
    <section> <h3>Heading 3</h3>
    <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris vitae libero lacus, vel hendrerit nisi! Maecenas quis velit nisl, volutpat viverra felis. Vestibulum luctus mauris sed sem dapibus luctus.</p>
    <ul>
    <li><a href="#">some link</a></li>
    <li><a href="#">some link</a></li>
    <li><a href="#">some link</a></li>
    </ul>
    </section>
    <section>
    <h3>Heading 3</h3>
    <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris vitae libero lacus, vel hendrerit nisi!
    Maecenas quis velit nisl, volutpat viverra felis. Vestibulum luctus mauris sed sem dapibus luctus.
    Pellentesque aliquet aliquet ligula, et sagittis justo auctor varius. Quisque varius scelerisque nunc eget rhoncus.
    Aenean tristique enim ut ante dignissim. </p>
    </section>
    <section>
    <h3>Heading 3</h3>
    <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris vitae libero lacus, vel hendrerit nisi!  Maecenas quis velit nisl, volutpat viverra felis.  Vestibulum luctus mauris sed sem dapibus luctus.  Pellentesque aliquet aliquet ligula, et sagittis justo auctor varius.  Quisque varius scelerisque nunc eget rhoncus.  Aenean tristique enim ut ante dignissim. </p>
    </section>
    <!--end 3-columns-->
    <footer>
    <address>
    Company address . Phone . Fax
    </address>
    <small>&copy; 2014 SiteName. All rights reserved</small>
    <p> </p>
    <p> <a href="http://jigsaw.w3.org/css-validator/check/referer"> <img style="border:0;width:88px;height:31px" src="http://jigsaw.w3.org/css-validator/images/vcss-blue"
    alt="Valid CSS!"> </a> <img src="http://www.w3.org/html/logo/badge/html5-badge-h-css3-semantics.png" height="31" alt="Valid HTML5"></p>
    </footer>
    </body>
    </html>
    Nancy O.

  • How to change the background color of a single row

    Hi OTN,
    I am using JDeveloper 11.1.1.2 with ADF faces in view layer.My issue is How to change the background color of a single row in af:table ?.

    How to highlight ADF table row based on column value?
    Found by searching

  • XY Graph overlay multi plot with different colors

    Hi,
    I want to do a cyclic X-Y plot in a for loop and plot the graph for each cycle in different colors.
    I want a plot like XYgraph2 but with different colors and probably even without that tracing line. How do i modify my diagram?
    Thank you for your time and efforts.
    SUCHIT
    Suchit Shah
    Graduate Student
    Electrical & Computer Engineering,
    Northeastern University,
    BOSTON
    MA 02115
    Certified LabVIEW Associate Developer
    Solved!
    Go to Solution.
    Attachments:
    block dia.JPG ‏45 KB
    front dia.JPG ‏122 KB

    Hi all! This is my first post
    My name is Francesco and I'm programming a keithley for measure some FET
    using labview 8.6. I plot my output data on a XY graph but I have several curves,
    one for each value of Vgs. Looking in your forum I've found the code
    MultiplePlots.vi (21 kb) posted by Darin.K about a month ago that use Multiple
    plots and it is perfect for my goal because with this I can plot every curve with a
    different color. The only problem is that I like to plot my data in real time.
    The code, however, use a Loop with N=50, accumulates the values on the edge
    and plot at the end of the Loop the entire line.
    My question is if someone can explain me how to modify the code to plot the line
    point by point, so in real time and not at the end o the loop because I need to see
    the current values during the measurement and not only at the end.
    I think that I need to move the XYgraph inside the loop. I try but without lucky.
    Can anyone help me?
    thanks and sorry for my very bad english.
         Francesco

  • PSE 11 - How save image with printer color profile?

    I use an outside service to make prints. How can I save an image in PSE 11 in either TIFF or JPEG format with the color profile for the outside lab's printer? Thanks.

    You can print a photo using the correct printer profile for the lab printer. In the print dialog box , go to "Page Option>Color Management" and then choose Color Handling as "Photoshop Managers color". Now click the printer profile dropdown and choose the profile for your lab printer. If you are not able to find the profile for you printer  then choose "Printer Manages Color"
    To your second question the answer is that you cannot save the image with the correct colors for printing. You can only convert the profile of your image to Adobe RGB which matches gamut of most printer profiles using "Image Menu>Convert Color Profile and choose Adobe RGB.

  • How to print with NO COLOR MANAGEMENT in Photoshop CS6

    Hi,
    I have been trying to print a target from i1Profiler so I can read it with my i1Pro and create a printer profile, but no matter what I do, there is no way to get photoshop from supplying a profile while printing. I tried to select Printer handles color and then put the printer driver in COLOR MANAGEMENT OFF (seemed to me this would disable both the printer managing color and photosbop managing color). Tried printing this way ( and many other ways) but NO SOLUTION --- the prints are EXTREMELY different from the on-screen view (which is in a properly profiled Apple monitor) and they actually look like the ones with a profile chosen.
    I also tried the utility Adobe Color Printer Utility and same results!!
    I am using an EPSON Stylus Pro 7900 that I just purchased.
    Please help
    Juan Dent

    [email protected] wrote:
    Hi,
    I have been trying to print a target from i1Profiler so I can read it with my i1Pro and create a printer profile...
    The key here is to actually actually go ahead and print the target from i1Profiler to your printer...in the Test Chart panel, create the test chart and click on Print instead of Save As. As long as you have the correct page size set in the Page Setup, you should get an accurate printer target to read. Depending on how many patches you have set, it may take a few pages but they will be properly formated for reading with the i1Pro...

  • How do I create multi colored boxes using CSS3

    OS - Windows 7 using DW Cs5.5
    I need to create a screen with lots of equally sized colored boxes with text colours that will be visible easily within them.
    I have a class set up as follows:
    .yellowbox {
        font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
        font-size: small;
        color: #F00;
         background-color: #FC3;
        text-align: center;
        vertical-align: middle;
        margin: 4px;
        padding: 4px;
        clear: none;
        float: left;
        height: 10em;
        width: 30%;
        position: relative;
        border: thick solid #F00;
    This displays a box that is yellow with a red border.
    With a set of 9 divs of this class, I get 9 boxes arranged as a 3x3 grid in a 960px wide container.
    How do I modify the CSS so that the background color changes with each box, and the text color is always in a color that is readable?

    First change the CSS as follows
    .box {
        font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
        font-size: small;
        color: #F00;
        text-align: center;
        vertical-align: middle;
        margin: 4px;
        padding: 4px;
        clear: none;
        float: left;
        height: 10em;
        width: 30%;
        position: relative;
        border: thick solid #F00;
    .yellow {
       background-color: #FC3;
    .blue {
       background-color: blue;
    Then use the following markup
    <div class="box yellow">
    or
    <div class="box blue">

  • How to print with "no color management" in CS6

    I have downloaded the "no color management option" to print off a patch for an ICC profile - http://helpx.adobe.com/photoshop/kb/no-color-management-option-missing.html
    However, I keep getting an error message when trying to print from it - saying "error occured while setting color management" and then the color managment has a line through it when I go to the "Print" option.  I am using an epson 3800 and have reinstalled the drivers and it is still the same. 
    Any ideas?

    This forum is actually about the Cloud, not about using individual programs
    Once your program downloads and installs with no errors, you need the program forum
    If you start at the Forums Index http://forums.adobe.com/index.jspa
    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 FORUMS) to open the drop down list and scroll
    http://forums.adobe.com/community/photoshop

  • Content-aware fill with multi-colored background?

    I've got a webpage footer to edit and I don't have the .psd file so I'm trying to use content-aware to take out an unwanted part.  Problem is, the background isn't one solid color and the area where I'm making the edit has a diffinitive color change...it's an actual line dividing the footer into two sections.  So, whenever I do the content aware fill it doesn't keep that line or the colors the way they "should" be.
    Is this a situation where having the .psd file is a must?
    Thanks for your help!
    PS CS5 version 12.1 x32
    Mac OS X 10.6.8

    I used the lasso tool to select first one colour area.  selected the Brush tool so I could Alt click on the background colour, and Alt backspace to fill the selection.   Then I inverted the selection (ctrl Shift i).  Used the lasso with the ALT key to remove the red area from the selection.  Resampled the other background colour, and Alt backspace to fill.
    I did wonder if there was more going on in background because the tiny graphic you uploaded has some artefacts and I was not sure if they were supposed to be there, but a simple graphic like that is an easy thing to create from scratch.   When I have to include a logo in magazine artwork, and only have a horrible little sample that I couldn't bare to put on the page, I enlarge it to a useful size, and use it to trace a nice, new, clean graphic from scratch.  

  • How to filter with multiple selection on a single column on external list, currently only one filter per column is available.

    I have external list where i want to apply multiple filter for every column like we do in Excel spreadsheet - we can filter a spreadsheet column by selecting multiple checkbox for every  column. I am using Sharepoint 2010
    Is this possible in sharepoint 2010? Any idea how to acheive that?
    Thanks in advance.

    Hi Rahul,
    According to your description, my understanding is that you want to use filter with multiple values on a column of an external list in SharePoint 2010.
    Per my knowledge, there is not an OOB way to achieve it. As a workaround, you can custom the web part to implement it. There is an articles for your reference:
    http://blogs.telerik.com/aspnet-ajax/posts/13-11-05/add-excel-like-multi-select-filtering-to-your-asp.net-datagrid
    In addition, you can use a third party solution to achieve it, please take a look at:
    http://abilitics.com/Blog/index.php/sharepoint-improved-grids-with-excel-like-inline-editing/
    http://social.technet.microsoft.com/forums/sharepoint/en-US/3d19b9d3-d394-4af9-9e8e-2dee70b50540/filter-column-with-multiple-filter-values-in-sharepoint-list
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • How can I change the color of a single object?

    I have a bright orange barrel in a video of mine and I want to change it to a cooler color without changing the rest of the scene? How can I do this?

    Hi
    In FCP, under the help menu, choose Final Cut Pro Help.
    When it opens, search for " Using the Limit Effect Controls of the Color Corrector Filter to Change a Specific Color".
    MtD

  • Have a MacBook Pro. the computer will not boot up, the screen has black and white stripes and multi color bands as well.

    Have a MacBookPro. The computer will not boot up. the screen has black and white bands with multi color bands as well.

    Yeah it's dead. Take it to an Apple Genius Bar and have it checked out. Then buy a new one.

Maybe you are looking for

  • Albums in alphabetical order

    is it possible to organize the mobileme albums in alphabetical order in iPhoto?

  • TMU problem when running wow....

    Just recently installed Arch (64) on my lapot and with the forum and the wiki i have managed to install the wine32 package and also installed world of warcraft without no major problems.. i also got the latest Nvidia drivers installed 169.09 The prob

  • No wifi signal to apple tv

    I keep trying, reboot etc. but still not getting any wifi signal to Apple TV. It just seems to be looping? any suggestions thanks

  • How to create a Pages book template (w T.Box, table) for continuous text ?

    I am new to Mac and have a body of Book text (200 pages) in MS Word done on a PC which I want to transfer to Pages for publishable quality. My problem is that I want to be able to include images and drawings into the existing text and keep a column a

  • How to send a picture to excel

    Hello. I tried your Vi Screen Shot (GIF Image, 11K) making VI. But failed. Please give me vi Best regards.