Polar plot line color

Hello
I have three vector plotting using polar plot.vi the problem is when I tread to shift the line color, only use black, I need three diferents colors any suggestion?. I put a picture with my block diagram.
I would like too chance the line width how to I can realice this using mi VI?
thanks
Danilo

Abel_Souza wrote:
Hi Danilo,
I think you can use color box contants in a case structure, each case sent one color constat, so you can select colors when you select a case on case structure.
Regards,
Well that is part of the story but the picture input tunnel should be changed to a SR if you wnat more than one plot.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • How do I fix the format of plot lines for an arbitrary number of sets of data plotted on the same x-y graph?

    I have written a VI to control an LCR meter and perform sweep functions. I have two x-y graphs on my front panel (one for each of 2 measured parameters). The VI is designed with a button to take a measurement, plot the data, and then wait for another event (like write data, clear plot, or measure again). The user can take simultaneous measurements and these are plotted on top of the data already there in the same x-y graphs (using an array of clusters with shift registers). There is no limit on how many sets of data can be on the x-y graph. 
    Now, my issue is in formatting the plot lines (color, thickness, marker type). I can fix the first plot line by adjusting the parameters of the x-y graph. However, I also want to control the format of all consecutive plot lines. How can I do this for an arbitrary number of lines? The main thing I want to do is to have all of them show the square marker type (the default is no marker type, just a line). 
    Thanks!

    Hi maximum23,
    You can use properties of plot to format the plot lines. You just have to select Active plot using property and then select color and line width etc..
    You can define color and width etc parameter by asking user or you can just make them default.
    Gaurav k
    CLD Certified !!!!!
    Do not forget to Mark solution and to give Kudo if problem is solved.

  • Changing line color on XY plot

    This should be something really simple. I simple created a property node, set the active plot, and set the plot.color. What happens to some plots is the points change to my specified color and other stays as my background plot color which is white. I cant seem to get the line color to change with the point color. There are ways I can change it at run time, by right click on the plot and going into properties and setting line color in that tab.
    What am I doing that I cant get this to work at runtime?
    I attached the plot, just ignore all the missing VIs you should be able to see the problem.
    Attachments:
    SteadyStatePlot1.vi ‏350 KB

    It works just fine here using LabVIEW 7.1. Could you do us a favor and make a mini demo, just containing the xy graph, some data for it, and the related property nodes to demonstrate your problem.
    Overall comment on your VI:
    Sorry, but I am absolutely horrified by your code. I cannot believe that you need all those property nodes, especially the signaling ones, they should be used very sparingly. (For example the FOR loops on top center and in the event called "clear all points" are just pumping hot air, repeating the same action and signaling (!!) every iteration.) It also just cannot be healthy if a single event calls tons of signaling properties, such as in the above mentioned event case. Then, in the timeout event, you are rewriting the plot la
    bels and names every 10 ms. Do they really change that often???
    Please let us help you in your overall program design. It will make a big difference in your future, more complex projects if certain common desing misconceptions are not propagated. I think entire sections of your program can be deleted without loss in functionality, the code can be stripped to <20% and the CPU usage can be reduce to <2% of the current situation. Just my wild guess.
    The above is well meaning criticism, so don't take it personal. I am much harsher looking at my own early code from 8 years ago. :-) Good luck!
    LabVIEW Champion . Do more with less code and in less time .

  • How can I increase line width on polar plot?

    The lines plotted on a LabVIEW 6 polar plot (picture control) are very thin and do not show up well when printed. I would like to increase the line thickness (as can be done easily on the graph controls), but looking through the polar plot VIs, I cannot find any obvious way of doing this.

    The polar plots basically use the picture control to draw the lines on a plot. To increase the thickness of the lines you would have to draw another line right next to the line. I'm sure this could be done, but would require alot of messing about with the drawing subVI's to draw all lines in duplicate.
    Alternatively you could plot the graph twice, but the second plot has an origin 1 pixel out. This will double the thickness on the screen, but i dont know what it will print out like. See attached example in LV 6.0.
    Another thing to try is change the plot colours. You can make the gridlines black (instead of grey), and paint the background white. This makes the lines show up much better. I will also include this in the same example.
    I hop
    e this helps you..
    Kim
    Attachments:
    Polar_plot_lines.vi ‏37 KB

  • Polar plot..gives a straight line

    hello
    i use labview 7.1
    i have connected a polar plot vi....done all the connection as per the example vi
    but i dont get the plot
    i plotted from -180 to 180
    i dont get the plot properly..
    my magnitude values varies from -39 to -40
    can any one help me..

    Please attach your code so we can see where the problem is. Thanks!
    LabVIEW Champion . Do more with less code and in less time .

  • How do u modify polar plots

    I would like to modify/control as many features on a polar plot as possible. I am aware of the property node feature, but those seem to be limited in what can be modified. I would like to have control over plot line thickness, fill-in solid color under data, and text size. I have seen these things modified before but I can't figure it out myself. Has anyone had this same issue?
    Thanks!
    Solved!
    Go to Solution.

    robin533,
    It sounds like with as much customization as you want, you might have to dig deep in the code. I would suggest trying to get into the low level code of the Polar Plot VI and seeing if you can modify what it is you're looking for. You can access some pen controls and color options this way.
    Cheers!
    KyleP
    Applications Engineer
    National Instruments

  • Multi-Phasors using polar plot

    Hello everybody
    I used LabView 7.1 and I need plot three phasor, at the moment I use Polar Plot, but I don't know how to plot some phasors, any idea?
    Another problem is how to I would chance the line width and form.
    Thanks
    Danilo

    Hello erick.yamamoto
    I managed plot three phasors, but I don't know how to chance the colors, form, and with of this phasors.
    Danilo
    Attachments:
    VISincrofasor.png ‏27 KB

  • Plot line on CNiGraph3D object

    Hi
    I am adding some new feature into the existing code that use CNiGraph3D to display data. The data is some amplitude associated with it's location of scan (x and y). The existing code scan data from a whole area, so the graph is filled. But the new feature will scan data from just a path (eg line). So I wonder if there's a way to plot line data on CNiGraph3D object.
    For example, I have this sequence of data (represented in x,y,amplitde)
    (5,17,3.6)
    (6,15,-9.2)
    (7,14,4.9)
    (6,12,-0.27)
    (5,10,-2.45)
    I would like to plot this data on CNiGraph3D. The graph is 10 units wide on x axis, and 20 units tall on y axis. And different value of amplitude will be plotted in difference color on Z axis.
    creating a matrix of 10x20 and fill the remaing coordinates (aside from those 5 coordinates above) with some constant value (0 or something else), but it's kind of waste of memory (my real code would be so much bigger than 10x20). So I wonder if there's any alternative way to plot this kind of data on CNiGraph3D?
    Thanks

    The main difficulty is to calculate the X position from the click position. First, you have to find the position in the graph pane. The left position of the pane is obtained by subtracting the width of the Y scale to its left position. Then there are some basic calculations to convert the click relative position to the corresponding X value, using the scale min and max.
    The second point is to create a cursor. Use the "Cursor list" attribute, which is an array of all the available cursors properties, and append a new one to the list.
    Attached is a simplified version of a tool I developed some times ago with the same goal.
    It answers to questions you didn't ask :
    - How can I move an existing cursor without creating a new one each time I click on the graph ?
    answer : the cursors are only created when you hold down the key while clicking
    - How can I remove a cursor ?
    answer : hold the key down while clicking close to the cursor you want to delete.
    Have a look at the way the closest cursor is detected, by calculating the distance between the click position and the cursors.
    Since I still have difficulties with the size of the attached documents, the vi is divided in several subs.
    CC
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Graph cursors.vi.zip ‏19 KB

  • Multiple polar plots into a 3d plot

    my test measures a light source, for each iteration (of the test) the detector moves up in elevation 5 deg (starts at 0 deg) and takes a data point every 2.5 degrees in azimuth (for a full 360 deg). My data array is a 3d array where on each page I have 3 columns azimuth, elevation (the elevation is constant for each iteration) and measured data. The question is: I cannot seem to plot it into a 3D graph...polar plot no problem...does any one have any insight?

    “Create color map.JPG” illustrates one way to create the map for the forth dimension.
    “Set Axis Range.JPG” how I manipulated the axis range and properties. Note: It appears all CW 3-d graph items start counting at “1” not “0”.
    “Add Cursors.JPG” shows the cursor work.
    I hope this helps,
    Ben
    Message Edited by Ben on 09-24-2005 03:48 PM
    Message Edited by Ben on 09-24-2005 03:49 PM
    Message Edited by Ben on 09-24-2005 03:49 PM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Create color map.JPG ‏37 KB
    Set Axis Range.JPG ‏71 KB
    Add Cursors.JPG ‏62 KB

  • Polar Plot Problem

    Hello!!!!
    I have created a Polar plot, but there is a line that shouldn't be there, what do I have to modify, so it shows exactly what I want??? I Have attached a picture of the graphs that I want, and my example VI, I hope someone can help me.
    Sorry, The arrays have to be filled out whit the next info:
    I: -1, 1,-1,1
    Q:1,-1,-1,1 THIS WAY IT does what I need.
    Saludos.!
    Mensaje editado por Special K
    Attachments:
    img030.jpg ‏305 KB
    graficar2.vi ‏43 KB

    Special K wrote:
    Im using LABVIEW 8.0 how can I create my own polar plot??
     You would need to use the picture functions to draw your graph, in the same way that the Picture Plot VI does. If you open up that VI you will see how it's done.
    Have you seen the images of what I want to obtain?? Is it possible to create those graphs??
    Yes. And yes. The "how" is a different matter. It's quite trivial to create an XY graph to draw your points, so that's why I suggested to use that. If you do not know how to draw an XY graph, open the Example Finder (Help -> Find Examples) and search for "graph". You will see lots of examples on graphs, including one for XY graphs. All you need to do is provide 4 points to the graph, and change the plot type to "scatter" so you just get the points instead of lines. Pretty simple. 

  • Plot line, bar and pie chart

    Anyone can let me know where can i learn or tutorial on how to plot line, bar and pie chart by using java2D... (no third-party software)....
    thanks in advance.

    Here's a pie chart app I made for an earlier question:
    import java.awt.*;
    import java.awt.font.*;
    import java.awt.geom.*;
    import javax.swing.*;
    public class PieChart {
      public static void main(String[] args) {
        int[] data = {
          18, 95, 102, 87
        PieCharter pie = new PieCharter();
        pie.enterData(data);
        JFrame f = new JFrame("Pie Chart");
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.getContentPane().add(pie);
        f.setSize(400,300);
        f.setLocation(300,300);
        f.setVisible(true);
    class PieCharter extends JPanel {
      int[] data, percents;
      int dataTotal;
      final int
        PAD = 25,
        R_PAD = 5;
      public PieCharter() {
        setBackground(Color.white);
      public void paintComponent(Graphics g) {
        super.paintComponent(g);
        Graphics2D g2 = (Graphics2D)g;
        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                            RenderingHints.VALUE_ANTIALIAS_ON);
        Font font = new Font("lucida sans unicode", Font.PLAIN, 16);
        g2.setFont(font);
        FontRenderContext frc = g2.getFontRenderContext();
        int width = getWidth();
        int height = getHeight();
        int cx = width/2;
        int cy = height/2;
        int dia = (int)Math.min(width, height) - 2*PAD;
        g2.draw(new Ellipse2D.Double((width - dia)/2, (height - dia)/2, dia, dia));
        // draw zero datum
        double radians = 0;
        int x = cx + (int)((dia/2) * Math.cos(radians));
        int y = cy - (int)((dia/2) * Math.sin(radians));
        g2.draw(new Line2D.Double(cx, cy, x, y));
        String s;
        int dataWidth, dataHeight, deltaR, rXInc, rYInc;
        for(int i = 0; i < data.length; i++) {
          radians += 2*Math.PI * data/dataTotal;
    x = cx + (int)((dia/2) * Math.cos(radians));
    y = cy - (int)((dia/2) * Math.sin(radians));
    g2.draw(new Line2D.Double(cx, cy, x, y));
    s = String.valueOf(percents[i]) + "%";
    dataWidth = (int)font.getStringBounds(s, frc).getWidth();
    dataHeight = (int)font.getLineMetrics(s, frc).getAscent();
    deltaR = (int)Math.sqrt(dataWidth*dataWidth + dataHeight*dataHeight)/2 + R_PAD;
    rXInc = (int)(deltaR * Math.cos(radians));
    rYInc = (int)(deltaR * Math.sin(radians));
    x += rXInc;
    y -= rYInc;
    x -= dataWidth/2;
    y += dataHeight/2;
    g2.drawString(s, x, y);
    s = String.valueOf(data[i]);
    dataWidth = (int)font.getStringBounds(s, frc).getWidth();
    dataHeight = (int)font.getLineMetrics(s, frc).getAscent();
    x = cx + (int)((dia/4) * Math.cos(radians - 2*Math.PI * data[i]/(2*dataTotal)));
    y = cy - (int)((dia/4) * Math.sin(radians - 2*Math.PI * data[i]/(2*dataTotal)));
    x -= dataWidth/2;
    y += dataHeight/2;
    g2.drawString(s, x, y);
    private void prepareData() {
    for(int i = 0; i < data.length; i++)
    dataTotal += data[i];
    percents = new int[data.length];
    int dataPlus = 0;
    for(int i = 0; i < data.length; i++) {
    dataPlus += data[i];
    percents[i] = Math.round(100 * dataPlus/dataTotal);
    public void enterData(int[] data) {
    this.data = data;
    prepareData();
    repaint();

  • Colour in area underneath a curve on a polar plot

    Hi i have made a VI that shows a curve on a line, i have also made a vi that outputs a mpeg video of the graph panning through all of its values, what i was wondering was if it was possible to fill in the area within a curve? I've managed to set the line colour, but i am unable to find anywhere that lets you set area colour.
    Many thanks.
    John P.
    VI attatched, bits cluttered, but the polar plot is clearly visable at the center.
    Attachments:
    Cosine Lobe Model.vi ‏98 KB

    Very nice unclebump,
    You get 5 stars for that one  To help people new with LabVIEW I decided to attach a picture showing you where to navigate to make the change.  You need to change the logic constant from false to true in the Polar Plot Data.vi (Labeled Polar Data) under the Polar Plot.vi (No Label just a picture of a polar plot).  The plot comes out filled because it is a multiple line graph drawn in a picture node with the line fill option on.
    Regards,
    -SS
    Message Edited by ShotSimon on 08-27-2008 09:25 AM
    Attachments:
    Polar Filled.PNG ‏50 KB

  • Polar plot of a data matrix....help is needed

    Hello,
    I'm working on an Ultrasound project, the data coming from the device is transmitted through a USB driver to the PC. I made a VI, that open a connection with the USB device and recieve the data. The coming data are recognized by the LabVIEW as stream of strings, so, i converted the data into a bytes using "string to byte array" function, then I used the function "reshape array" to reshape the data bytes into a 512x64 matrix which represents the no. of samples per ultrasound line times the no. of ultrasound lines.
    I plotted the data on an intensity graph function and it worked, but the problem is that the data or the matrix must be plotted as a polar plot, not as a cartesian plot.
    The problem is that I want to convert each single pixel (byte) of the (512x64) matrix from having (x,y) coordinate into a pixel that has (r, angle) coordinate.
    can you help me plot these data in a polar plot. If any body has any suggestions please help.
    best regards,
    Underzero.
    Attachments:
    US_VI1.PNG ‏17 KB

    Multiple posts: keep discussion to this thread: http://forums.ni.com/ni/board/message?board.id=170&thread.id=337220

  • Polar plot help

    I'm working a project where I need to plot X & Y data to a polar plot. Actually, what I really want is to plot X-Y data on a compass rose, and show 'clock" position instead of angle headings...but I can fake that well enough for now...
    Attached is my test vi for plotting to the polar plot. I've repalced the standard LV polar plot with a version available in one of the support forums that plots points instead of lines. Looks right to me..but no data plotted   Any hints or direction?
    Also, I ideally want to keep continually plotting data points - one set of coordinates after another. Any thoughts on the best way to do that? While loop maybe? I used to use labview prtty regularly, but it's been a while, so forgive me if these are easy questions.
    Thanks!
    Attachments:
    polar_test.vi ‏41 KB

    Updated vi attached for my polar plot test.I've replaced the modified "polar plot" vi with the original labview one. I can see data passing through everywhere, right to the plot itself...just don't see anything showing up. Is there something I'm misunderstanding about how to use the polar plot?
    Attachments:
    polar_test.vi ‏63 KB

  • How can I change the Y-axis (circular) grid spacing, in Polar Plot VI?

    When using Polar Plot VI, I need more control over the plotting parameters. This means tweaking the sub-VIs in various ways. What I need to do most is make the polar magnitude axis less busy, i.e. only draw circles every 10 instead of every 5 divisions, when using a range of 0 (outermost) to -80 (innermost).
    The magic 'magnitude axis subdivisions' variable seems to be generated in Calc Scale Specs sub-VI, and output as an array of clusters, but I can't quite see how it's created and from what.
    Please can anyone help me gain control over the number of magnitude division circles generated?
    Many thanks!

    I think if you go inside the Calc Increment.vi and modify the Increment output terminal it might change what you want to see. Try putting a multiply by 5 or ten into the case structure for when the log is false.
    Attachments:
    polar plot calc increment.jpg ‏90 KB
    modify calc increment.jpg ‏104 KB

Maybe you are looking for

  • Report Row Template - header

    Hi I have made a custom "Report Row Template". I have write the "header" direct in the html code. Is that a problem if i want to translate the application? Is there a way how to use the headers from the apex? Best Regrads Jesper Vels

  • New Mac Mini's

    Has anybody purchased one of these? I have been tossing around the idea of using one in my home theater for playing video podcasts, home videos, surfing the web, etc on the big screen... I currently use a 1st gen MacBook as part of my home theater, b

  • Database Adapter -- Getting Error While Running

    Team i was getting the following error while working on database adapter.. Faulted while invoking operation "GetSQDBAdapter" on provider "GetSQDBAdapter". - <messages> - <input> - <InvokeGetSeq_GetSQDBAdapter_InputVariable> - <part xmlns:xsi="http://

  • Can RVS4000 be used to bridge subnets?

    At the small church I attend, and where I'm the IT guy, we have an RVS4000 router which has worked well for us including the VPN capability. Our internet connection is through AT&T (not my choice) and last week we had to switch from DSL to U-Verse be

  • Multi Columns Report Switch replacement

    Hi, I have a multiple columns report with 2 fix columns and 10 selectable ones. I'm selecting the columns with a checklistbox an it works The Header is easy just have to put "=Parameters!Columns.Label(0-10)" as an expression in each columns heading