Coloured portion in XY graph

Dear All,
I am trying to build a vi which starts to find the average of data points. The starting point is specified with the no of points taken for the averaging.
I like to have a coloured region - a line to be shown in the XY graph where the starting point is given till where the region ends (end of the data or final data point).i.e In the vi included i have given the starting point as 200 and the averaging extends for 50 data points, so the region from 200 till 250 should be marked.
Thank you,
Bala
(If possible please give me answers with version 7.1)
Attachments:
Niforum.vi ‏66 KB
niforumdata.txt ‏58 KB

Hello,
You can make a Multiplot XY-Graph, where the second Plot is the Data you want coloured.
Regard
Marco

Similar Messages

  • Changing the colours on multicomponent XY graphs.

    Hello,
    I know this should be easy and I even looked at the XY graph example that Labview offers. However, I am not having much success when I try to change the colours of two datasets plotted on the *same* XY graph. I've placed two VI's here that I have been working on. The first (graph.vi) plots the two datasets but I can only get one colour. In the second VI (graph2.vi) I can change the colours of each dataset but if the program is run continuously it hangs. Can anyone have a look at these and correct me on my mistake(s)?
    Thanks!
    Attachments:
    graph.vi ‏36 KB
    graph1.vi ‏46 KB

    Dear Remington,
    I'm not sure what you wanted with your code and which your question is related with the VIs.
    1. You mentioned a graph2.vi, but there is a graph.vi and a graph1.vi which are nearly the same.
    2. I will describe what you have programmed. You have an outer while loop running until you abort the VI. This while loop contains a "left" while loop and a "right" while loop. The "left" while loop runs only once generating 4 random numbers. The autoindexing gives you 4 arrays existing of one element each. Two of them were bundled togther giving one plot consisting of one point. These two plots were given to the "right" while loop. In the loop you add them to an existing array coming from the shift register. The output and there the sh
    ift registers contains an array of plots which is a valid data type for a multi plot xy-graph. After the first iteration you have an array of two elements each representing a plot. In the next iteration you will add 2 new plots so you have 4 plots to print, next iteration 2 new plots so 6 to print and so on. Your program dosen't hang. You have defined a point style only for the first two plots. since each plot is only one point long the graph could not draw any line so the other plots will not be seen.
    3. I have changed your VI so it will add a new point to the two plots on each iteration of the outer most loop.
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions
    Attachments:
    graphnew.vi ‏42 KB

  • Javascript won't recognize selected portion of bar graph

    Hi,
    I'm trying to write a script that will recognize a selected portion of a bar graph (selected with the direct-selection tool) and change its fill color. I have a working script that will recognize change the color of a selected box (i.e. one drawn with the Rectangle tool), but I get an error when I try to manipulate a selected piece of my graph.
    "Error 21: undefined is not an object"
    OK, then what is it? Is there any documentation that explains the hierarchy of items within a graph or how they are referenced? Or anyone out there figured it out? The Illustrator Scripting PDFs are less than clear on this point.
    This script is (hopefully) a building block for a later, larger script that would step through an entire graph, change the color of each bar, and save a copy before repeating the process with the next bar (basically I need a bunch of variations on one bar graph with a different data point highlighted in each). But that's not happening unless I can select the bars!
    Any ideas would be appreciated,
    Ted

    From looking at the graph item object this doesn't appear possible.
    Items within a graphItem do not show up as selected in JS.
    Looks like the only workaround that I can see would be to expand the graph item then work with the path elements.

  • How to record and plot only the zoomed portion of a Graph or Chart?

    I'm using LabVIEW 8.6 and have problem plotting only zoomed part of a graph or chart onto other. Please help.

    Sorry, your VI makes absolutely no sense. First you slowly generate chart data, then you write it to a file, read it back from a file, do some exceedingly elaborate while loop that could be done with almost no code at all, then chart all data at once again. The stop button in the while loop makes no sense, because the while loop executes so fast that it is not possible to actually stop it while it is running, only if the button has already been pressed during the first FOR loop.
    What is the purpose of the two arrays? They don't seem to serve any purpose. Why are you getting the array size with every iteration of the loop? Once, right before the loop should be enough. Index array is resizable, so only one instance is enough. Instead, array to cluster is probably all you need.
    The sequence structure is only needed because you write, and then immediately read from the file. All you probably need is to write to the file and wire the 2D array to the seconds structure. Now we have a data dependency and the sequence structure is no longer needed.
    Can you tell us a little more how you are zooming. Do you want to zoom any of the two graphs and automatically zoom the other accordingly?
    As it currently stands, only the first chart gets data, so zooming the other one seems useless. Once the second chart has data, the VI stops and you can't do much either programmatically. Please explain how you are zooming.
    LabVIEW Champion . Do more with less code and in less time .

  • XY graph plot colour

    Hi All,
    I have a problem with the XY Graph representation.
    I'm trying to show different plot with different colours in the same graph.
    I realized a VI (8.2 Labview version), but it is wrong because at every iteration all the trace are re-colored with the same
    colour.
    I have two 1D array (X array and Y array) and my goal is to show every (X,Y) point with different colours.
    Could please someone help me?
    I attached the VI and a Front Panel screenshot.
    Thanks in advance for your support,
    Francesco.
    Attachments:
    XYGraph&Color.vi ‏47 KB
    XYGraphColorFrontPanel.JPG ‏164 KB

    Please take a look at this. Hope it helps.
    Message Edited by NitinD on 28-08-2009 07:04 PM
    Attachments:
    XYGraph&Color.vi ‏21 KB
    xygraph.jpg ‏102 KB

  • OBIEE 11g: Hierarchy Drills & Graph Scales

    Hi eveyrone,
    I have a time-series graph with dates along the x-axis and my measure value along the y-axis.
    In the "Sections" portion of the graph I have a node based hierarchy.
    I have 4 columns in the report.
    Presentation hierarchy (node based hierarchy), Hierarchy Dimension column (regular FK link to the hierarchy dimension but not a presentation hierarchy), Date, SUM( Metric by hierarchy dimension column)
    In the graph, I create a line scale marker and set it to be based on my one measure column. I also graph my one measure column.
    In therory, since I'm graphing the EXACT same column that the scale marker is tied to, they should ALWAYS appear to overlay. And in fact they do at the first level of the hierarchy.
    But when I drill into the hierarchy, the measure column changes, but the scale marker does not.
    Why does this happen?
    It is the exact same column so they should always be the same value. It's a pretty frustrating bug because as you drill, the scale of the measure changes but the scale of marker does not, so it's basically like you're viewing a flat line because the y-axis is too far off from the actual column measure to see any trend.
    Has anyone seen this?

    Thanks for the response, in regards to whether it is 1 or 2 Logical Facts, it is still the same behaviour. IN regards to the Logical Dimension, yes it is set with two LTS with the applicable content levels set. I even tried that as just 1 LTS doing the join through the General tab. Still the same behaviour with the drill-down. I am assuming it will always go through the full drill path regardless of what level the Fact you are hitting is at.

  • XY graph question

    I have an XY graph that I'm using to display data read from a TDMS file. I'm using a property node to set the XScale.Maximum and XScale.Minimum to allow the user to see only a portion of the graph at once. This way they see the latest data more easily and then they can scroll to the left see older data. My challenge is the Y scale. It auto scales to the the highest and lowest value recorded throughout the entire graph and not just what is being shown in the display.
    How can I get the graph to auto scale the Y axis for only the data the user is currently viewing at the moment?
    Thanks in advance for any help.

    I'm not sure if it needs to be progromatically or not.
    The problem with doing it the way you describe (I think) is that I'd have to only run the data that is currently being viewed through the min/max funtion for it to work the way I want. As the user scrolls, that data would change and need ran through the Min/Max again. If I run all of the data through, I'm back where I started because the Min and Max may be places that aresn't currently being viewed by the user.
    I hope that makes sense. If not, please let me know and I'll try to clarify.
    Thanks for the help.

  • Line Graph Question

    Hi
    I am trying to create a graph where I have 3 data points
    this relates to  inspections
    House number      Items found  date of inspections
    101                                  30              April, 2 2014
    201                                  34            May 1 2014
    Y axis I am showing items found
    x axis I am displaying the House number
    I would like to also display the month the inspection occurred
    A am currently displaying the month in the legend at bottom of page
    But would like to do something like below
    I am getting x and y ok  but not month display (Thanks)
            |
    30    |
    20    |
    10    |__________________________________
                                      101  201      301  302  303
              JAN FEB MAR APR MAY        JUN

    Hi
    I have it in the report header
    I have created a formula to extract the month from inspection date
    I added both the data expert for the x axis sorted original sort
    each month can contain any number or inspections and indicated by different colours on the line
    graph matching the legend colours
    What would be great is if I can delineate where each months data starts and stops
    it's sort of done by the graph now by using different colours but I would like to label it
    tried every option but could not pull it off
    thanks

  • Cannot change internal graph color in Conky

    Hey everyone,
    I have run into a problem when configuring my Conky widget for my fresh Arch install.  I installed Conky and am using a modified configuration that I found here on the forums.  The contents of my conky.conf file are found below:
    background yes
    use_xft yes
    xftfont Sans:size=8
    xftalpha 1
    update_interval 1.0
    total_run_times 0
    own_window yes
    own_window_transparent yes
    own_window_type desktop
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    minimum_size 500 250
    maximum_width 200
    draw_shades yes
    draw_outline no
    draw_borders no
    draw_graph_borders yes
    default_color white
    default_shade_color black
    default_outline_color white
    alignment top_right
    gap_x 12
    gap_y 35
    no_buffers yes
    uppercase no
    cpu_avg_samples 4
    override_utf8_locale no
    text_buffer_size 1024
    TEXT
    ${font sans-serif:bold:size=9:}${color CFCFCF}SYSTEM ${color 818181}${hr 2}
    ${font sans-serif:normal:size=8}${color 818181}$sysname $kernel $alignr$machine
    Host: $alignr$nodename
    Uptime: $alignr$uptime
    File System: $alignr${fs_type}
    ${font sans-serif:bold:size=9}${color CFCFCF}PROCESSORS ${color 818181}${hr 2}
    ${font sans-serif:normal:size=8}${color 818181}CPU (Avg): $alignr ${cpu cpu0}%
    ${cpugraph cpu0 40,200 237BEE -l}
    Core 1: ${cpu cpu1}% ${cpubar cpu1}
    Core 2: ${cpu cpu2}% ${cpubar cpu2}
    Core 3: ${cpu cpu3}% ${cpubar cpu3}
    Core 4: ${cpu cpu4}% ${cpubar cpu4}
    ${font sans-serif:bold:size=9}${color CFCFCF}MEMORY ${color 818181}${hr 2}
    ${font sans-serif:normal:size=8}${color 818181}RAM $alignc $mem / $memmax $alignr $memperc%
    $membar
    ${font sans-serif:bold:size=9}${color CFCFCF}DISKS ${color 818181}${hr 2}
    ${font sans-serif:normal:size=8}${color 818181}Root $alignc ${fs_used /} / ${fs_size /} $alignr${fs_used_perc /}%
    ${fs_bar /}
    Home $alignc ${fs_used /home/johnmichael} / ${fs_size /home/johnmichael} $alignr ${fs_used_perc /home/johnmichael}%
    ${fs_bar /home/johnmichael}
    ${font sans-serif:bold:size=9}${color CFCFCF}TOP PROCESSES ${color 818181}${hr 2}
    ${font sans-serif:bold:size=8}${color A8A8A8}${top_mem name 1}${alignr}${top mem 1} %
    ${top_mem name 2}${alignr}${top mem 2} %
    ${font sans-serif:normal:size=8}${color 818181}$font${top_mem name 3}${alignr}${top mem 3} %
    $font${top_mem name 4}${alignr}${top mem 4} %
    $font${top_mem name 5}${alignr}${top mem 5} %
    ${font sans-serif:bold:size=9}${color CFCFCF}NETWORK ${color 818181}${hr 2}
    ${font sans-serif:normal:size=8}${color 818181}IP address: $alignr ${addr wlan0}
    ESSID: $alignr ${wireless_essid wlan0}
    Connection Quality: $alignr ${wireless_link_qual_perc wlan0}%
    $alignr${font sans-serif:normal:size=8}Download
    ${font sans-serif:normal:size=8}${downspeedgraph wlan0}
    ${downspeed wlan0}/s $alignr ${totaldown wlan0}
    $alignr${font sans-serif:normal:size=8}Upload
    ${font sans-serif:normal:size=8}${upspeedgraph wlan0}
    ${upspeed wlan0}/s $alignr ${totalup wlan0}
    ${font sans-serif:bold:size=9}${color CFCFCF}EMAIL ${color 818181}${hr 2}
    ${font sans-serif:normal:size=8}${color 818181}Gmail Messages: $alignr ${execpi 300 python ~/.scripts/gmail.py}
    GA Tech Messages: $alignr ${execpi 300 ~/.scripts/imap.pl}
    The problem that I am having is in trying to specify the internal color of the cpu graph for the average cpu activity:
    ${cpugraph cpu0 40,200 237BEE -l}
    I want to keep the boarder of the graph the same darkish grey color as the rest of the widget but I want to change the color of the portion of the graph inside the boarder to a blue color, e.g. the hex color in the code above, or more specifically to match the blue that I am using in my Archey and prompt in urxvt.
    I looked up the Conky variable defintions for how to do this and apparently you specifiy gradientcolor1 and gradientcolor2 after the size definition, similar to how I have done it in my conifg (I know that I am only using one color in the above code but it is still not working even when I define two different colors).
    Here is a picture of my desktop:
    http://ompldr.org/vZzR6dw
    As you can see the internal portion of the graph is the same grey color as the majority of the widget.  I searched extensively on the forums and Google for a solution but everything that I try doesn't work. 
    Any suggestions?

    I hope this is 'fixed' by Apple in a mail.app update.
    Let them know what you want via the feedback channel:
    http://www.apple.com/feedback/macosx.html
    But Mail has never had a provision for setting the default font, size, or color in its preferences and there is no indication this will ever be changed.
    A related thread:
    http://discussions.apple.com/thread.jspa?threadID=1467587&start=0&tstart=0

  • Graph List Coloring

    Hi
    please can someone help me for this algorithm.
    The problem is the classic graph coloring with the condition: two adjacent nodes do not have the same color and any vertix has a list of admitted colors.
    thanks a lot

    Hi
    please can someone help me for this algorithm.
    The problem is the classic graph coloring with the
    condition: two adjacent nodes do not have the same
    color and any vertix has a list of admitted colors.
    thanks a lotThis is related to the map colouring problem. If you draw
    a link between the capital cities of each pair of countries
    with a common border, you get a graph. Conversely the graph
    gives rise to a map.
    Therefore, the literature on map colouring could be helpful.
    The fact that each vertex has a list of admissible colours is
    a complication that could prevent any solution from existing.
    For example, if two vertices have only one admissible colour,
    the same for each, then it can't be done. The famous four
    colour theorem, first proved by Appel and Haaken in the 1970s
    (using a computer intensive proof) shows that a colouring is
    always possible if all vertices have the same list of four
    colours, but it was known long before that if there are only
    three colours, there are maps that can't be coloured.
    Obviously, an exhaustive search would work in theory, but it
    would at least be an exponential time algorithm.
    Start with one colour for any vertex and choose a different
    colour for each adjacent vertex. Then do the same for each of
    the newly coloured vertices, skipping those that have already
    been coloured. Keep going until a vertex can't be coloured or
    the whole graph has been coloured.
    Each time you get stuck, backtrack and change a colour until
    you've tried every colour on each list, or you find a colouring.
    Hopefully there's a more efficient algorithm in the literature.

  • Excel graphs in Word document are totally black

    I have a large word document that contains quite a few excel graphs.  Many of the graphs translated into acrobat fine, but some of them are totally black with the line portion of the graph showing up on a black background.  Any ideas what may be causing this?

    If you are having problems creating a PDF, there are two steps you should do FIRST
    Go to the appropriate vendor web site and apply all updates to the program you are using (several recent messages have concerned problems with MS Word conversion, with the response that different versions of Word have different BUGS that must be fixed by a download from Microsoft - and MS Office products are not the only ones which may, from time to time, need to be updated to work properly)
    Go to the Acrobat update page and apply the updates for your version of Acrobat
    IN NUMBER ORDER (updates are not cumulative so, using version 8 as an example, you must apply 8.1.0 before the 8.1.1 update)
    http://www.adobe.com/support/downloads/product.jsp?product=1&platform=Windows
    Acrobat 7.0 has several updates to apply

  • Moving the cursor in a graph beyond the XY boundaries

    Hi All,
    I have graphs with many plots.
    Suppose one of my plots is  on the topmost portion of the graph.
    The user is able to scroll thsough the graph so that sometimes some of the plots go beyond the visible portion of the graph.
    I want to know how can i limit the graph scrolling beyond the area the plots reside.
    The graph consists of all the plots in the visible area when its loaded.
    But if the user scrolls the graph beyond ther limits some plots go beyond the visible portion.
    What is the solution for this problem?
    Is there any way like lock the graph if the usder scrolls beyond the boundaries?

    Right click the graph and uncheck "Advanced>>Cursors Scroll Graph".
    Try to take over the world!

  • Formatting a mixed signal graph

    How to remove the empty spaces in the mixed signal graph ? 
    When I load the mixed signal graph with data there is a very large portion between the graphs and the label which is blank (white)
    I want to get rid of this blank area and increase the size(length) of the graphs how to do this.
    Please see attached screen shot.
    Solved!
    Go to Solution.
    Attachments:
    Graph_issue.JPG ‏230 KB

    Hello,
    Any appearance setting that cannot be found under the Properties of your graph can be modified by setting you indicator/control as a customized control. To do this, right click the graph; go to “Advanced” and “Customize…” You will get a new window were you can customize your control. Below the “View” menu you will find a button to “Change to Customize Mode”, after you click on it you will be able to resize and move every individual part of this graph.
    If you need additional information about custom controls the following article could be very useful:
    Creating Custom Controls, Indicators, and Type Definitions
    http://zone.ni.com/reference/en-XX/help/371361H-01/lvconcepts/custom_cont_ind_type/
    Thanks!
    Jorge
    Applications Engineer
    National Instruments
    Certified LabVIEW Associate Developer (CLAD)

  • X-y graph cursor moving

    I have an application that uses cursors to "zoom" onto user-selected portions of a waveform that can be acquired at different sample rates. Everything works fine except I cannot keep my cursors on the same portion of the graph when I change the sample rate. Everything else works fine. I've tried everything I can think of and what I've seen posted here: saving the cursor list before I change the sample rate then re-inserting it after the scope refreshes, saving the x locations in shift registers, functional globals, etc. This is extremely confusing. I save the cursor positions in an ini file and can program them into the cursor list with no problem when I start the application, but can't do it internally in the program! Why do the cursor x values change and how can I solve it?
    PaulG.
    7.1.1/2000
    PaulG.
    "I enjoy talking to you. Your mind appeals to me. It resembles my own mind except that you happen to be insane." -- George Orwell

    I think I got it .... but don't ask me how. I was setting the XScale.Offset/Mulitiplier/Maximum properties after I reset the cursors. If I reset the properties before I reset the cursors it seems to  be working. I'm stumped for an explanation. The cursors don't care what the scaling factors are, do they? I thought x position 55.5 usec should be 55. 5 usec regardless of multiplier and array size.
    PaulG.
    7.1.1
    PaulG.
    "I enjoy talking to you. Your mind appeals to me. It resembles my own mind except that you happen to be insane." -- George Orwell

  • Tracer un profil sur un graphe XY

    Bonjour,
    Le but de mon VI est de réaliser un profil sur un graphe XY.
    Pour cela, je renseigne les données à partir d'un tableau de cluster, et dès lors que j'appuie sur suivant, par l'intermédiaire d'une structure event, je trace la portion de mon graphe associée.
    Cependant, lorsque j'exécute, je rencontre pas mal d'incohérences et j'ai du mal à voir d'où cela peut-il venir..
    Si quelqu'un trouve d'ù pourrait venir le problème, je suis preneur..
    Cordialement
    Pièces jointes :
    Scenario_key_final_2.vi ‏102 KB

    ci-joint un exemple vite fait, je n'ai pas repris ton code, j'ai fait ça juste pour te donner un exemple, si tu veux te baser dessus tu auras quand même pas mal de travail à faire.
    je n'ai pas géré l'affichage du graph ni la gestion de l'ordre des étapes (avec un indice dans le nom de l'étape).
    par ailleurs j'ai utilié un variant avec des attributs pour conserver en mémoire les données dont j'ai besoin comme le nom du fichier et l'indice de l'étape sélectionnée, pour un variant... c'est pas du tout nécessaire mais c'est souple si jamais on veut ajouter des choses par la suite.
    n'hésite pas à poser des questions si il y a des choses que tu ne comprends pas dans mon exemple, je l'ai fait un peu vite donc il y a des défauts dedans...
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
    Pièces jointes :
    edit seq.vi ‏74 KB
    test.ini ‏1 KB

Maybe you are looking for