From: Daniel F. <fet...@go...> - 2008-04-20 09:26:10
|
On 4/19/08, Eric Firing <ef...@ha...> wrote: > Daniel Fetchinson wrote: > [...] > > Yes, this would be really useful. For the moment I'll just turn off > > all axis, I managed to do that. By the way is it possible to just turn > > off the axis and not the tick labels? > > In your example below you could try > graph.set_frame_on(False) > That will leave the ticks and the tick labels but remove the box and > the axes background, leaving the figure background (which you can set if > needed). If you also want to knock out the ticks, you can do this: > > tl = graph.xaxis.get_ticklines() > for t in tl: > t.set_visible(False) > > and similarly for yaxis. > > [...] > > Maybe I'm misunderstanding something but this doesn't really work as > > intended. I have this: > > > > figure = pylab.figure( ) > > figure.add_axes( [0,0,1,1] ) # this I added following your advice > > graph = figure.add_subplot(111) > > Replace the last two lines above with the single line: > graph = figure.add_axes( [0,0,1,1] ) > and the rest should work. > > Eric > Great, thanks very much! Cheers, Daniel |