Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

How to draw text on an axis, and not on the plot area?

Dear all,

 

 

Regarding Scatter Graph.

 

I can draw some text on the plot area in the AfterDrawPlotArea event with e.Graphics.DrawString(...).

 

But how is it possible to draw text on the axes (X or Y)?

 

The enclosed screen dump shows a text (TEST) drawn at the bottom of the plot area,

but I would like it to be drawn approx. 20 pixel further down (on the X-axis).

 

Which event should I use for that?

 

Thanks in advance for any help!

 

 

0 Kudos
Message 1 of 3
(5,370 Views)

Hi PureNI

 

Wasn't it a possibility to draw it below the graph by using the position of the graph together with the hight of the graph? Like I showed you in the cursors example.

 

Best Regards

Anders Rohde

Applications Engineer

National Instruments Denmark

0 Kudos
Message 2 of 3
(5,353 Views)

Hi Anders,

 

The problem is not to position the custom drawing, but which event to use for the custom drawing.

0 Kudos
Message 3 of 3
(5,350 Views)