Programming Marker Color in XY Graph

Hello Everyone,
In Igor by Wavemetrics, I can plot XY graph with marker only, the marker color can be tied to the corresponding value in a third data column.  In some sense, this is similar to but not quite like an intensity graph.  Is it possible to do this in Labview?
I will move my X-Y stages to search for a laser beam in large steps and nail its maximum in finer steps.  I would like to plot the trails of my search.  I would appreciate if someone already has this kind of search vi.
Thanks in advance.
Fang

Fang,
It is possible to change plot point colors of an XY graph by using a property node run through a case structure.  If the results found entering the case structure set it to either true or false, the points can be set to be a certain color.  The property you are looking for is Plot.Fill/Point Color.  However, this is definitely not the most robust method for doing this, as it involves breaking down your x and y data into individual numbers using a for loop.  Also, because the way the XY graph pulls in data, it is essentially impossible to change the color of just one point.  In order to do this, you would need to set up a multiplot and have one plot using one color and the other plot using the default color.  The plot that utilized your signal color would only plot if certain conditions were met.  
So, I would say that using the 3-D graph functions would be a much simpler method, as was suggested by the previous user.
Mr. Moore

Similar Messages

  • How can i change the color of the graph in agreement of the program's condition

    Hi,
    I am using labview 5.1 in my graduation's project final. (sorry by my english, but i am ina hurry)
    How can i change the color of the graph in agreement of the program's condition?
    I am developing a VI to control the temperature of termistors,but i have another sensor too.
    In a graph i have the situation of the termistors,but i want to change the color of the graph when the sensor is active.
    Thanks a lot
    Rafael Wajnsztajn - Brasil

    To change the color of the line itself, you can use the attribute Plot>>Plot Color.
    To change the color of the points, you can use the attribute Cursor>>Cursor Color.
    To select the color, you should have a color box constant inside the Numeric>>Additional Numeric Constants palette.
    This is all in LV 7.0. I'm not sure how it similar it is in 5.1.
    One important thing is to place the attribute node inside a case structure which will execute only when your condition has been filled.
    If this didn't help you, I suggest you post the relevant piece of code, or at least an image of it (no BMPs, please).
    Try to take over the world!

  • How to mark points on a graph

    Hi All,
    I want to write a program which plots data on a surface graph then
    allows the user to click on the graph and "mark" points on the plot. The
    program should change the color of the "marked" points on the graph.
    Based on the sample code provided by "Ben" here
    (http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=144155#M144155)...
    I wrote the attached code which uses "event structure" and cursors to do
    the job. I used cursor to read the X,Y,Z position of the clicked point on
    the plot and store them in arrays. These arrays then were feed into a
    new plot added to the graph using CWPlots3D.Add() method. However, my
    code does not draw the second plot (which would show marked points in
    green) nor it does not get the marked points coordination correctly. I
    appreciate your help to correct the code.
    Thank you,
    Attachments:
    change read xyz.vi ‏27 KB

    Hi Trin,
    I have altered your VI a little bit to get the marked points in an array. You will realize that the mouse up event is requested in a parallel loop, that's because this event doesn't get triggered ifyou drag a cursor.
    All you have to do now is to make a graph from the array and create new cursors. But leave Cursor 1 always as the last one and save the past values to new cursors. But maybe you don't need to set a cursor on each marked point.
    Kind regards,
    Kleisi
    Attachments:
    3D_Example.vi ‏39 KB

  • Fade colors of intensity graph

    Hi everyone,
    I've made a program where I read an 2D-array and plot this array in a intensity graph.
    I was wondering if the colors in the graph can fade in each other, preferably in vertical position (columns). The idea is that the numeric data becomes visualized like a DNA profile.
    I've added a image of the plotted graph.
    Thanks.
    Solved!
    Go to Solution.
    Attachments:
    Intensity graph plot major.PNG ‏48 KB
    Intensity graph plot minor.PNG ‏35 KB

    Without manipulating the array, no it's not possible.  I made an idea on the Idea exchange to fix this, I recommend you vote for it.  Anti-Alias or Smooth Intensity Plot
    Like the idea says, see this post for workarounds.
    Tim Elsey
    LabVIEW 2010, 2012
    Certified LabVIEW Architect

  • How can i dynamically vary the color of one graph line

    I was looking on the developer zone and noticed several people are looking for a way to change the color of one graph line. Simplest case I would like to know: a graph is running, then you press a button and from that point on the color of the graph changes, but doesnt change the old data line color. THis way the line will consist of different colors.
    The property node changes the whole line, and the line is always just one color. It should be possible to make the line consist of different color sections, anyone know how?

    The application is actually not as slow as it seemed, i had some settings set wrong (anti aliasing in plot, and some functions in advanced, when you right click on the graph)
    Especially unchecking the anti-aliasing makes it much faster
    Also, just plotting point and not a line, or alternatively, changing the interpolation makes it faster.
    Anyway, the attached files do not rely on processor so much anymore, see for yourself
    Attachments:
    multicolor_looking_plot.vi ‏99 KB
    multicolor_looking_plot_2.vi ‏105 KB
    multicolor_looking_plot_3_truncated_array.vi ‏99 KB

  • Set Marker Color Bug

    I was relieved after much digging to find you can make a keyboard shortcut to make a marker of a specific color with just one click.  As opposed to making a marker and then going back to it to change its color.
    However for some reason when using this while playing a clip, this only works in a timeline, or on a video clip.  When I use the same command on an audio only file, i.e. music cue.  It just creates a marker of the default color 1.  - This is only when playing the clip.  If you park the playhead it works as expected no mater what the clip is.
    I'm frustrated, because the main reason I needed this feature was to tap out the beats in music for easier editing while I listen to the music cue (in real time).  I like to use color 1 for each beat in the 4-4 measure, and on the fourth measure tap out a new color so i can see where it repeats.. that way I can easily cut from color 2 to color 2 almost anywhere in the song seamlessly.  Sometimes I choose a third color when the melody loops so I know I can smoothly truncate a song with little to no effort.
    I noticed after the fact I can jump back to the marker and change it's color with the tool.. it just won't do it on an audio file while it's playing.
    Is this just a bug?  Just a bug on my system? Is it an intentional workflow on Adobe's part for some reason?  Anyone else having this problem?
    To map it open up keyboard shortcuts and sift for "set marker color"

    Yes, I know it. But if I set attribute values on my page, everything is right. If I set it from code, there is an error.
    I think that it is a bug, because component, for which I set attribute, has client id like: UIDataId:rowIndex:componentId. I set value to component on the third row, and have this value on components on the third and the fifth row.
    To tell the truth, I am sure, that it is a bug. If it is not so, please tell me, how an I set attribute value to component, which I need. Is there any way? I think, no. And it is a bug.

  • Coloring series in graph

    Hi Guru's,
    This might be a basic question. But still I could not find it myself. How will you give a color to different series displayed in graph. By default, I am getting red color both to my history series and forecast series. There is no differentiation. How do I configure to get a different color in the graph for forecast.
    Thanks in advance
    Ramkri

    Hi Ram,
    Have you not tried it in
    BM- configuration - configure series - 'select respective series' - goto 'display properties' - change display color of the graph.
    Tks
    MJ

  • Help Needed : Changing the Color of Bar Graph Dynamically

    Hi..
    Is der any body to help me out...?
    My Question is :- How to change the color of Bar graph Dynamically..
    For example (Assume when one of the Bar Graph crosses certain limit of Y axis value mentioned, the graph must be changed into RED color)
    Thanks in Advance
    Edited by: user12873839 on Mar 30, 2010 10:03 PM

    Manoj,
    You have to create the entire chart manually. follow the below steps. You can refer to the anychart website for more help on different tags and features.
    1. Enter the following code in the html header of the page
    <script src="#WORKSPACE_IMAGES#AnyChart.js"  type="text/javascript" > </script>2. Create an ON Demand Application process by going to the Home>Application Builder>Application #>Shared Components>Application Processes
    3. Click On Create
    4. Enter the name as DYNAMIC_BAR_GRAPH_CHART
    5. Select the processing point as On Demand
    6. Click on Nxt
    7. Enter the following code in the processing text
    DECLARE
    BEGIN
    OWA_UTIL.mime_header ('text/xml', FALSE);
    OWA_UTIL.http_header_close;
    HTP.p ('<?xml version = "1.0" encoding="utf-8" standalone = "yes"?>');
    HTP.p ('<anychart>');
         HTP.p ('<settings>');
              HTP.p ('<animation enabled="True"/>');
         HTP.p ('</settings>');
      HTP.p ('<charts>');
       HTP.p ('<chart plot_type="CategorizedVertical">');
         HTP.p ('<data_plot_settings default_series_type="Bar">');
              HTP.p ('<bar_series>');
                        HTP.p ('<tooltip_settings enabled="True">');
                        HTP.p ('<position valign="Top" halign="Right"/>');
                        HTP.p ('<format> Name: {%Name}');
                        HTP.p ( 'Value : ${%YValue}{numDecimals:0}');
                        HTP.p ('</format>');
                        HTP.p ('<font bold="false"/>'); 
                        HTP.p ('<background>');
                        HTP.p ('<corners type="Rounded" all="3"/>');
                        HTP.p ('<border type="Solid" color="DarkColor(%Color)" thickness="2"/>');
                        HTP.p ('</background>');
                   HTP.p ('</tooltip_settings>');
              HTP.p ('</bar_series>');
         HTP.p ('</data_plot_settings>');
         HTP.p ('<data>');
              HTP.p ('<series name="series 1">');
               FOR cThis IN (select table2.name, table2.value
                                  from table1,table2,table3
                                  where table1.T1ID = table3.T3ID
                                  and table2.T3ID = table3.T3ID
                                  and table3.C_ID=1
                                  and table3.A_ID=1
                        ORDER BY table2.name )
              LOOP
                   IF cThis.value > 90 THEN
                        HTP.p ('<point name="' || cThis.name || '" y="'|| cThis.value || '" color="red"/>');
                    ELSE
                        HTP.p ('<point name="' || cThis.name || '" y="'|| cThis.value || '" />');
                   END IF;
              END LOOP;
              HTP.p ('</series>');
         HTP.p ('</data>');
         HTP.p ('<chart_settings>');
              HTP.p ('<title>');
                   HTP.p ('<text>Chart Title</text>');
              HTP.p ('</title>');
              HTP.p ('<axes>');
                   HTP.p ('<y_axis>');
                        HTP.p ('<title>');
                             HTP.p ('<text>Value</text> ');
                        HTP.p ('</title>');
                        HTP.p ('<labels>');
                             HTP.p ('<format>${%Value}{numDecimals:0}</format>');
                        HTP.p ('</labels>');
                   HTP.p ('<axis_markers>');
                   HTP.p ('</axis_markers>');
                   HTP.p ('</y_axis>');
                   HTP.p ('<x_axis position="Normal" align="inside">');
                   HTP.p ('<labels display_mode="Rotated" rotation="90" align="inside" />');
                   HTP.p ('<title>');
                        HTP.p ('<text>Name</text> ');
                   HTP.p ('</title>');
                   HTP.p ('</x_axis>');
              HTP.p (' </axes>');
         HTP.p ('</chart_settings>');
        HTP.p ('</chart>');
      HTP.p ('</charts>');
    HTP.p ('</anychart>');
    htmldb_application.g_unrecoverable_error := true;
    END;8. Click on Create Process
    Now we will create a html region to display the graph.
    9. Create a new region of type HTML on the same page and select the region template as no template.
    10. Enter the following code in the region source
    &lt;div id="DynamicaBarGraph"></div>
    &lt;script type="text/javascript" language="javascript">
    function DynamicaBarGraph()
    var DynamicaBarGraph = new AnyChart('/i/flashchart/swf/AnyChart.swf');
    //    DynamicaBarGraph.width = "400";
    //    DynamicaBarGraph.height = "400";
    DynamicaBarGraph.addEventListener('pointClick', onDynamicaBarGraphClick);
        var DynamicaBarGraphData = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=DYNAMIC_BAR_GRAPH_CHART',0);
        gReturn = DynamicaBarGraphData.get();
        DynamicaBarGraph.setData(gReturn);
        DynamicaBarGraph.write("DynamicaBarGraph");
    function onDynamicaBarGraphClick(e)
    // Read point name
         name=e.data.Name;
    // Read point value
         value=e.data.YValue;
    // You can add onclick even here using the values name and value
    DynamicaBarGraph();
    </script> Hope it helps. Thanks.
    Regards,
    Manish

  • Change marking color quickly

    Hi there,
    I started using the newest Version of Acrobat Pro mostly for reading PDF's.
    Coming from Mac and using their standard PDF reader I'm used to change
    the marking color very quickly --> i click!
    Now in Acrobat marking text seems not to be that easy...3 clicks
    are neede to change color (which I do very often!!!)
    Is there a way, which I don't know yet, to change color quicker?
    Thanks for helping.

    Yes I use Acrobat XI Pro!
    Yes I can access all the tools on the right hand side.
    I am particulary concerned about marking colors:
    When I read texts I want to use differen colors
    for markings; e.g. green for names, red for terms,
    blue for dates etc.
    In Apple (I changed to Windows) standart PDF App,
    it is very easy to do so. In Acrobat I found it quite
    exhausting; first mark --> right click --> preferences
    --> change color...
    Is there an easier way to do that?
    Thanks for your help.

  • Marker and color in a graph

    I would like to change the color palette in a graph. How can I do it?
    Also I would like to change the size of the markers in a graph, is it possible?
    Pls. Help!!!

    The easiest way to do this is to use another plot to either overlay the
    other plots and draw points over the other plot, or behind the other
    plots as a filled plot filled to inf or -inf.
    Greg McKaskle
    Nico wrote:
    >
    > Is there a way to draw the background of a graph in different colors,
    > e.g. to mark the region of a ROI, or alternatively draw the points in
    > varying colors?
    >
    > Regards,
    > Nico
    >
    > --
    > Nico Schmidt IPK/IWF eMail : [email protected]
    > Sekr. PTZ 4, Pascalstr. 8-9 Phone : +49-30-39006342
    > D-10587 Berlin

  • Default Colors Limit for Graph in OBIEE 11g

    Hi, I'm using OBIEE 11g (11.1.1.6.6)
    When I use a graph (either bar or pie), I notice that OBIEE only has 12 default colors to use in the graph. So it starts from blue, red, and so forth, until the 12th color, then for the 13th color it will use the same blue again, and so forth.
    The problem is that my column values are more than 12 (it could be 20, it could be 30, etc). So, the repeating colors doesn't make any sense for the graphs.
    Could somebody please advise me on how to increase the default number of default colors used by OBIEE (so that it will be like 50 default colors set automatically by OBIEE, just in case)?
    Thanks so much!

    Hi,
    type HexaDecimal colors in google you will find n number of colors with the code number, just use this color codes by adding# before every code in the column format properties.
    for ex: #ccc99
    Follow this follwoing link
    http://www.google.co.in/imgres?imgurl=http://howto.websitespot.com/images/hexadecimal-color-chart.gif&imgrefurl=http://howto.websitespot.com/hexadecimal-colors/&h=706&w=498&sz=63&tbnid=9_3i-3tIMDNffM:&tbnh=91&tbnw=64&prev=/search%3Fq%3Dhexadecimal%2Bcolors%26tbm%3Disch%26tbo%3Du&zoom=1&q=hexadecimal+colors&usg=__nWfHEFVvPfjMfZyq2MxXkhJ-288=&docid=FXj6mM0pc4RQTM&hl=en&sa=X&ei=FDxJUc2cDqS8iwKetICACQ&sqi=2&ved=0CEAQ9QEwBA&dur=280
    Mark if Helpful/correct.
    revert me for any queries
    Thanks
    Edited by: 934322 on Mar 19, 2013 9:38 PM

  • Multiple color in a graph

    Hi friends,
                   The is a SAP standard program in the name GRAPHICS_GUI_CE_DEMO with the help of which we can generate reports represented in graphical way.Whenever we generate a graph,it shows us a bar graph having first bar in yellow,Can we change the color of the bar by any means, If anybody has documentation on this particular code, please help me.
    Regards
    Ashish.

    Hi,
    can you tell em which version are u using.....because there is no pragram with name GRAPHICS_GUI_CE_DEMO
    but we have program with name, GRAPHICS_GIS_VIEW_DEMO.
    or else can yoou give me the code so that, i can analyse......
    Regards,
    Adarsh

  • Crop marks, color management, .psd files

    Hi.
    Working in AI 10. Have XP. PS7
    I have my color settings set at the North America Prepress 2 for every adobe program except AI 10 because it is not listed. I have it on the North America Prepress without the "2"
    I have been told that if I create a PS document that needs crop marks, to simply place it into AI & create the crop marks there for the printer if I need to show bleeds.
    When I print the AI file with crop marks, the color does not match the PS file printed.
    Is there anything I can do?

    And you've double-checked your color settings (not just the overall preset but the individual options)?
    One way to make sure you have the same settings in both apps is to save out a color settings file (.csf) in one application and apply it in the other. Just hit the SAVE button in the color settings dialog and give your settings a unique name before saving it to a location that you can easily find again. In the corresponding dialog in your other application, use the LOAD button.
    I have PS 7-10 and AI 8/10/12 on a machine here, so, just to make sure, I just did a quick test with a CMYK image with the same versions as you. I show no color shift whatsoever between the PSD opened in Photoshop and placed in Illustrator.
    As to the jagged text, realize that you're not looking at editable text once you've placed the PSD in AI. It's just part of the raster image at that point. Therefore, it does not benefit from any AI text anti-aliasing. What you're seeing is the difference in on-screen raster anti-aliasing between PS 7 and AI 10. This does not affect the printout.
    I'm sorry, but without seeing your settings, I have little else to suggest.
    P.S. - I see you are comparing printouts from the two applications. Since you are working in CMYK, I assume you're printing to a PostScript device. If not, you might be looking at slight differences in the way PS 7 and AI 10 deal with sending CMYK data to an RGB device (such as a typical desktop inkjet printer).
    If you
    are printing to a PostScript proofer, I'd ask to see your print-time settings in both applications.
    If your printing company wants the AI file, send it to them and ask them for a digital contract proof before committing to press.

  • Color in a Graph

    Is there a way to draw the background of a graph in different colors,
    e.g. to mark the region of a ROI, or alternatively draw the points in
    varying colors?
    Regards,
    Nico
    Nico Schmidt IPK/IWF eMail : [email protected]
    Sekr. PTZ 4, Pascalstr. 8-9 Phone : +49-30-39006342
    D-10587 Berlin

    The easiest way to do this is to use another plot to either overlay the
    other plots and draw points over the other plot, or behind the other
    plots as a filled plot filled to inf or -inf.
    Greg McKaskle
    Nico wrote:
    >
    > Is there a way to draw the background of a graph in different colors,
    > e.g. to mark the region of a ROI, or alternatively draw the points in
    > varying colors?
    >
    > Regards,
    > Nico
    >
    > --
    > Nico Schmidt IPK/IWF eMail : [email protected]
    > Sekr. PTZ 4, Pascalstr. 8-9 Phone : +49-30-39006342
    > D-10587 Berlin

  • Mark points on 3D graph

    Hi, 
    I need to mark points (by changing the color of the point)on a 3D graph
    which the user would select using mouse clicks. How should I implement
    this? Should I use both cursor and mouse event handler in my VI?
    IS there any similar example code available?
    Any helps would be greatly appreciated
    Cheers,
    Trin

    Start reading at reply #7 in this thread.
    I would use a seperate plot to handle the highlighted points. Just add the new point and redraw that plot as they go.
    The code for that example is all there.
    Have fun,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

Maybe you are looking for

  • Anyone having issues using autoplay to import photos from an iPhone 4S?

    I haven't been able to import photos for days using autoplay. Every time I connect my phone autoplay recognizes it but won't let me select an option. It's non-responsive. Anyone else?  Any solutions?

  • Hierarchical Filter Web Item causes validation warning.

    When I validate my web template which contains a hierarchical filter web item agianst the server I get the following warning (W1): Mapping for Service item_validation_service for Object HIERARCHICAL_FILTER_ITEM missing Maybe this also relates to my p

  • Win32.hllm.graz removal

    Found this spyware/malware with the Dr.Weblite app. However it reappears with daily scan in email data files. Need to find the source file and remove it? Can anyone give technical assistance?

  • FUNCTION OF ABAP

    For what purpose is function 'OWN_LOGICAL_SYSTEM_GET' is used

  • AM RADIO PLAYING UNDER MUSIC... DRIVING ME CRAZY

    Does anyone know how i can stop an AM radio station that plays faintly underneath all music being streamed from my powerbook thru airport express into my receiver?? When i first hooked it up, everything was fine except for a very faint frequency nois