LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

colour in area underneath a curve on a polar plot

Hi i have made a VI that shows a curve on a line, i have also made a vi that outputs a mpeg video of the graph panning through all of its values, what i was wondering was if it was possible to fill in the area within a curve? I've managed to set the line colour, but i am unable to find anywhere that lets you set area colour.

Many thanks.

John P.

 

VI attatched, bits cluttered, but the polar plot is clearly visable at the center.

0 Kudos
Message 1 of 12
(3,843 Views)

Hi john,

             Can you attach your vi for lv 8.0?

0 Kudos
Message 2 of 12
(3,818 Views)
You need to save this as an llb file so we have all of the sub vi's. Do you want the top graph or the bottom graph to be filled in??
0 Kudos
Message 3 of 12
(3,807 Views)
You can fill in the plot on the XY graph by using the preoperty node, Plot->Fill To and Fill/Point colour. I believe you want to use the -2 value in Fill To to fill the area under the graph 🙂
_____________________________
- Cheers, Ed
0 Kudos
Message 4 of 12
(3,802 Views)

 Hi yeah its the polar plot i'm trying to fill under, it seems more difficult to track down in labview than filling an xy or 3d graph.

I'll put up the llb file tomorrow, sorry about that i forgot about the sub VIs were in there. - im not in work today sorry.

Thank you for the pointers so far.

John P.

0 Kudos
Message 5 of 12
(3,784 Views)

Open the polar plot demo file. Go to the block diagram and open the Polar Plot.vi. Then open the Polar Plot Data.vi from the block diagram. Inside this vi is a Draw Multiple lines.vi that has a Fill option that is defaulted to False. Change this constant to True and you can fill the polar plot from the line to the center point. It kind of sounds like you want the projection to the bottom axis of the polar plot filled in a vertical type of fill mode. Do you want to fill to the center point of the polar chart or down to the axis??

Message 6 of 12
(3,774 Views)

Very nice unclebump,

 

You get 5 stars for that oneSmiley Wink  To help people new with LabVIEW I decided to attach a picture showing you where to navigate to make the change.  You need to change the logic constant from false to true in the Polar Plot Data.vi (Labeled Polar Data) under the Polar Plot.vi (No Label just a picture of a polar plot).  The plot comes out filled because it is a multiple line graph drawn in a picture node with the line fill option on.

 

 

Regards,

 

-SS

 

 

Message Edited by ShotSimon on 08-27-2008 09:25 AM


Message 7 of 12
(3,769 Views)

Thank you to you both, i was sure it was possible, the polar plotting system is a bit like where's wally sometimes, you can find something once and never get to it again, i really apreciate both the method and the iamges of how to get there.

Thank you both!

john P.

0 Kudos
Message 8 of 12
(3,753 Views)

and it works beuticfally for videos too, grand.

One queary can you set one plot for fill to center point and one to stay as a line easily??

not assential but an interesting thought.

0 Kudos
Message 9 of 12
(3,752 Views)
It would take some modification. If NI would include the Fill option as a parameter, like the font options, then it would be fairly easy. Somewhere you should have a loop that provides two sets of data for the different lines. At that point you need to include the fill option setting. You will need to modify the sub VI's to include the Boolean Fill constant as an input to the vi. Seems like a good option for NI to include in the 8.6.1 version.
0 Kudos
Message 10 of 12
(3,739 Views)