Zedgraph - determine length of tic on an axis?
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 ?)
You said:
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).
but there are two properties of the MajorTic
you can use. From the documentation:
Size - The length of the major tic marks.
PenWidth - Gets or sets the pen width to be used when drawing the tic marks for this Axis
So where's the problem?
精彩评论