LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to write vertical text in the graph

Help plase
0 Kudos
Message 1 of 3
(2,653 Views)
I found no built-in feature to write vertical text in a graph.

One possible way of doing it is to save the bitmap of the text to write, rotate it and put on the graph with PlotBitmap.
The procedure should be as follows:
1. Place a text message outside the visible region of the panel in which lies the graph and write your text t it
2. Save the text written with GetCtrlDisplayBitmap
3. Rotate it (useful reference on bitmaps can be found in the on-line help for GetBitmapInfo and GetBipmapData functions) and finally
4. Put the bitmap on the graph with PlotBitmap and SetCtrlBitmap (look in the on-line help for the 'file name' parameter of the PlotBitmap function)

The most complicated but not impossible task in all of this is bitmap rotation. in case, I
can give you some function I wrote that can help you.

Hope this helps
Roberto


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 2 of 3
(2,653 Views)
Hi,
If you just create a text message... for example
"value" , you can display it in vertical wise when you hit after "v" CTRL+Enter, and so on...
0 Kudos
Message 3 of 3
(2,653 Views)