10-28-2004 11:02 AM
10-28-2004 12:37 PM
10-28-2004 02:28 PM
10-25-2016 08:06 AM
12 years later, does anyone know how to do this?
10-25-2016 10:13 AM - edited 10-25-2016 10:14 AM
Hi,
It looks like LabVIEW doesn't give the ability to rotate a graph's cursor label. There's an idea submitted for it, though: https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Rotate-and-format-cursor-labels-on-graphs/idi-p/10110....
You can use a 2-D picture control, write rotated text to it, and move the pic to the location of the cursor. Here's a starting point for you:
You'll have to run with the ball with this code. It'll work as long as the X and Y scales are positive and you use the mouse to drag the cursor around. You'll have to take into account negative coordinates and scaling as the code tries to convert the graph's coordinates into front panel positions programmatically. It gets tricky as graph y coordinates are positive going up while front panel positions are positive going down.