One more time: frame linewidth

I have asked this question before. How do I set the linewidth of the axis frame? Long ago, I used gca().get_frame().set_linewidth(2). More recently, I used gca().frame.set_linewidth(2), but this doesn't seem to work anymore. I've tried gca().patch, to no avail. Any suggestions?

Thanks.

I guess you're using 0.99?
Use spines instead.

for example,

gca().spines["bottom"].set_linewidth(2) # it only changes the
linewidth of the bottom spine.

also, see this example,

http://matplotlib.sourceforge.net/examples/pylab_examples/spine_placement_demo.html#pylab-examples-spine-placement-demo

Regards,

-JJ

···

On Tue, Aug 18, 2009 at 5:18 PM, Christopher Brown<c-b@...1861...> wrote:

I have asked this question before. How do I set the linewidth of the
axis frame? Long ago, I used gca().get_frame().set_linewidth(2). More
recently, I used gca().frame.set_linewidth(2), but this doesn't seem to
work anymore. I've tried gca().patch, to no avail. Any suggestions?

Thanks.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Thank you, Jae-Joon. Again. :slight_smile:

···

On 8/18/2009 2:49 PM, Jae-Joon Lee wrote:

I guess you're using 0.99?
Use spines instead.

for example,

gca().spines["bottom"].set_linewidth(2) # it only changes the
linewidth of the bottom spine.

also, see this example,

http://matplotlib.sourceforge.net/examples/pylab_examples/spine_placement_demo.html#pylab-examples-spine-placement-demo

Regards,

-JJ

On Tue, Aug 18, 2009 at 5:18 PM, Christopher Brown<c-b@...1861...> wrote:

I have asked this question before. How do I set the linewidth of the
axis frame? Long ago, I used gca().get_frame().set_linewidth(2). More
recently, I used gca().frame.set_linewidth(2), but this doesn't seem to
work anymore. I've tried gca().patch, to no avail. Any suggestions?

Thanks.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. Â http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users