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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Colouring Pixels

How do i colour specific pixels on the greyscale Intensity Charts? ie: in my 2D array, is there a specific operation i need to do on the required entries to make them coloured?
0 Kudos
Message 1 of 3
(2,350 Views)
Hi,
I'm not sure that i've understood you correctly, but the colour of the pixel in intensity graph is determined by the value of the element in your 2D array. If you want to change the color of the pixel with coordinates (i,j) you have to just replace array element in your 2D array with indecies (i,j).

Example is attached.

Good luck.

Oleg Chutko
0 Kudos
Message 2 of 3
(2,350 Views)
thanks for replying..but my problem is that i want to insert specific coloured pixels into a greyscale plot...or grey pixels into a colour plot. I need to be able to draw an arc on my 2D array in a different colour scheme to what the Intensity Chart uses
0 Kudos
Message 3 of 3
(2,350 Views)