From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This VI Changes Plot Color and Style of 3D Graph 

 

Description

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.

 

Requirements

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.

Comments
G-Money
NI Employee (retired)
on

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