On Tue, 13 Feb 2007, Eric Emsellem wrote: > I would need the equivalent of twinx, but for other axis, so a "twiny" > function. Shouldn't it be in mpl already?
twiny() doesn't exist, but the source code of twinx() is in lib/matplotlib/pylab.py and it's about eight lines long, so it's easy enough to duplicate it, changing right to top, left to bottom, etc. See for example http://www.nabble.com/How-can-I-avoid-sharey-tick-ovelap--t2700831.html The one catch with this, practically, is that the "top" x axis is written in the same place as the plot title. I have yet to play with the placement of the title. ====================================================================== Office: 0.17 (Golm) Dr. John T. Whelan Phone: +49 331 567 7117 Albert-Einstein Institute FAX: +49 331 567 7298 Am Muehlenberg 1 http://www.aei.mpg.de/~whelan/ D-14476 Potsdam [EMAIL PROTECTED] [EMAIL PROTECTED] ====================================================================== ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users