LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

PlotText

I have a graph with multiple curves and wish to label the curves using PlotText such that the text is locally parallel with the curve.  Is there a way to set the angle at which the text is plotted?  Other alternatives?
0 Kudos
Message 1 of 3
(3,259 Views)

If you have CVI 8.5 or later, you can use the CreateMetaFontEx function to create an angled metafont, and then use that metafont in your PlotText call.

 

Another way to go (with CVI 8.0 or later) would be to use graph annotations instead of text plots, which seems a bit more suited for your purpose. In CVI 8.0, the annotation captions can't be angled, but in CVI 8.5 and later they can. You can configure the annotations in the UI editor or programmatically, using the AddGraphAnnotation function.

 

Luis

0 Kudos
Message 2 of 3
(3,254 Views)
Thanks.  The AddGraphAnnotation function will do the trick.
0 Kudos
Message 3 of 3
(3,248 Views)