Suggested revisions to multiple_yaxis_with_spines example

Greetings. I initially encountered some difficulty following the multiple_yaxis_with_spines example, especially regarding what the functions make_patch_spines_invisible and make_spine_invisible were doing to the par2 axes and why. For example, make_spine_invisible is really making one of the spines visible. I’d like to offer the attached modifications, which mainly simplify the manipulations and add explanatory comments. Minor changes include removing access to a global variable in make_patch_spines_invisible and removing a duplicated set_xlabel. The generated figure is unchanged.

multiple_yaxis_with_spines.patch (3.61 KB)

I push the new example in r8740.
Thanks.

-JJ

···

On Sat, Oct 9, 2010 at 12:15 AM, Stan West <stan.west@...595...> wrote:

Greetings. I initially encountered some difficulty following the
multiple_yaxis_with_spines example, especially regarding what the functions
make_patch_spines_invisible and make_spine_invisible were doing to the par2
axes and why. For example, make_spine_invisible is really making one of the
spines visible. I'd like to offer the attached modifications, which mainly
simplify the manipulations and add explanatory comments. Minor changes
include removing access to a global variable in make_patch_spines_invisible
and removing a duplicated set_xlabel. The generated figure is unchanged.

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel