Example Code

Changing Plot Color and Style of 3D Graph Using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.


  • LabVIEW

Code and Documents



This VI Changes Plot Color and Style of 3D Graph 



This VI shows the method of changing the properties of the color and style of a graph in a 3D picture control. The VI uses an input of 2 arrays of 0-399 for the Y and Z inputs, and a sine wave for the X input. These can obviously be changed, but their purpose is to show the functionality of the property nodes.



LabVIEW Full Development System 2012 or compatible


Steps to Implement or Execute Code

  1. Run the VI
  2. Provide ColorMapStyle, Line Color and background color
  3. See how the Plot changes

Additional Information or References

VI Block Diagram


Changing Plot Color and Style of 3D Graph LV2012 NI Verified BD.jpg

 **This document has been updated to meet the current required format for the NI Code Exchange. **



Chris Van Horn
Applications Engineer

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

NI Employee (retired)

Nice work Chris...I've been looking for this for a while. Happy Wiring!!