mpl tutorial: Controlling axes properties

Hi,

   I think the section Controlling axes properties of http://matplotlib.sourceforge.net/tutorial.html needs to be updated, since

   frame = gca(gca(), 'frame')
   setp(frame, 'linewidth', 2)

doesn't work any more with mpl 0.98.x ...

Manuel

Argg, the dreaded frame/patch rears it's ugly head. Eric, did you add
the deprecation warning? It seems to me we could use set/get frame to
set the frame attr and set/get patch to set the patch attr to support
people used to the matlab idiom as in the tutorial above.

···

On Wed, Aug 6, 2008 at 8:51 AM, Manuel Metz <mmetz@...459...> wrote:

  I think the section Controlling axes properties of
http://matplotlib.sourceforge.net/tutorial.html needs to be updated, since

  frame = gca(gca(), 'frame')
  setp(frame, 'linewidth', 2)

doesn't work any more with mpl 0.98.x ...

John Hunter wrote:

···

On Wed, Aug 6, 2008 at 8:51 AM, Manuel Metz <mmetz@...459...> wrote:

  I think the section Controlling axes properties of
http://matplotlib.sourceforge.net/tutorial.html needs to be updated, since

  frame = gca(gca(), 'frame')
  setp(frame, 'linewidth', 2)

doesn't work any more with mpl 0.98.x ...

Argg, the dreaded frame/patch rears it's ugly head. Eric, did you add
the deprecation warning? It seems to me we could use set/get frame to
set the frame attr and set/get patch to set the patch attr to support
people used to the matlab idiom as in the tutorial above.

Uh, I just noticed that the example couldn't have worked before :wink:

     frame = gca(gca(), 'frame') # fails
--> frame = getp(gca(), 'frame') #

:wink: