3d plot line thickness

How does one change the thickness of individual lines in 3DLine Plot? I am able to use 3D Graph Properties -> Plots -> Overlay to change the thickness of all lines, but can't figure out how to change individual lines. Is it even possible?

Hello jmountney,
The overlay for a line can be set on a plot-by-plot basis, and you can do this either via the 3D Graph Properties window (right-click>>3D Graph Properties) or via property nodes.  There are a couple things to keep in mind:
1) The overlay is assigned to a given plot index.  The best way to set up indices is in the 3D Graph Properties window.  The Plots tab will allow you to assign plot IDs and overlay styles for each index.
2) You'll need to build each line you want to manipulate separately as its own plot.  This is done by specifying a Plot ID when using the create_plot_line function.  I would recommend pre-assigning Plot IDs for the range of plots you anticipate using in the 3D Graph Properies window.
3) You can configure overlays dynamically (at runtime) via property nodes.  Set the plot index you want to modify using the Active Plot property, then change the overlay parameters.  Any changes you make will affect the current Active Plot.
4) The plot ID is NOT equivalent to the plot index.  The plot ID is the number displayed in the 3D Graph Properties window and is the number you use when specifying a plot to add a vector to (This can be any positive or negative integer).  The plot index is the index of the plot ID array. If you specify a Plot ID that's not currently in use at runtime (wire an unused number to the create_plot_line function), it will create and occupy the next available plot index. This means that unless you assign plot IDs in sequence (0,1,2,3...) the Plot IDs will not match the plot indices.  Just something to keep in mind. 
Hope that helps!
Tom L.

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.

  • Scatter plot line width

    First off, I'm using the trial version of iWork '09. So I want to eventually put a chart into keynote to present to my colleagues, however, putting the chart up on a projector requires me to have a thicker plot line. So if I use a scatter plot, my axis' turn out great, but I cannot adjust the line's width. I don't want symbols, I just want a line connecting the points. If I use the line chart instead of the scatter, the x-axis displays "Untitled 1, Untitled 2" as the labels. I can't change them to the corresponding numbers which is annoying. I can change everything else fine: axis line width, font size, etc. Its just eh connecting line I'm having trouble with

    Actually, found a roundabout way to do this. Have to use line chart and in the x-axis label, you have to insert your formula for what cells you want such as Table 1 :: B212:B912 and just set the category counter to only include one label every so many counts. Kind of a pain, but works. However, can't have only the few tickmarks (should be 5 labels and corresponding 5 tickmarks in my case, but I have 5 labels and 700 tickmarks), all are shown instead. It tacks all of the labels individually, but you can choose which ones are shown, but cannot remove tickmarks... Any ideas?
    Message was edited by: chemgoof

  • Can a plot line width be larger than level 5

    When I programming in Labview 6.1, in the property of plot, I found the line width only have 5 level. In my case, I need a much thicker plot line than level 5. Is there anyway to realize increasing the line width beyond the 5 options provided in Labview?
    Really thank you if you can help me.

    You can programmatically thicken lines by creating a duplicate data plot that is offset from the original.  Then use the Plot.FillTo property node and fill between the original and the duplicate.
    I back saved the example from LV7 to 6.1, but I have no way to test it on 6.1
    2006 Ultimate LabVIEW G-eek.
    Attachments:
    THICK.vi ‏18 KB

  • Line thickness in 3D line charts

    Is it possible to change the thickness of the plotted lines in a 3D line chart? Even though I click on the line, the graph inspector doesn't let me change anything. Thanks.

    Many attributes can be set in the Chart Attributes page Custom XML section. Line thinkness. Legend font size, height and width. But I haven't found a setting for the "icon" size. Even thought I increased font size and the size of the Legend on the page, the legend "lines" remained unchanged in size.

  • Help needed in plotting Line Graph!!!!!!!!!Pls help!!

    Hi, i need help in plotting a simple line graph showing the x&y axis and has to plot 3 different lines in the same graph.I have written a program and i need to implement this graph in it.Is there any tutorial for plotting line graphs,i mean steps included.
    Please help!

    You describe your need, but not where it originates from.
    Is it a programming assignment? If so, I hope this is not your chosen major, as you will fail because you are a non-resourceful plagarist.
    Do you need to simply graph some data? Use an existing package. There are free ones somewhere.
    What do you mean "i have written a program and i need to implement this graph in it"? If you wrote the program, wouldn't you be done?
    Enjoy programming

  • Office PDF Print and office PDF creator(adobe plugin) create different line thickness result

    Hi together,
    Office PDF Print and office abobe PDF creator(adobe plugin) create different result. It seems that Adobe PDf creater improves line thickness to 1pt instead of 0,3pt. Is there a setting to change to original 0,3 because this 0,3 are standard line thickness for our documents. with adobe V9 the line was 0,3pt. (we need thin, mid and thick lines)
    After 2 day's google searching this is the last change for hope :-)
    Software Versions
    Windows 7
    MS Office 2007 (12.0.6668.5000) SP3 MSO (12.0.6662.5000)
    Adobe Acrobat X (10.1.7)
    Left: MSO Adobe Plugin / MId: MS Word / Rigth: PDF printed over "print" AdobePDF printer

    Hi Bill,
    Thanks a lot for the fast reply, i have tested it with 300dpi but I didn't get a different result. The bad thing is that not all lines getting thicker. if there is no arrow or ball at the end of the line the line thickness will not change (see Pic). I think this is a Acrobat error, i don't think that this will improve the pdf quality if the progam changes only some lanes and not all to 1pt.
    I Think we must downgrade to version 9.

  • Formating Line thickness for lines in graphs with more than 6 lines.

    I have a line graph with more than 6 lines on it and I'm trying to make them all 1px.
    I can specify a line thickness for the first 6 lines but after that, the lines go back to the default thickness.
    Is it possible to change the default line thickness for a graph or format the line thickness for the 7th line and more?

    Good news! I found out how to format more than 6 lines of data and it's really simple to do!
    In the bottom left hand corner of the Format Chart Data, next to the Clear All button, is a button marked ADD.
    If you click this button, another row is added allowing you to format the 7th line of data.
    Click again and you get a row for the 8th line and keep clicking to add more lines.
    I'm making a note of it here in case it is useful to someone out there who searches on this problem in the future.
    Edited by: user2052587 on Jan 6, 2010 2:45 PM

  • Disappearing plot line when zoomed

    I am having a problem with my CNiGraph plot line disappearing when the axes min and max are explicitly defined and they are substantially smaller than they would be if the graph were autoscaled.  I am using measurement studio 8.6.1.465 and NiDaqmx 9.0.2 on windows XP.  I am controlling axis scale either by SetAutoScale() or SetMinMax().  My code is rather large, so I am including snippets of what I am doing below.    
    I noticed a thread with a similar problem at:
    http://forums.ni.com/ni/board/message?board.id=232&message.id=3769&query.id=1275984#M3769 
    Please help!  I have tried window invalidation, turning on/off immediate updates to the graph, setting axes visible/invisible, etc.
    -drew 
    Setup code:
            CNiPlot plot = m_pGraph->GetPlots().Add();
            CNiCursor cursor = m_pGraph->GetCursors().Add();
            //cursor.SetSnapMode(CNiCursor:napPointsOnPlot);
            cursor.SetSnapMode(CNiCursor:napNearestPoint);
            cursor.SetVisible(true);
            cursor.SetPointStyle(CNiCursor:ointCross);
            cursor.SetCrosshairStyle(CNiCursor::CrosshairNone);
            cursor.SetColor(CNiColor(255,255,255));
            cursor.SetPlot(plot);
            CNiAxes axes = m_pGraph->GetAxes();
            CNiAxis xAxis, yAxis;
            xAxis = axes.Item(1);
            yAxis = axes.Item(2);
            yAxis.FormatString = ".##e";
            xAxis.FormatString = "hh:nn:ss";
            CNiColor lineColor(m_plotArray[i]->m_lineColor);
            plot.LineColor = lineColor;
            plot.XAxis.GetTicks().SetMajorGrid(true);
            plot.YAxis.GetTicks().SetMajorGrid(true);
            plot.XAxis.GetTicks().SetMajorGridColor(CNiColor(60,60,60));
            plot.YAxis.GetTicks().SetMajorGridColor(CNiColor(60,60,60));
        m_pGraph->ChartLength = m_graphLength;
        m_pGraph->ChartStyle = CNiGraph::ChartStrip;
        m_pGraph->SetImmediateUpdates(true);
    Graphing:
    CNiReal64Matrix newData;
    m_pGraph->GetPlots().Item(i+1).ChartXY(newData);
    m_pGraph->GetCursors().Item(i+1).SetPosition(newData(0,maxCol),
                                                                        newData(1,maxCol));
    Solved!
    Go to Solution.

    I managed to fix this problem, noticing that panning the graph caused the line to redraw properly.  I added a very small amount of 'jitter' to the X axis each time after ChartXY is called. Since autoscale mode seems to refresh just fine, i only introduce jitter if the axis min/max is set explicitly:
    if (!m_pGraph->Axes.Item("XAxis").GetAutoScale()){
            static double plusMinus = 1.0;
            m_pGraph->Axes.Item("XAxis").SetMinMax(m_pGraph->Axes.Item("XAxis").GetMinimum()+(plusMinus*0.000000001),
                                                    m_pGraph->Axes.Item("XAxis").GetMaximum()+(plusMinus*0.000000001));
            plusMinus *= -1.0;
    It seems this is a bug in the graph control since there is no problem with the cursor drawing properly and I should not need to write code like this to keep my plot lines from disappearing?
    -drew

  • PSE 8 brush strokes randomly change to heavy line thickness

    I installed PSE 8 on a trial offer and when I use my Wacom stylus, the line thickness randomly changes to a heavy line.  I've cleared prefrences, and reloaded the Wacom drivers and messed with sensitivity.  Any suggestions?

    Hi,
    PSE allows user to change various parameters by the Pen pressure of the Wacom Tablet.
    While using Brush tool, You will find an arrow icon on the tool bar at the end, Opening it, you will find several parameters whicj can be controlled by Wacom tablet Pen pressure.  So while you are using brush with the Pen, the pressure you apply on the Wacom, increases the brush size.
    In case you need to change the Opacity of the brush, you can set it from the options bar and continue using and do Wonders.
    Try it. This is really good.
    Thanks,
    Swarnima

  • Using a slider to change line thickness

    Hi,
    This is a continuation of a project I have been posting over the last week.
    My latest problem is trying to make a slider that changes the line thickness in a drawing app that I would to share with my students. When moved from left to right a circle changes scale. This circle would act as a visual reference on the stage telling the viewer that the line thickness is changing. Right now I just want to figure out how to connect the slider so that the circle changes dynamically. Once I get that I feel I can figure out how to connect it to lineStyle().
    I hope I'm explaining this clearly.
    The current code I am attaching has the circle change size at onle two points-the far left and far right.
    I keep trying to write something that uses mouseX properties but so far nothing is working.
    Thanks

    Hi,
    I appreciate the help and, yes, that pretty much looks like what I was going for.
    Your solution looks clean!
    The trick seems to be to connect the value change in that line to the drawing line which is mouseX and mouseY.
    A couple of errors have me wondering if it is possible to change the lineStyle() dynamically. This is vector based and I think I might have to swtch over to a bitmap and use a Sprite, whichhas more of a chunky look tio it - based on a few previous attempts I made.
    I switched gears today and tempoarily and made a lot of buttons that change the line thickness. A swf file is attached.
    I will take your code and see if I can use it as a building block to change the line dynamically.
    If I figuret it out I'll post it.
    I also just ran into info on the Adobe website regarding the strokeObject, which is nowhere to be found in my reference manuals for AS3.I think the strokeObject allows you to make creative changes to a drawing line. So much to learn but hey that's what it's all about
    Cheers

  • How to increase line thickness in line charts?

    Hi,
    I am using Crystal Reports 11.
    I can change line thickness for only 4 series using "Format connector line" in the Design window. When the chart has more than 4 series, I can't change the thickness of lines except for the default 4 series.
    I try using the other method to change the thinness of line, i.e.:
    Got to the Preview window - click the line in chart - right click and go in Format Connector Line - change the thickness.
    But, when I close the Preview window and re-open it again, I find that the situation is the same: line thickness is changed for only 4 series.
    It looks like this way is effective just in computer memory.
    Is this caused by the old version of CR?
    If not, any approach to handle this problem?
    Thank you in advance.

    Thank you.
    It is a group level chart.
    I find "Apply Changes to All Charts" under Chart Menu, but after I made some changes on the chart, it is still grey and I could not use it.
    How to do?
    Edited by: Holdup on Feb 23, 2012 7:27 PM

  • 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

  • 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();

  • How to add the actual figure alone the plotted line

    Hi,
    Please advise on how to show the database figure alone a plotted line as per attached
    Thanks

    Then Change the diagram type to "Line with Markers":
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

Maybe you are looking for

  • Java upgrade

    I really dont know about javascript and java errors. I have Dell dimension 2400 with windows xp, What version of java should I have right now on my system so I wont have any problems browsing the internet?

  • Unable to locate DesignIsFun.zip

    I'm trying to download the sample files for Design Is Fun (DesignIsFun.zip) for a Muse tutorial but the path is incorrect. http://www.adobekb.com/_literature_157325/Asset_Mobile_Design_Is_Fun ERROR: Literature could not be found.

  • Elements 12 organiser has stopped working

    I Have found that elements 12 crashes when I start it up in the organiser. it starts to load the catalog screen and then the screen disappears. I have put back to a restore point but still the problems persist. Is a uninstall and re-install the only

  • I put Tiger server software in my computer by mistake. Now nothing works.

    All I have is a blue screen with one window only and nothing else. The one window wants the license number for the server software that Apple gave me when I was a developer. I have no license. I just want it off my computer. I was trying to put OSX T

  • Pas de detection de COM port après installation *.exe

    .Bonjour, J'ai un probleme au niveau des port de communication serie. Mon programme LabVIEW2009 utilise les fonctionnalités VISA et peut communiquer avec un port com. Apres la création d'un installeur, et lorsque j'installe mon programme sur une autr