LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

XY Plot legend? Automatic color assignment

Does anyone know how to bring up a plot legend for single graphs (in particular with XYPlot) with multiple waveforms on it?
 
Also, any idea how to have program automatically assign different colors to your different plots?
 
Thanks!
0 Kudos
Message 1 of 5
(4,009 Views)
Hello, jcdd007!

Assuming you're using LabWindows/CVI (as opposed to LabVIEW) since we're in the CVI Forums, I think you should take a look at the shipping examples that comes included with CVI - there's one example in particular that will probably help you if you use it as the basis for your application.

Navigate on your machine to the <CVI Version>\Samples\userint directory and find the project called Graphs.prj.  Run this project and interact with the UIR - it includes examples of a lot of what you can do programmatically using CVI when it comes to graphs.

I hope this helps!


Message Edited by DRock on 06-06-2008 10:43 AM
Derrick S.
Product Manager
NI DIAdem
National Instruments
0 Kudos
Message 2 of 5
(3,992 Views)
Thanks for the info! I still can't find anything that will give me a legend. Any suggestions?
0 Kudos
Message 3 of 5
(3,877 Views)
Hey jcdd007,

That example that I pointed you to contains a legend, does it not?  Perhaps we're thinking of two different things when we think of the word "legend," so correct me if we're interpreting things in different manners.



In order to adjust the properties of the graph, double-click on the control on your *.UIR file.  In the "Control Appearance" section, there will be a button that allows you to access the Legend properties.



I hope this helps! 




Message Edited by DRock on 07-16-2008 10:16 AM
Derrick S.
Product Manager
NI DIAdem
National Instruments
Download All
0 Kudos
Message 4 of 5
(3,865 Views)
Hallo jcdd0007, which version of CVI are you using? As far as aI can remember the legend was introduced in version 7, so if you are using a previous vesion you won't see the functions related to legend.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 5 of 5
(3,841 Views)