Zedgraph - determine length of tic on an axis ?

Posted by southof40 on Stack Overflow See other posts from Stack Overflow or by southof40
Published on 2010-04-06T04:33:27Z Indexed on 2010/04/06 4:43 UTC
Read the original article Hit count: 538

Filed under:
|
|

In Zedgraph building a line chart. I have some requirements for axes labels which can't be produced automatically so inspired by this other Stackoverflow answer I'm building a custom axis.

I can draw the Axis OK and I can place the labels but I want to draw my own tics. To do this I'd like to know the colour/pen width/size etc of the tics on the other axes.

Determining the colour and pen width are no problem but finding out the length of a tic is difficult (I mean how long is it drawn away from the axis).

I'm using a LineObj to draw the custom tics but I can't figure out how to long to draw them to match other non-custom tics .

Does anyone know where this is defined (or have a smarter way of drawing your own tics than using LineObjs ?)

© Stack Overflow or respective owner

Related posts about zedgraph

Related posts about .NET