ticks pointing out?

Hello

I'd like to ask you how to make the ticks on the axes to protrude out
of the picture (I have a picture with some dark areas where the ticks
are virtually invisible; if the ticks were at least partially outside,
it would solve the problem).

Pavol Severa wrote:

Hello

I'd like to ask you how to make the ticks on the axes to protrude out
of the picture (I have a picture with some dark areas where the ticks
are virtually invisible; if the ticks were at least partially outside,
it would solve the problem).

Pavol,

In your matplotlibrc file you can set the tick direction:

...
xtick.direction : in # direction: in or out
...
ytick.direction : in # direction: in or out
...

Alternatively, interactively or within a script you can use:

rcParams['xtick.direction'] = 'out'
rcParams['ytick.direction'] = 'out'

Eric

Eric Firing wrote:

rcParams['xtick.direction'] = 'out'
rcParams['ytick.direction'] = 'out'

Not that I need this at the moment, but can you have them be both in and out?

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer
                                         
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...

Christopher Barker wrote:

Eric Firing wrote:

rcParams['xtick.direction'] = 'out'
rcParams['ytick.direction'] = 'out'

Not that I need this at the moment, but can you have them be both in and out?

Chris,

No, that would require changes to the present code.

Eric