On Tuesday 30 August 2005 1:37 am, si...@sc... wrote:
> > Try increasing the tick.major.pad in your rc settings
>
> Much obliged, Darren, that was just what I needed. Another small
> imposition, if I may: I'm using twinx() to get a second y-axis for a plot.
> It works fine, except that the tick marks from the first axis are also
> present on the right-hand side, causing a bit of a mess. Is there a way to
> suppress printing the tick marks just for the right plot side? All the
> reading I've done leads me to believe that this is an all-or-nothing
> affair, as I can only suppress tick marks by setting yticks to the empty
> set, and this of course removes all the tick marks on that axis. Am I
> missing something obvious here? I noticed that the two_scales.py demo
> exhibits the same behaviour (juxtaposing the two sets of ticks on the right
> side).
try this:
plot([1,2,3,4])
gca().yaxis.tick_left()
twinx()
plot([11,12,13,14])
Darren
|