LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing colours of each line in Polar Plot

Hello!

 

I've been trying to find a way to differentiate between different vectors on a Polar Plot.    

I have a bunch of different waveforms, each with different phase and amplitude, and would like to either give them each their own colour, or alternatively, give them each a number label.

The picture plot VI gives me an option to draw in numbers on the graph, but with many vectors this could get messy fast.   

    

Does anyone know how to specify the colours of each vector? I read about something to do with Pen/Draw options deep in the low levels of the VI, but I have no idea where to find it or how to manipulate it.    

   

Any help is appreciated!

 

fr00tcrunch 

0 Kudos
Message 1 of 5
(3,725 Views)

Note that you can open the diagram of the "polar plot with point options" and inspect the code.

 

You can modify it and save it under a new name in your own user.lib. In particular, you could just duplicate the last VI in there (plot polar data) and use seperate data and color attributes for each instance (or put it in a FOR loop and iterate over an array data and colors, etc.).

0 Kudos
Message 2 of 5
(3,700 Views)

Hi Altenbach!

 

I found the VI you mentioned, and made my own copy of polar plot with points options for modification.

 

I can see how it'd maybe be possible to go through my array of waveforms using a loop, but I don't see how to seperate different instances of vectors/colouring. 

 

As far as I've understood it, the picture gets drawn all in one go once it knows which points it has to plot, so I'm not sure how to get it to do each point seperately. 

 

I've attached a simple example VI where I want to draw two vectors in different colours along with a modified polar plot data VI. Could you explain in a bit more detail how I can implent seperate colouring of these two lines?

 

Thank you.

Download All
0 Kudos
Message 3 of 5
(3,670 Views)

Hey,

 

This looks like a ready to use solution for your problem:

https://decibel.ni.com/content/docs/DOC-1067

 

This VI allows you to plot multiple polar plots on the same indicator with different colors

 

regards, Elli

0 Kudos
Message 4 of 5
(3,658 Views)

Hey Elli,

 

Ill check it out! Seems promising. Just gotta figure out how to implement it into my current code 🙂

Thank you

0 Kudos
Message 5 of 5
(3,650 Views)