Make graph line transparent programmatically

Hi,
I would like to be able to make graph lines transparent from within LabVIEW.  Is this possible?  I can find property nodes for every other property, but I can't see the one which turns on the Transparent bit.  Any suggestions?
Thanks,
Ian
Solved!
Go to Solution.

Hi Ian,
By "graph lines" I assume you mean the plotted data? If so, then you could use the property node for "plot color", change it to write and then wire a color box constant set to transparent (T) to it.
-CC 
"If anyone needs me, I'll be in the Angry Dome!"

Similar Messages

  • How to make a line graph from x,y table

    I have a table with x-values in one column and y-values in the next column. I want to make a line plot connecting these x,y values. It would be like a scatter plot with the points connected in order.

    Many people complain that the scatter plot doesn't connect the dots. The problem is,they're right. So you can use the shpes button and select the first item, line. then draw lines between the dots yourself if you want them.
    just before you print, I meant, AFTER your done with getting the data for the chart, and your definately not going to change anything. Because those lines are just object on the page, floating above all the other objects. They will not move to follow the points underneath on the chart.
    Does that help explain better?
    Jason

  • How to make a JPanel transparent? Not able to do it with setOpaque(false)

    Hi all,
    I am writing a code to play a video and then draw some lines on the video. For that first I am playing the video on a visual component and I am trying to overlap a JPanel for drawing the lines. I am able to overlap the JPanel but I am not able to make it transparent. So I am able to draw lines but not able to see the video. So, I want to make the JPanel transparent so that I can see the video also... I am posting my code below
    import javax.media.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.util.*;
    import java.lang.Math;
    import javax.media.control.FramePositioningControl;
    import javax.media.protocol.*;
    import javax.swing.*;
    class MPEGPlayer2 extends JFrame implements ActionListener,ControllerListener,ItemListener
         Player player;
         Component vc, cc;
         boolean first = true, loop = false;
         String currentDirectory;
         int mediatime;
         BufferedWriter out;
         FileWriter fos;
         String filename = "";
         Object waitSync = new Object();
         boolean stateTransitionOK = true;
         JButton bn = new JButton("DrawLine");
         MPEGPlayer2 (String title)
              super (title);
              addWindowListener(new WindowAdapter ()
                   public void windowClosing (WindowEvent e)
                            dispose ();
                            public void windowClosed (WindowEvent e)
                         if (player != null)
                         player.close ();
                         System.exit (0);
              Menu m = new Menu ("File");
              MenuItem mi = new MenuItem ("Open...");
              mi.addActionListener (this);
              m.add (mi);
              m.addSeparator ();
              CheckboxMenuItem cbmi = new CheckboxMenuItem ("Loop", false);
              cbmi.addItemListener (this);
              m.add (cbmi);
              m.addSeparator ();
              mi = new MenuItem ("Exit");
              mi.addActionListener (this);
              m.add (mi);
              MenuBar mb = new MenuBar ();
              mb.add (m);
              setMenuBar (mb);
              setSize (500, 500);
              setVisible (true);
         public void actionPerformed (ActionEvent ae)
                        FileDialog fd = new FileDialog (this, "Open File",FileDialog.LOAD);
                        fd.setDirectory (currentDirectory);
                        fd.show ();
                        if (fd.getFile () == null)
                        return;
                        currentDirectory = fd.getDirectory ();
                        try
                             player = Manager.createPlayer (new MediaLocator("file:" +fd.getDirectory () +fd.getFile ()));
                             filename = fd.getFile();
                        catch (Exception exe)
                             System.out.println(exe);
                        if (player == null)
                             System.out.println ("Trouble creating a player.");
                             return;
                        setTitle (fd.getFile ());
                        player.addControllerListener (this);
                        player.prefetch ();
         }// end of action performed
         public void controllerUpdate (ControllerEvent e)
              if (e instanceof EndOfMediaEvent)
                   if (loop)
                        player.setMediaTime (new Time (0));
                        player.start ();
                   return;
              if (e instanceof PrefetchCompleteEvent)
                   player.start ();
                   return;
              if (e instanceof RealizeCompleteEvent)
                   vc = player.getVisualComponent ();
                   if (vc != null)
                        add (vc);
                   cc = player.getControlPanelComponent ();
                   if (cc != null)
                        add (cc, BorderLayout.SOUTH);
                   add(new MyPanel());
                   pack ();
         public void itemStateChanged(ItemEvent ee)
         public static void main (String [] args)
              MPEGPlayer2 mp = new MPEGPlayer2 ("Media Player 2.0");
              System.out.println("111111");
    class MyPanel extends JPanel
         int i=0,j;
         public int xc[]= new int[100];
         public int yc[]= new int[100];
         int a,b,c,d;
         public MyPanel()
              setOpaque(false);
              setBorder(BorderFactory.createLineBorder(Color.black));
              JButton bn = new JButton("DrawLine");
              this.add(bn);
              bn.addActionListener(actionListener);
              setBackground(Color.CYAN);
              addMouseListener(new MouseAdapter()
                             public void mouseClicked(MouseEvent e)
                   saveCoordinates(e.getX(),e.getY());
         ActionListener actionListener = new ActionListener()
              public void actionPerformed(ActionEvent aae)
                        repaint();
         public void saveCoordinates(int x, int y)
                    System.out.println("x-coordinate="+x);
                    System.out.println("y-coordinate="+y);
                    xc=x;
              yc[i]=y;
              System.out.println("i="+i);
              i=i+1;
         public Dimension getPreferredSize()
    return new Dimension(500,500);
         public void paintComponent(Graphics g)
    super.paintComponent(g);
              Graphics2D g2D = (Graphics2D)g;
              //g2D.setComposite(AlphaComposite.getInstance(AlphaComposite.CLEAR, 0.0f));
              g2D.setColor(Color.GREEN);
              for (j=0;j<i;j=j+2)
                   g2D.drawLine(xc[j],yc[j],xc[j+1],yc[j+1]);

    camickr wrote:
    "How to Use Layered Panes"
    http://java.sun.com/docs/books/tutorial/uiswing/components/layeredpane.html
    Add your video component to one layer and your non-opaque panel to another layer.Did you try that with JMF? It does not work for me. As I said, the movie seems to draw itself always on top!

  • How can I make a page transparent in InDesign CS4?

    Hello and thank you all for your help in advance!
    I would like to make a page transparent in InDesign.
    When the magazine is printed it will be an overlay page with font printed on it where you can still see the image underneath. I was wondering if this is possible.
    I'm not quite sure if it has a technical name to it or not so I uploaded a picture of what I'm speaking about to Tinypic.
    http://i46.tinypic.com/29m1vk3.jpg
    (routes and lines on top on the semi-transparent page, map on next)
    Thanks for your help!
    Nora

    will these subjects actually be printed on separate pages or do you want to overlay some images on one page with type on the same page?
    If the former, add and use layers; if the latter design one page and save it as a pdf. Place that pdf on a lower level layer, lock the layer, and work on a higher layer.

  • 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

  • Line Graph - Line Width

    i am having line graph with 2 lines . lines are coming thicker by default i want to make one of the line in my graph thinner. how can i do that below is my graph xml
    chart:
    <Graph seriesEffect="SE_AUTO_GRADIENT" graphType="LINE_VERT_ABS" graphicAntialiasing="true">
    <LegendArea visible="true" />
    <Title text="Center Growth" visible="true" horizontalAlignment="CENTER">
    <GraphFont bold="true" italic="false" underline="false" />
    </Title>
    <SeriesItems>
    <Series id="0" color="#0000FF" />
    <Series id="1" color="#FF0000" />
    </SeriesItems>
    <O1Title text="Weeks" visible="true" />
    <Y1Title text="Attendances" visible="true" />
    <LocalGridData colCount="{count(xdoxslt:group(.//G_2,  'FWN'))}" rowCount="2">
    <RowLabels>
    <Label>RSum V</Label>
    <Label>RSum</Label>
    </RowLabels>
    <ColLabels>
    <xsl:for-each-group select=".//G_2" group-by="FWN" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <Label>
    <xsl:value-of select="current-group()/FWN" />
    </Label>
    </xsl:for-each-group>
    </ColLabels>
    <DataValues>
    <RowData>
    <xsl:for-each-group select=".//G_2" group-by="FWN" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <Cell>
    <xsl:value-of select="sum(current-group()/RSUM2[.!=''])" />
    </Cell>
    </xsl:for-each-group>
    </RowData>
    <RowData>
    <xsl:for-each-group select=".//G_2" group-by="FWN" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <Cell>
    <xsl:value-of select="sum(current-group()/RSUM1[.!=''])" />
    </Cell>
    </xsl:for-each-group>
    </RowData>
    </DataValues>
    </LocalGridData>
    </Graph>
    please let me know i what is the code i need to add to make my line line thinner.
    i checked line style but it didn't help..

    is it possible to control line width in line graph.i tried to look for the option to control the width of lines ,not able to find anything on this.

  • How to make a completely transparent button in Flash Builder

    I am making a mobile application, and I am wondering how to make a completely transparent button. I've tried using
    <s:Button x="-5" y="0" width="410" height="1504"
                                    skinClass="spark.skins.mobile.TransparentNavigationButtonSkin" click="navigator.pushView(Sun)"/>
    But it still has one line on the side. I need a way to make it completely transparent.
    Thanks,
         8th grade student

    Try this alpha="0.001"
    Also add useHandCursor="true" and buttonMode="true" if you wish to have the hand cursor appear on hover.
    example  x="10" y="10" width="169" height="54" label="Button" alpha="0.001" useHandCursor="true" buttonMode="true" 
    HTH

  • LV6i Graph line width

    Why does the line width of a printed chart/graph vary from the on screen width?
    Thanks
    CM

    The line width on a printed chart appears to vary from the screen line width due to the difference in the resolution of a printed page versus the monitor. The reason why it does this is that the screen is approx. 72 dpi. When you make a line that is five pixels wide, it looks like a swath of color. The printer is (typically) 600 dpi. When you make a line that is five pixels wide, it is still five times as wide as the other plot, but it doesn't look like the screen. We prefer to print plot data as finely as possible with the printer resolution so that we are portraying the data as accurately as we can.
    Marcus Monroe
    Application Engineer
    National Instruments

  • Line Graph - Lines

    Hi all,
    I have a line graph - defined as custom.   The line graph has lines that are not wide enough to be visible from a distance.   Does anyone know how to make the lines wider?
    Thank you,
    Michelle

    Thank you Jeremy.  The concerns you listed are valid.
    When 12.1 is available and we upgrade the thicker line will be great.  We are currently on 12.0.
    Unfortunately we have a newer installation of MII.   That means, we are still in the "prove it" stage.   We purchased a huge monitor.  (I'm not sure of the size anymore.)  That monitor is mounted above the lines on the shop floor.  The object is to give immediate information to the line on performance.   The graph shows the amount of "bottles"  that go thru the line every 15 minutes.  It is automatically updated.   There are 3 lines.  One for the upper limit, one for the lower limit, and one for the current produced.   This gives them a nice picture, if only they could see the lines.
    I added line marks - they didn't like that because the graph became too messy.   So the solution appeals to me.  With the future enhancements to MII we can go back and change the graph later.  I'll put it in our enhancement list.
    Our production area is very positive on getting something new for themselves.   Our executives get the high level.  The people on the floor get the instant information.   I want to keep that enthusiasm going.

  • How to make smooth line movement?

    Hello!
    I've been searching it everywhere, but couldn't find anything in the net. I want to make smooth line movement. I've tried to create motion, but line just moves, and I want it to move smoothly according to the path. What I want to achieve can be seen here:
    http://www.noartistname.com/demo/
    But that's what I did so far - made movement out of several broken lines - how can I make more smooth movement?
    Thanks,
    Aleks.

    the easiest for non-coders is to tween a mask of the full line.  you can also use the flash drawing methods but that takes some coding.  see:
    www.kglad.com , click snippets, function graphs.

  • How to show graphs line progressively?

    I want to show the line in graphs progressively in Keynote.
    Make the line to show gradually.
    like this example:
    http://www.mathgoodies.com/lessons/graphs/line.html
    Hoe to do this?

    You need to use a Wipe Build, in the Build Inspector. Select the line you want to appear, then apply the build to it.

  • How to make new line in JButton.setText()?

    how to make new line in JButton.setText()?
    I want to set the text of jbutton in tow line ,as follows
    | jbutton-line1 |
    | xxxxxxx-line2 |
    i konw i can jbtton.settext("<html>line1<br>line2</html>");
    but i find it's ugly using html,
    is there anyother way to create new line in JButton's Text

    As for the above comment....
    I thought the question was well purposed. Using HTML was not acceptable in this instance, which was made clear, so why critisize his comments? "Using HTML" is a poor solution, it does NOT work in many instances due to browser, OS variations. Usually the "common answer" is never a COMPLETE answer.
    Possible Solution:
    Use JLabels to render the text on the button.
    import javax.swing.*;
    import java.awt.*;
    public class ButtonMaker {
    public static void makeButton(JButton jb, String[] titleList) {
    jb.setLayout(new FlowLayout());
    for (int i = 0; i < titleList.length; i++) {
    JLabel tmpLabel = new JLabel(titleList);
    tmpLabel.setForeground(Color.black);
    jb.add(tmpLabel);
    public static void clearButton(JButton jb) {
    Component[] cList = jb.getComponents();
    for (int i = 0; i < cList.length; i++) {
    if (cList[i] instanceof JLabel)
    jb.remove(cList[i]);
    Known Limitations:
    1. Flowlayout does not work well with single line text buttons... perhaps another layout manager may work better for various buttonsizes-linenumber combos.
    2. Mac OSX : The default UI for Mac OS X (and above it seems), is to have rounded edged buttons. These rounded edges are destoryed when using JLabels, leaving a square, blocky button in its place.
    POSSIBLE SOLUTION:
    (this is ugly and time consuming)
    - create images of the button with text on them.

  • How can I make a line at 40 degree angle in Keynote 6

    How can you make a line of 40 degrees (or anywhere between 40 to 45) angle in the new Keynote 6.2.2. It seems they took away that nice feature from the previous version. When I move one end of a line, it locks onto 45 when I get near that angle, and jumps off directly to 34 when I try to move away. Previously you could click on a line to transform the ends into red spots, and move them independently to any angle or length. Now it locks onto 45, or 135 or 90 etc. I don't have any of the guides on or any other feature. This is supposed to happen only when holding shift key (which is also a great feature). If it locks onto the magic angles without holding shift, then there is no sense if having that feature at all.

    Press the command key when dragging, this switches off snapping and allows continuous placement.
    If you like numerical control:     Inspector > Format > Arrange > Rotate

  • How to make the line items of sales order cannot be deleted.

    Hi All,
    Is there any Enhancement spots or user-exits which make the line items of sales order cannot be deleted if item category is 'TAN'.
    Thanks in Advance,
    Sudhakar Reddy .A

    Hi All,
    If you doesn't want to delete sales order line items then we have write in the Include Program which has mentioned below and in the form .....endform.
    Program Name :  Include MV45AFZB
    _Example:_
    form userexit_check_xvbap_for_delet using us_error
                                              us_exit.
    IF .......
      US_EXIT = CHARX.
    ENDIF.
    endform.

  • Anyone know how to make an "Index Transparent" gif

    I have successfully made transparent PNGs and GIFusing an Alpha transparency but now I need to make images which would be the same as ueing fireworks / Photoshop to make a colour transparent. i.e. indexed transparency.
    Does anyone know how to do this.
    My code is as follows :
    // configure all of the parameters
    String text = "ABC abc XYZ xyz ["+ new Date()+"]";
    String font_file = "./tst/Maiandb.TTF";
    font_file = request.getRealPath(font_file);
    float size = 30.0f;
    Color background = Color.white;
    Color color = Color.black;
    Font font = Font.createFont(Font.TRUETYPE_FONT, new FileInputStream(font_file));
    font = font.deriveFont(size);
    buffer = new java.awt.image.BufferedImage(1,1,java.awt.image.BufferedImage.TYPE_INT_RGB);
    Graphics2D g2 = buffer.createGraphics();
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
    java.awt.font.FontRenderContext fc = g2.getFontRenderContext();
    java.awt.geom.Rectangle2D bounds = font.getStringBounds(text,fc);
    // calculate the size of the text
    width = (int) bounds.getWidth();
    height = (int) bounds.getHeight();
    // prepare some output
    buffer = new java.awt.image.BufferedImage(width, height, java.awt.image.BufferedImage.TYPE_INT_ARGB);
    g2 = buffer.createGraphics();
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
    g2.setRenderingHint(RenderingHints.KEY_ALPHA_INTERPOLATION, RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY);
    g2.setFont(font);
    // actually do the drawing
    Color transparent = new Color(0, 0, 0, 0);
    g2.setColor(transparent);
    g2.fillRect(0,0,width,height);
    g2.setColor(color);
    g2.setComposite(AlphaComposite.SrcOver);
    g2.drawString(text,0,(int)-bounds.getY());
    File file = new File ("./jsp1/tst/fred1.gif");
    com.gif4j.light.GifImage gifImage = new com.gif4j.light.GifImage();
    com.gif4j.light.GifFrame gifFrame = new com.gif4j.light.GifFrame(buffer);
    gifImage.addGifFrame(gifFrame);
    GifEncoder.encode(gifImage, file);Thanks in advance

    ^^EDIT^^
    System admins updated iMac to OS X Mountain Lion (10.8.4).

Maybe you are looking for

  • Discoverer 4i to OBIEE migration methodology - Oracle Recommended Way

    Hi, We are looking into a scenario where we are required to migrate large number of Discoverer 4i reports to OBIEE. We have good number of custom reports(approx 200) and views too that are to be migrated. Am aware about the migration assistant that c

  • HT201272 How do I find my purchased audiobooks?

    I bought The lord of the rings dramatised audiobook just before my iphone decided to get wet and stop working. I managed to get my purchased films and music from icloud but there doesn't seem to be a purchased audiobooks section. I really don't want

  • Actionscript 3 info. to MySQL database?

    I'm somewhat stuck as to how to do this. I've loaded my MySQL records into flash with a PHP created XML file. I then change the data using AS3 and it is saved into arrays. The data consists of 12 strings each with a length of 30 or so, like this: mon

  • MacBook Maintenance Scripts?

    Hey there guys, I have heard a little bit on these Maintenance Scripts which are supposedly run during the late hours at night when any given Mac is left running for 24 hours. Does anyone have any further info on these maintenance scripts?

  • Can't create still image

    I just upgraded to Quick Time Pro. I 'm trying to create still images from a movie clip, but the EXPORT option is BLANK. Why????