Text of discourse.matplotlib.org › t › hiding-axis › 17584 as Styx crawled it on Nov 19, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

Hiding axis - matplotlib-users - Matplotlib

Hiding axis Community matplotlib-users Vilson_Vieira November 28, 2012, 8:28pm 1 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 ))) _Angus_McMorland November 28, 2012, 9:06pm 2 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 < [email protected] ...> 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: question about matplotlib · GitHub 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 Vilson_Vieira November 29, 2012, 7:42pm 3 2012/11/28 Angus McMorland < [email protected] ...> 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: Any idea? Thank you. ··· -- Vilson Vieira [email protected] ... ((( http://automata.cc ))) ((( http://musa.cc ))) ((( http://labmacambira.sourceforge.net ))) Pierre_Haessig December 4, 2012, 1:20pm 4 Hi, I tried the no_clip function but it didn't worked: qplot2.py · GitHub I just edited your file : 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 : Vilson_Vieira December 4, 2012, 6:37pm 5 2012/12/4 Pierre Haessig < [email protected] ...> I just edited your file : qplot2.py · GitHub 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 [email protected] ... ((( http://automata.cc ))) ((( http://musa.cc ))) ((( http://labmacambira.sourceforge.net )))