Legend for 3d graph

I want to know how to make a legend for 3d graph.
I actually posted my question on the following thread but since there havent been any replies, I thought I could just post it here.
http://forums.ni.com/ni/board/message?board.id=170​&message.id=160715#M160715
Please click on the link for my question.
Thanks.

Hi kmo,
I'm sure it is possible to get a color map... but I'm affraid I could'nt get to the result you wish I think I'm not far..
Maybe somebody knows hox to get it from the variant, I am not used to use these "tools": Sory...
If you don't need a real 3D graph, it might be easier to use an intensity graph.
When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
Attachments:
Wafer.vi ‏99 KB

Similar Messages

  • How to Generate Event on change in Plot Legend for XY Graph

    Hi,
    I have two XY graphs on the front panel and would like to maintain a common plot legend such that any change in the plot legend affects both graphs.
    Objective: I would like any value change in plot legend to fire an event.
    How do I program that?
    I know of value change event for the graph but am unable to find something specific to the plot legend. Other option is to have the user press a "refresh" button that will fire the event.
    Feel free to share thoughts on other elegant methods to achieve the same objective.
    Thanks,
    Gurdas
    Gurdas Singh
    PhD. Candidate | Civil Engineering | NCSU.edu

    Hi Sarah,
    Looks like you are talking of exactly what I want!
    I have attached a sample VI to try achieve what I want. But it still has some issues which are:
    1) I am unable to configure a Plot Attribute Change Event. I have used a mouse leave event instead. How does one configure a Plot Attribute Change Event?
    2) Is there no single property which will transfer all the settings of plot legend from one graph to plot legend of another graph? In my sample VI, I have to read each property of the master graph and feed it into the slave graph.
    Kindly note I am using LV FDS 7.1 on Win2000
    Thanks,
    Gurdas
    Message Edited by Gurdas on 03-27-2006 11:51 PM
    Gurdas Singh
    PhD. Candidate | Civil Engineering | NCSU.edu
    Attachments:
    Graph_PlotLegend_Event.vi ‏45 KB

  • Scroll bar on legend for xy graph

    Is there a way to create a scroll bar for the legend of an XY graph?  The number of entries in the legend will be changing programmatically so the legend needs to be able to grow dynamically (which I have figured out how to do using property nodes).  Any ideas?
    Cheers
    CLA, CLED, CTD,CPI, LabVIEW Champion
    Platinum Alliance Partner
    Senior Engineer
    Using LV 2013, 2012
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.

    Ultimately I will have 6 xy graphs in my vi, I would like to have a seperate scroll bar for the legend of each graph.  Each graphs legend will both grow and shrink as the program runs and I would like to use the scroll bar to keep the legend from growing off of the screen.  I would like to be able to dislpay the data from the point (6 m/s for example) along with its symbol on the xy graph (red dot for example) in the legend.  If I am umderstanding you correctly I need to bundle the type and color of the plot into a cluster with the data and then link that cluster to the scroll bar, I assume I can read the property node for each data point (setting it to active plot first) for both plot style and color?  Let me know if I am thinking about this correctly or if I have misinterpreted what you are saying.  Thank you very much for your help!
    Cheers!
    CLA, CLED, CTD,CPI, LabVIEW Champion
    Platinum Alliance Partner
    Senior Engineer
    Using LV 2013, 2012
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.

  • How to Put Legend for Multi Series Stacked Graph...?

    Hi Experts,
    Please guide me how to put Legend for Multi Series Stacked Graph...?
    Its very URGENT...!!!!
    Thanks in advance...
    Regards,
    Manoj

    I searched the forum using "jcombobox multiple columns". The first posting I read had a link to a posting with 4 different solutions.
    Why is it so hard to search the forum before posting a question????

  • How to change the text in the legend of a graph programmat​ically in labview

    I have many graphs in one plot and want to show the legend the name of the graph (i.e. the filename). How do I change the text in the legend programmatically?

    Create a property node for your graph. Use the property node "Active Plot" to define which plot (or line) you want to rename. Then write the new legend label to the property node "Plot.Name". See attached.
    Tim
    Attachments:
    legend.vi ‏12 KB

  • Legend for a 3D Surface Plot

    How can I create a legend for a 3D surface plot? I'm doing a xy-projection and the view direction is directly towards this plane. The plot style is a surface contour plot. I want to display next to the plot the legend in a separate bar where the different colours with each value are displayed. The value for each contour line shall be displayed in the legend.
    Patrick

    OK,
    I remember that thread now. That was the one were you did not want to use interpolate colors and I did. Well I still  like to interpolate colors but that presents another challenge when trying to produce a proper color ramp. Without resorting to using the picture control
    http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=14&jump=true
    I decided to play with some of the built in objects.
    All of the round objects like knobs and guages include a color ramp. This gave me a ramp but is not quite up to what you get with an intensity graph.
    Since I could not get a ramp on any of the straight indicators like sliders etc, I hid most of an intensity graph and just use the Z-scale. It turns out that the same data structure can be used in the intesity graph as the guage.
    Can anyone think of other ays of producing a proper color scale when intepolation is turned on?
    Ben
    Message Edited by Ben on 12-24-2005 08:03 AM
    Message Edited by Ben on 12-24-2005 08:03 AM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Scale.vi ‏81 KB
    Scale.JPG ‏111 KB

  • No legend title on graph.

    In Anserws I added graph view. All is ok, but legend text is empty.
    In mesures area (Vertical Axis ) there are two bars:
    1. totals for products
    2. totals for regions
    Horizontal axis is date
    When editing graph view, on sample area there are legend text like this:
    sample
    | -- totals for products
    |________ -- totals for regions
    but when I open analyse there is no text 'totals for products' and 'totals for regions' for legend markers
    In graph properties on tab 'Title and legend' for Labels for Legend I choose Font:family=Arial Narrow, color=#000080, style=regular, size 20

    Welcome to the Apple Discussions. Previewing the book as LarryH suggested the dust jacket will look like this:
    Click to view full size
    There you can see the elements of the jacket. If you choose a photo cover with no text you won't get any text on the spine.
    Happy New Year

  • How to add 3 legends for a single series barchart?? JAVAFX

    Here is my code to generate 10 bars of different colors. I want to add legend respectively but it only one shows yellow legend
    1. I think it shows only 1 color because there is only 1 series. Is it possible to add more than 1 legend for a single series?
    or
    2. or can i display another image for legend in barchart??
    output :http://i.stack.imgur.com/fSNu7.png
    file i want to display in barchart:http://i.stack.imgur.com/cchch.png
    public class DynamicallyColoredBarChart extends Application {
        @Override
        public void start(Stage stage) {
            final CategoryAxis xAxis = new CategoryAxis();
            xAxis.setLabel("Bars");
            final NumberAxis yAxis = new NumberAxis();
            yAxis.setLabel("Value");
            final BarChart<String, Number> bc = new BarChart<>(xAxis, yAxis);
            bc.setLegendVisible(false);
            XYChart.Series series1 = new XYChart.Series();
            for (int i = 0; i < 10; i++) {
                // change color of bar if value of i is >5 than red if i>8 than blue
                final XYChart.Data<String, Number> data = new XYChart.Data("Value " + i, i);
                data.nodeProperty().addListener(new ChangeListener<Node>() {
                    @Override
                    public void changed(ObservableValue<? extends Node> ov, Node oldNode, Node newNode) {
                        if (newNode != null) {
                            if (data.getYValue().intValue() > 8) {
                                newNode.setStyle("-fx-bar-fill: navy;");
                            } else if (data.getYValue().intValue() > 5) {
                                newNode.setStyle("-fx-bar-fill: red;");
                series1.getData().add(data);
            bc.getData().add(series1);
            stage.setScene(new Scene(bc));
            stage.show();
        public static void main(String[] args) {
            launch(args);
    ...Edited by: 993431 on Mar 12, 2013 1:42 PM

    Either:
    1. Use a chart which displays multiple series, then you can allow the built-in legend to show OR
    2. Use a single dynamically colored series have you have done and create your own custom legend.
    import javafx.application.Application;
    import javafx.scene.*;
    import javafx.scene.chart.*;
    import javafx.stage.Stage;
    public class ThreeSeriesBarChart extends Application {
      @Override public void start(Stage stage) {
        final CategoryAxis xAxis = new CategoryAxis();
        xAxis.setLabel("Bars");
        final NumberAxis yAxis = new NumberAxis();
        yAxis.setLabel("Value");
        final BarChart<String, Number> bc = new BarChart<>(xAxis, yAxis);
        XYChart.Series lowSeries = new XYChart.Series();
        lowSeries.setName("Not Achieved");
        XYChart.Series medSeries = new XYChart.Series();
        medSeries.setName("Achieved");
        XYChart.Series hiSeries  = new XYChart.Series();
        hiSeries.setName("Exceeded");
        bc.setBarGap(0);
        bc.setCategoryGap(0);
        for (int i = 0; i < 10; i++) {
          final XYChart.Data<String, Number> data = new XYChart.Data("Value " + i, i);
          if (data.getYValue().intValue() > 8) {
            hiSeries.getData().add(data);
          } else if (data.getYValue().intValue() > 5) {
            medSeries.getData().add(data);
          } else {
            lowSeries.getData().add(data);
        bc.getData().setAll(lowSeries, medSeries, hiSeries);
        bc.getStylesheets().add(getClass().getResource("colored-chart.css").toExternalForm());
        stage.setScene(new Scene(bc));
        stage.show();
      public static void main(String[] args) {
        launch(args);
    import javafx.application.Application;
    import javafx.beans.value.*;
    import javafx.geometry.Pos;
    import javafx.scene.*;
    import javafx.scene.chart.*;
    import javafx.scene.control.Label;
    import javafx.scene.layout.*;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.*;
    import javafx.stage.Stage;
    public class DynamicallyColoredBarChart extends Application {
      @Override public void start(Stage stage) {
        final CategoryAxis xAxis = new CategoryAxis();
        xAxis.setLabel("Bars");
        final NumberAxis yAxis = new NumberAxis();
        yAxis.setLabel("Value");
        final BarChart<String, Number> bc = new BarChart<>(xAxis, yAxis);
        bc.setLegendVisible(false);
        XYChart.Series series1 = new XYChart.Series();
        for (int i = 0; i < 10; i++) {
          // change color of bar if value of i is >5 than red if i>8 than blue
          final XYChart.Data<String, Number> data = new XYChart.Data("Value " + i, i);
          data.nodeProperty().addListener(new ChangeListener<Node>() {
            @Override
            public void changed(ObservableValue<? extends Node> ov, Node oldNode, Node newNode) {
              if (newNode != null) {
                if (data.getYValue().intValue() > 8) {
                  newNode.setStyle("-fx-bar-fill: -fx-exceeded;");
                } else if (data.getYValue().intValue() > 5) {
                  newNode.setStyle("-fx-bar-fill: -fx-achieved;");
                } else {
                  newNode.setStyle("-fx-bar-fill: -fx-not-achieved;");
          series1.getData().add(data);
        bc.getData().add(series1);
        LevelLegend legend = new LevelLegend();
        legend.setAlignment(Pos.CENTER);
        VBox chartWithLegend = new VBox();
        chartWithLegend.getChildren().setAll(bc, legend);
        chartWithLegend.getStylesheets().add(getClass().getResource("colored-chart.css").toExternalForm());
        stage.setScene(new Scene(chartWithLegend));
        stage.show();
      class LevelLegend extends GridPane {
        LevelLegend() {
          setHgap(10);
          setVgap(10);
          addRow(0, createSymbol("-fx-exceeded"),     new Label("Exceeded"));
          addRow(1, createSymbol("-fx-achieved"),     new Label("Achieved"));
          addRow(2, createSymbol("-fx-not-achieved"), new Label("Not Achieved"));
          getStyleClass().add("level-legend");
        private Node createSymbol(String fillStyle) {
          Shape symbol = new Ellipse(10, 5, 10, 5);
          symbol.setStyle("-fx-fill: " + fillStyle);
          symbol.setStroke(Color.BLACK);
          symbol.setStrokeWidth(2);
          return symbol;
      public static void main(String[] args) { launch(args); }
    /** colored-chart.css: place in same directory as other bar chart application files and setup your build system to copy it to the output directory */
    .root {
      -fx-not-achieved: red;
      -fx-achieved:     green;
      -fx-exceeded:     blue;
    .default-color0.chart-bar { -fx-bar-fill: -fx-not-achieved; }
    .default-color1.chart-bar { -fx-bar-fill: -fx-achieved; }
    .default-color2.chart-bar { -fx-bar-fill: -fx-exceeded; }
    .level-legend {
      -fx-padding: 10;
      -fx-border-width: 2;
      -fx-background-color: rgba(211, 211, 211, 0.5);
      -fx-border-color: derive(rgba(211, 211, 211, 0.7), 10%);
    }

  • Is there a way to display the legend for a chart, but not the chart?

    Hi,
    I have a stacked column chart and a line chart on top of each other.   I can't use the legend for the stacked column chart because the data will change from month to month, and the 2 charts will not be aligned.  I copied the stacked column chart to another part of the canvas and want to display only the legend, but the chart is still displaying.  Is there a way to prevent the chart from displaying?    Thanks.

    hi Jim Wojewnik,
    we can show only the legend in a pie chart by dragging the edges to closer.do the following,
    select the pie chart,select the edge of the chart and make it small and u ll find the pie chart shrinking.make it lean such that the pie chart disappear.
    try this work around and let me know.
    regards,
    ravi.

  • I look for integrated in the legend bloc of diaporama, a widget such as "Accordion" for, with a click, or passing with mouse, open a new legend for each photo. I tried with "Accordion" of Muse, it does not work. I tried copy/paste, mais no result. The wid

    Question.
    I look for integrated in the legend bloc of diaporama, a widget such as "Accordion" for, with a click, or passing with mouse, open a new legend for each photo. I tried with "Accordion" of Muse, it does not work. I tried copy/paste, mais no result. The widget disappear in bloc legend. disparaître. Have you one solution?
    Thank you,
    Loïc

    Accordion or Tabbed panel should to it, with click and open container.
    Please provide site url where this does not work, also if you can provide an example where we can see the exact action then it would help us.
    Thanks,
    Sanjit

  • Code error for several graphs

    Hi, for several graphs visualize this error:
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 46036] Internal Assertion: Condition bAllColumnsReplaced, file server\Query\Optimizer\Navigator\Src\SQONProcessingPathGraph.cpp, line 2273. (HY000)
    It is a mistake system?
    Who can help me?
    Thanks in advance

    946247 wrote:
    no one answer me?There is a smiliar known issue in OBIEE 11g. Refer to this on MOS: OBIEE 11g: Error: "Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P...[nQSError: 46036] Internal Assertion: Condition logicalSubRequest" After Filtering On Hierarchy Column [ID 1393344.1]

  • Creating z matrix for 3D graph

    hello there,
    i am generating a scan using an XY table with a sensor mounted i.e. the z component. i want to run these coordinates to a 3D surface graph. i have all the x,y and z individual values but i dont know how to convert these to a z matrix required for the graph. Has anybody come across this problem before?
    I have attached the relevant file
    Thanks
    Dave
    Attachments:
    XYZarray1.vi ‏694 KB

    Hi Dave
    As I understand you want to plot a surface defined by your x,y and z arrays. Take a look at the following thread which provides a demo on plotting a mesh which is a surface defined by a set of x,y and z points.
    http://forums.ni.com/ni/board/message?board.id=170&message.id=114622#M114622
    I hope this helpsMessage Edited by SciWare on 05-16-2005 06:39 AM
    Kurt Friday
    www.sciware.com.au

  • Position of legend for curves.

    HI,
    Please look at the picture below.
    I need to have curve legend similar to it.
    DIAdem provides Vertical,Horizontal and Automatic position.
    I am facing problem with position of channel names.
    How to do that.?
    I hope am clear about my requirement.
    Regards,
    Bijay
    Solved!
    Go to Solution.

    Hi Bijay,
    Please have a look at the example: "2D Tables as Legend and Legend for Axis System Labeling". There is a individual legend (based on a 2D table). To create such a legend you need the command "CurveSnippet".
    Greetings
    Walter

  • How do i get a colormap for intens graph using basic imaq

    This is a follow up to
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000B58D0000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_TIER_0=0&USEARCHCONTEXT_TIER_S=0&USEARCHCONTEXT_QUESTION_0=how+do+i+get+a+colormap+for+intens+graph+using+basic+imaq&USEARCHCONTEXT_QUESTION_S=0
    where I asked for help getting a colormap for saving an image as a jpeg. Now, I have decided that I would like to use an intensity graph for my display of the RGB image that I have captured using my pci-1411 frame grabber board. How do I get the right colormap for the intensity graph display? I do not have vision and do not intend to purchase it. I am using the basic IMAQ package.
    jc
    Mac 10.4
    LV7.1
    CLD

    Dear Sir, usually the intensity graph will help you with monochrome images, since they have a one color intensity. If you want more colors you will be able to get up to 256, and not true color (24 bit). You might want to use the Picture Control instead or a Child Window approach, please look in your Help menu, 'Search IMAQ Examples...' and then browse for IMAQ examples and choose the ones that are for Picture Control. For the Child Window look in our website for an example called 'IMAQ Display Without IMAQ Vision'.
    Good luck!
    Nestor.
    Nestor
    National Instruments

  • Viewing Window for Large Graphs

    Hi! I'm looking for pointers on how to develop a viewing window for large graphs, otherwise called 'reference maps' or 'reference diagrams'. For instance, you might have a very large diagram that does not fit in your screen with a very small version of it to one side. Over the small graph, there would be a square box that you move around to focus over to section of the graph. As you move the box, the large diagram on the other side moves around to show that "enlarged" area covered by the box. I'm trying to avoid reinventing the wheel. I've found plenty of information on graphs and diagrams, but nothing close to what I need. Please help? Thanks!

    Here's something I played with for a while.import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    public class Test extends JFrame {
        String text = "Hi! I'm looking for pointers on how to develop a viewing\n"+
                "window for large graphs, otherwise called 'reference maps'\n"+
                "or 'reference diagrams'. For instance, you might have a\n"+
                "very large diagram that does not fit in your screen with a\n"+
                "very small version of it to one side. Over the small graph\n"+
                ", there would be a square box that you move around to\n"+
                "focus over to section of the graph. As you move the box,\n"+
                "the large diagram on the other side moves around to show\n"+
                "that \"enlarged\" area covered by the box. I'm trying to\n"+
                "avoid reinventing the wheel. I've found plenty of\n"+
                "information on graphs and diagrams, but nothing close to\n"+
                "what I need. Please help? Thanks!";
        JTextArea jta = new JTextArea(text);
        JScrollPane jsp = new JScrollPane(jta);
        JPanel p = new ReferencePanel(jsp);
        public Test() {
         setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
         Container content = getContentPane();
         content.setLayout(new GridLayout(1,2));
         content.add(jsp);
         content.add(p);
         setSize(300,200);
         show();
        public static void main( String args[] ) { new Test(); }
    class ReferencePanel extends JPanel {
        JScrollPane jsp;
        JScrollBar horiz, vert;
        Image img;
        public ReferencePanel(JScrollPane JSP) {
         jsp = JSP;
         horiz = jsp.getHorizontalScrollBar();
         vert = jsp.getVerticalScrollBar();
         jsp.getViewport().addChangeListener(new ChangeListener() {
             public void stateChanged(ChangeEvent ce) { updateView(); }
         jsp.getViewport().getView().addComponentListener(new ComponentAdapter() {
             public void componentShown(ComponentEvent ce) { updateView(); }
             public void componentResized(ComponentEvent ce) { updateView(); }
         addMouseListener(new MouseAdapter() {
             public void mousePressed(MouseEvent me) { setScrolls(me); }
        public void paint(Graphics g) {
         if (img!=null) g.drawImage(img, 0, 0, this);
        private void setScrolls(MouseEvent me) {
         vert.setValue(me.getY()*(vert.getMaximum()-vert.getVisibleAmount()/2)/getHeight());
         horiz.setValue(me.getX()*(horiz.getMaximum()-horiz.getVisibleAmount()/2)/getWidth());
        private void updateView() {
         Component c = jsp.getViewport().getView();
         if (c== null || c.getWidth()==0) return;
         Image i = c.createImage(c.getWidth(), c.getHeight());
         c.printAll(i.getGraphics());
         img = i.getScaledInstance(getWidth(), getHeight(), Image.SCALE_SMOOTH);
         repaint();
    }

Maybe you are looking for