Color map scale for 3d graph

Hi
I have a 3d graph with x,y,z having the surface co-ordinates and w matrix having a value at each co-ordinate. I am trying to scale the color map applied. I know the color map values and and color numbers can be called from the property mode, but how to draw the scale so that it inidcates the color of corresponding values on w matrix.
Thanks
Ankit

Duplicate post see this thread
http://forums.ni.com/ni/board/message?board.id=170​&message.id=230349#M230349
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • 3d graph color map help for cvi

    I've plotted my data to a 3d graph using CW3DGraphLib.  The data I am most interested in is the highest 10%.  I can change the Z axis to only show this 10%, but the colors are all red.  I would like to modify the color map so it maps only the data that I set in the max and min scale.  90 to 100%.  Does anyone know how to do this?  Also, I am looking for any additional help files on the CW3DGraphLib.  When you click on the function panel it says no help file available.

    Hello Keith,
        I think the following forum will be helpful.
        http://forums.ni.com/t5/LabWindows-CVI/the-method-CW3DGraphLib-DCWGraph3DPlot3DCurve-does-not-work/t...
    Daniel

  • Time scale for wave graph form

    hi,
    I am doing a project in VS2005.net Basic and Measurement Studio 8, I would like to display one sampling data in wave graphics. I am using wavegraphform. But when I change sampling time, for example, 1 ms, 2ms or 5 ms. How can I display the corrected X Axis? Thank you very much!

    Howdy Yhong -
    What method are you using to plot to the waveformGraph object?   Assuming that you are using the PlotY method to plot your graph, which overloaded method are you using? 
    In general, there are a few things to consider with the XAxis.  First, you can access any XAxis object through the waveformGraph.XAxes collection.  From there you can set any XAxis property you would like in order to change the look of the graph to suite your needs.
    This problem also could be as simple as using the proper method for PlotY.  For Example, Ploty( double[] yData, double start, double increment); gives you the ability to specify the increment you would like to use for the XAxis.
    If you still need assistance, please let me know more on the specific method you are using, and what you would expect the XAxis to look like in the situation you describe in your post.
    Thanks
    and have a great day!
    Regards,
    Andrew W. || Applications Engineer
    National Instruments

  • How can I add a color bar scale to a CW3DGraph

    I am using the CW3Dgraph control (parametric surface plot) in a LabVIEW program I have written to graph the the strength of an electromagnetic field over a sphere.  The plot color map style is set to use the "color spectrum".  I would like to add a color bar scale to the graph so the user can determine the approximate field strength by the color of the plot.  Is there an example that could help me with this, does anyone know how to add a color bar scale, or is there some other way to indicate to the user the color's level?

    I think if you search this forum you will find more than one approach to this quest.In this thread you will find an earlier discusion of the same nature that has a couple of methods you can try out.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Button Color Mapping Difficulties

    Can somebody clarify the steps and settings I need to go through to make changes in a simple color mapping scheme for buttons on a menu? I've done it before, no problem, but for some reason this time when I make changes in the inspector, they are not reflected on the editor (or in the simulator, for that matter). I've got a background and overlay set, I set the colors in the menu inspector, created buttons, and the buttons do not show up the same colors as what are in the inspector. I switch between normal, selected, and activated states, but either no color shows up, or it is a totally different color altogether. As far as settings, I've got "display composite" selected. If anybody can tell me what setting or preference I've got out of whack, that would be helpful.
    Powerbook G4   Mac OS X (10.4.7)  

    Once you set an Overlay file the Key colors (check the Menu>Colors>Key) are what colors DVDSP is now affecting (e.g. so it's the Black that is being turned White).
    So, if your Overlay Layer is set so you want your Black Boxes to change color and your White background to disappear, you'll need to slide the Opacity to 0 next to the White Key box and the Opacity to 15 next to the Black Key box. Adjust the color next to the Black Key box and then click over to the Selected radial Selected State right above the Colors. Change the color of the Black buttons to whatever, and keep the Opacities the same as before.
    Make sense? It's hard for me to explain, so I fear I'm doing a poor job of it.
    ~Luke

  • Relative Time Scale for X-Axis when creating a Line Graph in CS3?

    Is there a way to get the APPROPRIATE RELATIVE scale for the X-Axis (Category) when you're using dates?
    Example:
    If this is my data set:
                        Group A          Group B
    01/03/99                1                5
    01/04/99                11                3
    01/05/99                6                12
    11/27/07                63                54
    If I plot this in Xcel, by default, each date (x-axis) will be spaced the same distance apart. However, there is a checkbox to "time-scale" the X-Axis which will place the dates relative to one another. In other words, if we're talking about a bar graph, the first three bars would be close together on the left side of the chart, and the 4th bar would be waaaaaay on the right side of the graph.
    So, below, if 'x' is a bar, I keep getting this in CS3:
    x     x     x     x
    I want to get this:
    x x x             x
    Get it?

    Is there a way to get the APPROPRIATE RELATIVE scale for the X-Axis (Category) when you're using dates?
    Example:
    If this is my data set:
                        Group A          Group B
    01/03/99                1                5
    01/04/99                11                3
    01/05/99                6                12
    11/27/07                63                54
    If I plot this in Xcel, by default, each date (x-axis) will be spaced the same distance apart. However, there is a checkbox to "time-scale" the X-Axis which will place the dates relative to one another. In other words, if we're talking about a bar graph, the first three bars would be close together on the left side of the chart, and the 4th bar would be waaaaaay on the right side of the graph.
    So, below, if 'x' is a bar, I keep getting this in CS3:
    x     x     x     x
    I want to get this:
    x x x             x
    Get it?

  • I don't know what is going on with the White Balance (WB) and LR.  I had no problem before but recently LR started to change the  WB as  it is importing photos.  I checked the color scale for my photos and LR and both are with sRGB.  Now instead of LR cha

    I don't know what is going on with the White Balance (WB) and LR.  I had no problem before but recently LR started to change the  WB as  it is importing photos.  I checked the color scale for my photos and LR and both are with sRGB.  Now instead of LR changing the WB it is giving me a second copy with a new WB.  Your advise is very much needed and appreciated.  Thank you.

    Can you show us a screen capture of this 2nd copy with a new WB in your Lightroom grid? Thanks
    Are these second copy photos by any chance photos that had been previously imported?

  • Saving color map from intesity graph to jpg

    Hi to all..
    I have 2D array ( of numbers) and I use intensity graph to convert the numbers to a color map.
    But I want to save this color map to jpg file (as image.. )
    How do I do that?
    Thanks
    Eruvi

    In that case, I would make a copy of the Intensity Graph, and deselect every option under the "Visible Items" right-click menu.  At that point, all that should be left would be the gray frame of the Intensity Graph.  At this point, you can use the Paintbrush Tool, right-click on the gray border, and choose the 'T' in the color picker to make it transparent.  At this point, your Intensity Graph should only show the colored graph region and nothing else.  Then you can use the method I described to export the image to disk.  I have attached a screenshot of a front panel of a VI with an Intensity Graph with all parts other than the graph region made non-visible.
    Hope this helps,
    -D
    Message Edited by Darren on 02-15-2006 11:00 AM
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman
    Attachments:
    int_graph.jpg ‏93 KB

  • Changing time scale for mixed signal graph

    I want to change time scale for mixed signal graph 1 day or  5 day of realities?

    And what exactly are you having problems with? If you want to use a property node, it's Xscale.Maximum.

  • How to set physical min/max values for a scale in xy graph?

    Hello,
    I have troubles with the way LabView handles physical units in xy graphs. In particular, I use a time scale for the x axis.
    The values are timestamps and have the unit [s]. Now I want to read write the min max values for this scale via
    property nodes. It seems that the properties for min max do not support the use of the unit I use for the data for
    that same axis. This is very inconvenient and I am not even sure which kind of data to use at all for this properties.
    Is it simply converting to/from [s] using the unit converter?
    (I am using LabView 7.1 for the programm in question).
    Thanks,
    Olaf

    Hi Olaf
    "It seems that the properties for min max do not support the use of the unit I use for the data for that same axis."  
    What are the units you are using? can you make it a littlebit clear.
    You can change the units also using Property node.
    Just check the attachment once. If that is what you are looking for, then the problem is solved.
    Regards
    Anil
    Message Edited by reddy on 05-23-2006 05:25 AM
    Message Edited by reddy on 05-23-2006 05:27 AM
    Attachments:
    X-Scale.jpg ‏8 KB

  • Changing color table for intensity graphs

    Hi, I've been working on superimposing intensity graphs and I'm almost getting it, I'm just having trouble with color table, it is suppose to be composed of a 1-D array of 256 colors
    I have 2 intensity graphs each with a different color table (256 color - 256 locations in the color table array). I need to "squeeze" both color table into a third color table for the superimposing of the 2 intensity graphs. therefore I figure I would take every other color value from each of the first 2 color tables (so each color table shrinks to 128 color) and add the values to form a 3rd color table so that the bottom will correspond to the first color table and the top will correspond to the 2nd color table.
    I can do this manually, but it takes WAY too long, so I've been trying to use some kinda of algorism, but I cannot succeed. Anyone have any suggestions? it seems that color table is an unusual kinda of array
    My attempted program is attached.
    thanks very much!!
    Attachments:
    superimposing3.vi ‏111 KB

    Brian,
    I think this is what you're after (attached). The easiest thing to do is to decimate, then concatenate your original color tables to form your new "squeezed" color table. However, keep in mind that you also have to squeeze, or remap, your underlying data values to correspond with either one half of the color table or the other.
    See if what I did makes sense.
    Regards,
    John
    Attachments:
    superimposing3_MOD.vi ‏90 KB

  • Is it possible to display the color map of a 3D Surface plot on the Front Panel?

    This would be a very useful feature to include, especially if you are just displaying the top-down (XY) projection of your plot (otherwise there's no way to visualize the amplitude that a given color represents). I know that the Intensity Graph allows you to display the Z-axis color map, but I want to use the 3D Graph control for some of the other features it offers...

    I had the same question. After quite a bit of playing around with properties, methods, color ramps, viewing examples and reading a bit about it, I discovered a way to do this. Basically use the ColorMapValues and ColorMapColors properties from the 3D graph and modify them slightly and feed these into the ZScale.Marker.Vals[] on an intensity chart or the Scale.MarkerVals[] on the color ramp. See the attached example.
    I think the diagram is self-documenting and pretty darn simple. I have a couple of notes on the front panel that help explain the vi.
    Good luck.
    Attachments:
    3D_Intensity_ColorMap_Example.llb ‏51 KB

  • Color Map not showing time-dependent change

    I am using the latest Sound and Vibration Measurement Suite in Signal Express.  I have a Spectral Map step in my program, which includes a Color Map.  I am recording an accelerometer's transient response to an impact, and want to see the time-dependent frequency intensity changes as a function of time, so a color map should be perfect.  I have no problem recording the accelerometer's transient response in a time graph, and I also see the power spectrum in another graph.  While the color map indeed shows various frequencies at different intensity levels, I don't see the intensity of any of the frequencies change over the course of the 200 ms that I'm recording, while the time graph clearly shows the decaying waveform.  Why doesn't the color map show a decrease in intensity of the respective frequencies as time progresses through the transient?  I have everything set up to display and record the first 200 ms of the impact.  At the end of this period, the intensity should go to almost zero.
    Please see the attached .seproj file to review the parameters I have set.
    Also, with the same .seproj file, I will occassionally get a Buffer Overflow error.  From this file, can you tell me what setting I need to change.  But I need to make sure that all data both displayed and recorded, is for the 200 ms timeframe specified (10 ms before the trigger and 190 ms after).  The ADC I'm using is an NI 9234 in a cDAQ-9172 chassis.
    Thanks,
    --Tim
    Attachments:
    golfclub_200ms_test.seproj ‏258 KB
    Log files.zip ‏200 KB

    Tim,
    I am trying to figure out where this would be able to recognize the changes since the data would be taken from an analysis of one .2 second signal. Have you tried to analyze more than the one signal taken in? When I ran this project I got the display on the bottom right to show one signal as having been read which makes sense when looking at the data. If you wanted to see the changes over the 200 ms timeframe I would have it run continuous DAQmx acquires for that timeframe. It appears the analysis that we see stays static because it is doing analysis of only one data set that came in. I would think that the change in time that you want to see would have to have analysis done on multiple sample sets to notice the differences from one set to the next. 
    Frank,
    National Instruments
    Staff Software Project Engineer

  • 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

  • Setting the series color of a bi beans graph based on the data values

    How do I conditionally set the series color of a bi beans graph based on the data values?
    I am using the following code to get the data values and set the series color:
    Graph gr=(Graph)CmdrDashboardP1_pres1.getView();
    DataAccess da=gr.getGraphModel().getDataAccess();
    DataDirector dd=gr.getDataDirector();
    DataMap dm=dd.getDataMap();
    int re=dd.ROW_EDGE;
    int ce=dd.COLUMN_EDGE;
    Object val=da.getValue(re,ce,dm.DATA_TYPE);
    int seriesCount=da.getEdgeCurrentSlice(DataDirector.ROW_EDGE);
    if (val <=45.0)
    gr.getSeries().setColor(new Color(255,0,0),seriesCount);
    I get a NullPointerException from the line of code "Object val=da.getValue(re,ce,dm.DATA_TYPE)." I have tried the code with DATA_UNFORMATTED as well, but get the same exception. When I print the DataMap value of dm the results are [dataUnformatted, dataViewFormat, value, dataIsTotal, dataType].
    Also, I get the error "method <= (java.lang.Object,double) not found in class _CmdrDashboardP1" from the "if (val <=45.0)" code.
    Thanks for any assistance

    How do I conditionally set the series color of a bi beans graph based on the data values?
    I am using the following code to get the data values and set the series color:
    Graph gr=(Graph)CmdrDashboardP1_pres1.getView();
    DataAccess da=gr.getGraphModel().getDataAccess();
    DataDirector dd=gr.getDataDirector();
    DataMap dm=dd.getDataMap();
    int re=dd.ROW_EDGE;
    int ce=dd.COLUMN_EDGE;
    Object val=da.getValue(re,ce,dm.DATA_TYPE);
    int seriesCount=da.getEdgeCurrentSlice(DataDirector.ROW_EDGE);
    if (val <=45.0)
    gr.getSeries().setColor(new Color(255,0,0),seriesCount);
    I get a NullPointerException from the line of code "Object val=da.getValue(re,ce,dm.DATA_TYPE)." I have tried the code with DATA_UNFORMATTED as well, but get the same exception. When I print the DataMap value of dm the results are [dataUnformatted, dataViewFormat, value, dataIsTotal, dataType].
    Also, I get the error "method <= (java.lang.Object,double) not found in class _CmdrDashboardP1" from the "if (val <=45.0)" code.
    Thanks for any assistance

Maybe you are looking for