Hiding axis

Hi,

I’m using matplotlib to draw some generative art works. I’m trying to hide the axis but when I do that the lines that are over the axis are hidden as well, like this example: http://i.imgur.com/hKqMi.png

The code I’m using to generate those kind of random walk plots is here: https://gist.github.com/4164025

I already tried subplots_adjust, and set_alpha/set_visible on axis and spines but anything worked.

Any help?

Thank you so much.

···


Vilson Vieira

vilson@…4250…

((( http://automata.cc )))

((( http://musa.cc )))

((( http://labmacambira.sourceforge.net )))

I think your problem is with clipping. Try the no_clip function in
this thread [1] and see if that helps.

[1] http://matplotlib.1069221.n5.nabble.com/How-to-turn-off-all-clipping-td1813.html#a1814

Angus

···

On 28 November 2012 15:28, Vilson Vieira <vilson@...4250...> wrote:

Hi,

I'm using matplotlib to draw some generative art works. I'm trying to hide
the axis but when I do that the lines that are over the axis are hidden as
well, like this example: http://i.imgur.com/hKqMi.png

The code I'm using to generate those kind of random walk plots is here:
https://gist.github.com/4164025

I already tried subplots_adjust, and set_alpha/set_visible on axis and
spines but anything worked.

--
AJC McMorland
Post-doctoral research fellow
Neurobiology, University of Pittsburgh

2012/11/28 Angus McMorland <amcmorl@...287...>

I think your problem is with clipping. Try the no_clip function in
this thread [1] and see if that helps.

[1]
http://matplotlib.1069221.n5.nabble.com/How-to-turn-off-all-clipping-td1813.html#a1814

Hi Angus,

I tried the no_clip function but it didn't worked:

https://gist.github.com/4171341

Any idea?

Thank you.

···

--
Vilson Vieira

vilson@...4250...

((( http://automata.cc )))

((( http://musa.cc )))

((( http://labmacambira.sourceforge.net )))

Hi,

I tried the no_clip function but it didn't worked:
https://gist.github.com/4171341

I just edited your file :
https://gist.github.com/4203760

I made 2 changes:
* added a call to random.seed to make you code reproductible.
* altered the call to set_clip_on(False). It should be called on the
Line2D object returned by plot()

I think it solves your clipping problem.

Best,
Pierre

···

Le 29/11/2012 20:42, Vilson Vieira a écrit :

2012/12/4 Pierre Haessig <pierre.haessig@...1709...>

I just edited your file :
https://gist.github.com/4203760

I made 2 changes:
* added a call to random.seed to make you code reproductible.
* altered the call to set_clip_on(False). It should be called on the
Line2D object returned by plot()

I think it solves your clipping problem.

Pierre, it works perfectly! Thank you so much.

All the best.

···

--
Vilson Vieira

vilson@...4250...

((( http://automata.cc )))

((( http://musa.cc )))

((( http://labmacambira.sourceforge.net )))