取消
显示结果 
搜索替代 
您的意思是: 

Darren's Occasional Nugget 07/17/2014

Today's nugget has to do with Intensity Graphs and Intensity Charts. By default, they have a blue color map for the Z scale:

 

int1.png

 

If you want to reconfigure the colors, you can right-click any of the numbers in the Z scale and choose Marker Color. It is also possible to programmatically manipulate the scale with the Color Table property of the Intensity Graph/Chart. 

 

I have attached a VI below called Intensity Color Tables.vi that allows you to select between several pre-defined color maps for your Intensity Graphs and Charts. The VI generates the Color Table array that can be wired to the Color Table property. I think my favorite color map is "fire":

 

int2.png

 

Check out the demo VI (in LabVIEW 2009 or later) to see the Intensity Color Tables.vi in action.

1 条消息(共 5 条)
10,388 次查看

Awesome, thank you for posting!!

Rahul B.
0 项奖励
2 条消息(共 5 条)
10,179 次查看

And this shipping example shows an practical usage of this feature:

 

C:\Program Files (x86)\National Instruments\LabVIEW 2013\examples\Signal Processing\Transforms\STFT Spectrogram Demo.vi

Barp - Control, Simulation, RTT and HIL - National Instruments
0 项奖励
3 条消息(共 5 条)
10,096 次查看

I did something similar for a project I was working on

Randall Pursley
4 条消息(共 5 条)
6,442 次查看

(I know, old thread...)

 

I often work with greyscale image data and all I ever need to do is remove the middle marker from the default Z axis (and change the upper limit to 255). Poof, the blue disappears and all that's left is a linear gray scale!

5 条消息(共 5 条)
403 次查看