setting thickness of axis frame

Hi,

> I use:
>
> plt.gca().get_frame().set_linewidth(2)
>

That is not working for me. Is it working now for the OP?

Actually, I just went back and found a reply from Jae-Joon to a post of mine in November about this. He points out that get_frame() is deprecated, but that gca().frame.set_linewidth(2) should work. This is not working for me either now (it was at the time), and now that I notice, I am also unable to change the tick width the way I used to:

for tl in pp.gca().get_xticklines() + pp.gca().get_yticklines():
     tl.set_markeredgewidth(2)

...and I also can get invert_yaxis() (or xaxis) to work either.

I'm on windows, using 0.98.5, ang Qt4Agg backend. I get no warnings or errors. Does anyone have any ideas?

···

--
Christopher Brown, Ph.D.
Department of Speech and Hearing Science
Arizona State University

Actually, I just went back and found a reply from Jae-Joon to a post of
mine in November about this. He points out that get_frame() is
deprecated, but that gca().frame.set_linewidth(2) should work. This is
not working for me either now (it was at the time), and now that I
notice, I am also unable to change the tick width the way I used to:

for tl in pp.gca().get_xticklines() + pp.gca().get_yticklines():
    tl.set_markeredgewidth(2)

...and I also can get invert_yaxis() (or xaxis) to work either.

I'm on windows, using 0.98.5, ang Qt4Agg backend. I get no warnings or
errors. Does anyone have any ideas?

Christopher,

Everything works fine for me.
Can it be just that the canvas is not redrawn after you set the linewidth?
It will be helpful if you post a standalone script that reproduces your problem.
Regards,

-JJ

Hi Jae-Joon,

Everything works fine for me.
Can it be just that the canvas is not redrawn after you set the
linewidth? It will be helpful if you post a standalone script that
reproduces your problem. Regards,

Yes, this was the problem. I don't know why the same scripts were working before, but adding draw() now does the trick.

···

--
Christopher Brown, Ph.D.
Department of Speech and Hearing Science
Arizona State University