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

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to