[matplotlib-devel] Hardcoded 'extent' in Axes.matshow unnecessary?
Dear developers, I find the hard-coded "extent" in Axes.matshow limits the usability of this method and hence of pyplot.matshow, because passing "origin" does switch the order or the rows but does not switch the order of the y-axis labels, which I find is counter-intuitive and makes simple lower-left-origin plotting of matrices impossible, because row-numbers and y-labels are out of sync. To get the expected behaviour I have to force "extent" to "None" when calling matshow and let AxesImage.get_extent work which does the same calculations as done in Axes.matshow, but is origin-aware. It is called in the constructor of _AxesBaseImage. Are there strong reasons/use cases for this inconsistency between array-ordering and label-ordering? Or could this be changed in the future? Kind regards eike -- uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] Calling all Mac OSX users!
In article , Benjamin Root wrote: > The mpl developers are getting very close to the long-awaited v1.1.0 release > of matplotlib. Before we do so, we are doing some final checking of the > documentation to make sure that all critical pieces of information iss > correct and up to date. > > In checking over the instructions for building and installing matplotlib on > MacOSX, I have found two separate sets of instructions. On the install > page, there is a reference to a README.txt file in "release/osx". This file > is there, but it seems to refer to other files that no longer exists. > Meanwhile, there is an un-referenced file in the top directory called > README.osx that seems a lot more current. > > Because I do not have a Mac that I can use for development, I would like to > ask the community for help in determining the correct set of instructions > and to eliminate cruft. I think it would also be useful to point users to > any relevant instructions for installing/building numpy on Macs. I would > also like to make sure we are current with information on installing on a > stock Lion install. > > Please feel free to respond on this list, or better, make a branch on github > and submit pull requests to help us improve these documents. Building on MacOS X would be just like unix if setupext.py did not have the MacOS X-specific stuff commented out. The libraries are here on MacOS X: /usr/X11/lib/ for libpng and libfreetype /usr/lib/ for libz That would greatly simplify the readme files. That said, some Mac users like to use MacPorts, fink or similar software to install unix tools. I don't know what happens if those are used. One solution is to not search those directories by default and suggest that users edit setupext.py if they wish to use those versions. There are, or were, also files that create the Mac binary installers using "make". I suspect one of the readme files you are asking about refer to those files. I have no idea if those files still work. I make those binaries now, and I do it by hand. Last I looked, those files were in the repository, but for some reason were excluded from the source distribution. -- Russell -- Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] Calling all Mac OSX users!
On Mon, Aug 15, 2011 at 9:34 PM, Benjamin Root wrote: > The mpl developers are getting very close to the long-awaited v1.1.0 release > of matplotlib. Before we do so, we are doing some final checking of the > documentation to make sure that all critical pieces of information iss > correct and up to date. > > In checking over the instructions for building and installing matplotlib on > MacOSX, I have found two separate sets of instructions. On the install > page, there is a reference to a README.txt file in "release/osx". This file > is there, but it seems to refer to other files that no longer exists. > Meanwhile, there is an un-referenced file in the top directory called > README.osx that seems a lot more current. > > Because I do not have a Mac that I can use for development, I would like to > ask the community for help in determining the correct set of instructions > and to eliminate cruft. I think it would also be useful to point users to > any relevant instructions for installing/building numpy on Macs. I would > also like to make sure we are current with information on installing on a > stock Lion install. > > Please feel free to respond on this list, or better, make a branch on github > and submit pull requests to help us improve these documents. I wrote both of those files originally (make.osx and releases/osx/*). The original division of labor was the stuff in "releases" was designed to build the release binaries, and the stuff in make.osx was primarily used to build from svn or src. Overtime, most of the effort has gone into make.osx, and it now includes support for binaries. I no longer build the OSX binaries (Russell does) and no longer use OS X (back to ubuntu) so if Russell is not using the stuff in releases/osx, we can flush it. JDH -- Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] Hardcoded 'extent' in Axes.matshow unnecessary?
On 08/13/2011 08:05 AM, Eike von Seggern wrote: > Dear developers, > > I find the hard-coded "extent" in Axes.matshow limits the usability of > this method and hence of pyplot.matshow, because passing "origin" does > switch the order or the rows but does not switch the order of the y-axis > labels, which I find is counter-intuitive and makes simple > lower-left-origin plotting of matrices impossible, because row-numbers > and y-labels are out of sync. > > To get the expected behaviour I have to force "extent" to "None" when > calling matshow and let AxesImage.get_extent work which does the same > calculations as done in Axes.matshow, but is origin-aware. It is called > in the constructor of _AxesBaseImage. > > Are there strong reasons/use cases for this > inconsistency between array-ordering and label-ordering? Or could this > be changed in the future? It looks like you have found a historical artifact that can be improved as you suggest. I will take care of it. Eric > > Kind regards > eike > > -- > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: http://p.sf.net/sfu/wandisco-dev2dev > ___ > Matplotlib-devel mailing list > Matplotlib-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel -- Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] Calling all Mac OSX users!
On 08/16/2011 10:10 AM, John Hunter wrote: > On Mon, Aug 15, 2011 at 9:34 PM, Benjamin Root wrote: >> The mpl developers are getting very close to the long-awaited v1.1.0 release >> of matplotlib. Before we do so, we are doing some final checking of the >> documentation to make sure that all critical pieces of information iss >> correct and up to date. >> >> In checking over the instructions for building and installing matplotlib on >> MacOSX, I have found two separate sets of instructions. On the install >> page, there is a reference to a README.txt file in "release/osx". This file >> is there, but it seems to refer to other files that no longer exists. >> Meanwhile, there is an un-referenced file in the top directory called >> README.osx that seems a lot more current. >> >> Because I do not have a Mac that I can use for development, I would like to >> ask the community for help in determining the correct set of instructions >> and to eliminate cruft. I think it would also be useful to point users to >> any relevant instructions for installing/building numpy on Macs. I would >> also like to make sure we are current with information on installing on a >> stock Lion install. >> >> Please feel free to respond on this list, or better, make a branch on github >> and submit pull requests to help us improve these documents. > > I wrote both of those files originally (make.osx and releases/osx/*). > The original division of labor was the stuff in "releases" was > designed to build the release binaries, and the stuff in make.osx was > primarily used to build from svn or src. Overtime, most of the effort > has gone into make.osx, and it now includes support for binaries. I > no longer build the OSX binaries (Russell does) and no longer use OS X > (back to ubuntu) so if Russell is not using the stuff in releases/osx, > we can flush it. The releases/win32/ tree is also unmaintained since 0.99.0.rc1. Who does the Windows builds these days? Christophe? It would be nice to have a maintained record of how release builds are done, or better yet, up-to-date scripts that fully automate it. Eric > > JDH -- Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel