Re: [matplotlib-devel] Hello - Seeking informations about how is working and how to modify the contour/contourf/imshow() functions in pyplot

2010-04-17 Thread Friedrich Romstedt
2010/4/16 David Kremer : > I would like to know how to find informations about how pyplot, imshow > and contourf, contour functions are working. Have a look at site-packages/matplotlib/axes.py in your Python distro, search for "def imshow" or "def contourf". You will be directed by the code in yo

Re: [matplotlib-devel] Building matplotlib on OS X

2010-06-08 Thread Friedrich Romstedt
Hi Michael, may it be that you used different compilers for compiling your FreeType2 and your matplotlib? [CC=gcc-4.2] It's nearly impossible to tell afterwards from the libraries. I was able to compile matplotlib (not the svn though) on OS X Snow Leopard /without/ using the make.osx script. O

Re: [matplotlib-devel] Adding more image format support...

2010-07-07 Thread Friedrich Romstedt
2010/7/6 Michael Droettboom : > One solution to this may be to add an optional dependency on PIL, and if > found save JPEG files (and maybe some of the other esoteric formats PIL > supports).  The work done a couple of years back to manage the supported > file types should make this pretty easy. I

Re: [matplotlib-devel] Adding more image format support...

2010-07-07 Thread Friedrich Romstedt
2010/7/7 Michael Droettboom : > Thanks for the offer.  In the meantime, I committed something myself for > this.  (I should have written back to the list, sorry...) > > I'd still be interested in seeing your patch in case there's something extra > or better in it that mine doesn't do. Ok, nice, he

Re: [matplotlib-devel] Toolbar Icon qt4_editor_options

2010-08-03 Thread Friedrich Romstedt
2010/8/3 Sebastian Voigt : > I've seen that NavigationToolbar2QT uses a mixture of svg and png icons. > All icons except the icon are provided in svg as > well as png format. Can you add a png version of this icon? I prepared a png 64x64 version of the icon using Inkscape. See attachment. Fried

Re: [matplotlib-devel] Toolbar Icon qt4_editor_options

2010-08-03 Thread Friedrich Romstedt
2010/8/3 John Hunter : > On Tue, Aug 3, 2010 at 3:29 PM, Friedrich Romstedt > wrote: >> I prepared a png 64x64 version of the icon using Inkscape.  See attachment. > > Our other pngs for icons are 24x24.  Can you provide on in that size

Re: [matplotlib-devel] Colormap that prints nicely in black and white

2010-08-09 Thread Friedrich Romstedt
2010/8/6 Benjamin Root : > Actually, I have been looking at a somewhat related problem.  It might be a > useful feature in matplotlib.color to provide a function that can take a > colormap and produce a grayscale version of it.  In my limited amount of > research, I have found that one could conver

Re: [matplotlib-devel] Colormap that prints nicely in black and white

2010-08-10 Thread Friedrich Romstedt
Ah, the list config got me ... (resending to list) 2010/8/10 Benjamin Root : > I am working on a function that can take a Colormap object and return a > grayscale form of it. Ideally, I would like to return the same type of > Colormap that was provided, but I am wondering if this is necessary. I

Re: [matplotlib-devel] backend_macosx framework check fails with 64bit Python

2010-08-10 Thread Friedrich Romstedt
2010/8/10 Derek Homeier : > Hi again, cc'ing the matplotlib list this time, > > for the latter: when building matplotlib against a fink-installed python > compiled in 64bit mode > I found the check for a framework-installed Python (rev 8365) fails, and > matplotlib fails to load, > because the MacO

Re: [matplotlib-devel] Colormap that prints nicely in black and white

2010-08-10 Thread Friedrich Romstedt
2010/8/10 Eric Firing : > On 08/10/2010 10:27 AM, Friedrich Romstedt wrote: >> So I think it is probably best to code it into the Colormap object >> itself, so that each and ever derived class can define its own method >> of how to create a greyscale version.  What do

Re: [matplotlib-devel] Colormap that prints nicely in black and white

2010-08-11 Thread Friedrich Romstedt
2010/8/11 Eric Firing : > Why make a whole new class instead of switching a behavior in an existing > class? To my understanding, making object having "behaviours" is usually not a good idea - I like different classes much more. I believe this is just a matter of taste, both solutions will work.

Re: [matplotlib-devel] Colormap that prints nicely in black and white

2010-08-11 Thread Friedrich Romstedt
http://www.youtube.com/watch?v=aa5eWT-J3v0 -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev __

Re: [matplotlib-devel] Colormap that prints nicely in black and white

2010-08-11 Thread Friedrich Romstedt
Sorry, forgot source code (you cannot run it, though). Friedrich test.py Description: Binary data -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http:/

Re: [matplotlib-devel] Colormap that prints nicely in black and white

2010-08-16 Thread Friedrich Romstedt
ods into module space? Ben, I fully agree with you that figures should be able to be saved both coloured and grayscale. It was a misunderstanding. What I meant was, that it will not be necessary to display one part of the figure in colour and the other in grayscale at the same time. Friedrich

Re: [matplotlib-devel] Colormap that prints nicely in black and white

2010-08-18 Thread Friedrich Romstedt
2010/8/18 Benjamin Root : > I had a thought... and it is based on my admittedly incomplete understanding > of matplotlib.  Everything that gets drawn is derived from the artist class, > right?  So, what if there was a 'grey' boolean in that base class, and the > .draw() function passes that bool do

Re: [matplotlib-devel] Colormap that prints nicely in black and white

2010-08-19 Thread Friedrich Romstedt
Hey, it's getting vivid! Nice! 2010/8/19 Benjamin Root : > Neat!  I have been sticking mainly to the front-end parts of matplotlib with > only a vague understanding of the backend/core pieces.  I am learning more > all the time. I'm diving sometimes into matplotlib code, but this is the deepest

Re: [matplotlib-devel] ANN: ThinWrap and ReMap

2010-09-15 Thread Friedrich Romstedt
2010/9/13 Benjamin Root : > On Tue, Aug 31, 2010 at 9:08 PM, Benjamin Root wrote: >> I have been working on a couple of interesting concoctions for >> matplotlib.  The first is a wrapper class called "ThinWrap" that, >> essentially, provides a way to create objects that are linked to a given >> ob

[matplotlib-devel] Is Tkinter-matplotlib using Threads?

2010-10-01 Thread Friedrich Romstedt
There were several question on the user's list in the recent past reporting hangs and similar when using TkAgg backend & interactive mode. It is known that Tkinter doesn't play well with threading, as long as one isn't done very carefully. It could be that matplotlib has implemented it in a way n

Re: [matplotlib-devel] Is Tkinter-matplotlib using Threads?

2010-10-10 Thread Friedrich Romstedt
2010/10/2 Eric Firing : > On 10/01/2010 09:40 AM, Friedrich Romstedt wrote: >> There were several question on the user's list in the recent past >> reporting hangs and similar when using TkAgg backend&  interactive >> mode. >> >> It is known that Tkinter

Re: [matplotlib-devel] Is Tkinter-matplotlib using Threads?

2010-10-11 Thread Friedrich Romstedt
Hello Eric and Fernando, thank you very much for your answers. It helped :-/ I think I was a bit too fast here. Eric, you are precisely right, I should have done more investigation before. I think this issue (my issue) should be clarified now. I was just alert by the feedback of other users a

Re: [matplotlib-devel] [Matplotlib-users] problem of cm.get_cmap('gist_rainbow', 256)

2010-10-18 Thread Friedrich Romstedt
at. First awaiting LittleBigBrain's test results. Friedrich 2010/10/18 LittleBigBrain : > 2010/10/18 Friedrich Romstedt : >> 2010/10/18 脑关(BrainGateway)生命科学仪器 : >>> On Mon, Oct 18, 2010 at 12:54 AM, Benjamin Root wrote: >>>> On Sun, Oct 17, 2010 at 5:35 PM, brainga

[matplotlib-devel] [PATCH] dysfunction in mpl.cm.get_cmap() (Reporter: LittleBigBrain)

2010-10-19 Thread Friedrich Romstedt
Hi As discussed recently I have a patch, see http://github.com/friedrichromstedt/matplotlib/commit/1ac794b362d143ac6a634b70993d950d8fe4adeb . I'd like to provide a patch in .patch format for this. But I don't know how to do this. Is it simply $git format-patch -1? The test suite passes except

Re: [matplotlib-devel] PATCH: fix libpng URLs for OS X makefile

2010-12-31 Thread Friedrich Romstedt
2010/12/10 Christopher Barker : > On 12/9/10 11:57 PM, Ludwig Schwardt wrote: >> This patch reminded me to ask why the builtin libpng, zlib and >> libfreetype on Mac OS 10.5 and later are not used to build Matplotlib, > > It may be because we still want to support OS-X 10.4 . I was not aware of th

Re: [matplotlib-devel] PATCH: fix libpng URLs for OS X makefile

2010-12-31 Thread Friedrich Romstedt
2010/12/10 Ludwig Schwardt : > For the record, I set the following environment variables in > ~/.profile on Snow Leopard: > >    # These compiler flags ensure 32-bit + 64-bit code generation, as > Snow Leopard produces 64-bit code by default >    export MACOSX_DEPLOYMENT_TARGET=10.6 >    export CFL

Re: [matplotlib-devel] PATCH: fix libpng URLs for OS X makefile

2010-12-31 Thread Friedrich Romstedt
2010/12/31 John Hunter : > I don't know what the situation is now, but the last version of OS X I > installed was 10.4 and X11 was a separate installation from xcode, if I > recall correctly.  Are you sure it is on by default? I'm not completely sure, but really quite sure. I don't think it's com

Re: [matplotlib-devel] [PATCH] dysfunction in mpl.cm.get_cmap() (Reporter: LittleBigBrain)

2011-01-03 Thread Friedrich Romstedt
2010/10/19 Friedrich Romstedt : > The test suite passes except for some failures on my 10.6 Mac OS X > with yesterday checked-out astraw github repo.  I'll send them in > another thread.  Let's keep tidy :-)  There's more than the symlog > error mentioned by Little

Re: [matplotlib-devel] matplotlib 1.0.1rc available for testing, building

2011-01-06 Thread Friedrich Romstedt
2011/1/4 Russell E. Owen : > I'm not sure what to do about 64-bit Python 2.7. It does not even > support Mac OS X 10.5 due to tcl/tk issues that I think were resolved > too late for python 2.7.1. In my opinion a matplotlib built against > ActiveState's Python 2.7 (which is 64-bit and supports 10.5

Re: [matplotlib-devel] Sierpinski's gasket example for Matplotlib

2011-01-07 Thread Friedrich Romstedt
2010/12/18 TRINATH ATMAKURI : > As part of Scipy India sprint I wrote a code for Sierpinski's gasket.  I > uploaded the file at the website http://gist.github.com.  The URL of the > code is: > >   https://gist.github.com/746409 > > Please let me know  if i need to made any changes before this is ac

Re: [matplotlib-devel] [PATCH] dysfunction in mpl.cm.get_cmap() (Reporter: LittleBigBrain)

2011-01-10 Thread Friedrich Romstedt
2011/1/8 Benjamin Root : > The changes look ok to me so far.  It looks to be mostly a re-organization > of existing logic and some consolidation of code.  My only concerns are the > creation of two new functions.  Besides the obvious issues with potential > namespace collisions in other parts of th

[matplotlib-devel] RFC Mac OS X

2011-01-21 Thread Friedrich Romstedt
Binaries: Build with static libs from most recent source distribution. Since we want a click-and-working installer, it's not effordable to request installing X11 (10.4) or similar. Home Builds: Libraries: 1) From X11. Seems to be the most simple way. 2) From most recent source distribution. Wh

[matplotlib-devel] git-svn matplotlib mirror

2011-01-22 Thread Friedrich Romstedt
Hi, I want to set up a git mirror for matplotlib, but I 1) have some minor problems and 2) want to know what others think about this. I'm a native git user and I don't know how to use svn properly. So I try everything to avoid svn. Furthermore, I like git so much that I don't want to give it up

Re: [matplotlib-devel] git-svn matplotlib mirror

2011-01-22 Thread Friedrich Romstedt
2011/1/22 Eric Firing : > This doesn't all have to be perfect; it just has to be good enough.  I > suspect your conversion is good enough.  If you are reasonably > confident, then I think that if you go ahead and set up a github repo as > the new official source tree, along with posting whatever no

Re: [matplotlib-devel] [PATCH] dysfunction in mpl.cm.get_cmap() (Reporter: LittleBigBrain)

2011-01-22 Thread Friedrich Romstedt
2011/1/22 Benjamin Root : > Finally got around to committing this.  I committed it to the maintenance > branch in r8933 and merged into the development branch in r8934. Okay, I agree on this, but I will work on it again once the git transition is complete, or similar. Thanks, Friedrich -

Re: [matplotlib-devel] git-svn matplotlib mirror

2011-01-23 Thread Friedrich Romstedt
2011/1/23 Benjamin Root : > Btw, if Friedrich hasn't been made a developer > yet, he has my vote (if he wants it). I feel very much honoured by this, it is a great belated Christmas gift, so I like it very much that you speak up for me, but currently I don't feel like a "core dev". Maybe, when ma

Re: [matplotlib-devel] matplotlib-grayscale

2011-11-09 Thread Friedrich Romstedt
2011/10/22 Eric Firing : > moved from matplotlib-users: > > http://sourceforge.net/mailarchive/forum.php?thread_name=CAN06%3DCx2zgh8YrnF2WRaJ%3D0E8i3ROLdYW4VuurtqKrx3mdkeEg%40mail.gmail.com&forum_name=matplotlib-users OK > On 10/22/2011 09:31 AM, Friedrich Romstedt wrote:

Re: [matplotlib-devel] trunk rev 8843 crash on Snow Leopard

2011-11-12 Thread Friedrich Romstedt
2010/12/21 Russell E. Owen : > I built a binary installer for matplotlib trunk rev 8843 (because it > leaks memory less than 1.0.0 release). I built it the same way I built > the 1.0.0 binary > l> on Mac OS X 10.4 using pyt

Re: [matplotlib-devel] [sage-devel] Re: OS X 10.6 port

2011-11-12 Thread Friedrich Romstedt
Hi Ondrej, Good things last and take time. 2010/4/13 Ondrej Certik : > I am now getting the exact same problem with pylab and FEMhub and Mac. > I used http://sagemath.org/packages/standard/matplotlib-0.99.1.p4.spkg: It might a different problem than just architecture mismatch. But maybe I'm get

Re: [matplotlib-devel] Using the Agg renderer by itself

2011-11-23 Thread Friedrich Romstedt
2011/11/23 Chris.Barker : > I've got some drawing to do (for a web app). I don't need all the MPL > machinery, but I do need a high quality, fast, renderer. http://www.effbot.org/zone/aggdraw-index.htm http://www.effbot.org/imagingbook/imagedraw.htm Don't know if this suffices your needs. Fried