[Tioga-users] Gridlines
Vincent Fourmond
fourmond at gmail.com
Sat May 3 03:08:22 EDT 2008
David MacMahon wrote:
> Thanks, Vincent! I was just typing another message saying that I think
> I found a fairly straightforward way to do it by using really long tick
> marks. It is not so generalized as yours as it requires the ticks to be
> both inside and not outside, but it does work with minor tick marks,
> too. Here's the text I was typing...
>
> I tried "t.xaxis_major_tick_length = t.bounds_height", but that did not
> work because xaxis_major_tick_length= expects a value in "units of the
> default text height". So then I tried...
>
> t.xaxis_major_tick_length = t.bounds_height / t.default_text_height_dy / 2
> t.yaxis_major_tick_length = t.bounds_width / t.default_text_height_dx / 2
>
> ...and it worked!
On down side, though: I think the grid belongs in the background of
the plot, while this trick puts it in the foreground (in front of the
plots), which is not fantastic for visibility ;-)...
Vincent
More information about the Tioga-users
mailing list