[Matplotlib-users] matplotlib, build from source on osx 10.5.8

2009-08-06 Thread sasha
Hi All, i'm tring to install matplotlib (svn) on a fesh mac osc installation using the system python 2.5.1. but i have problems with freetype :-/ i compiled fretype from source without errors using this note : http://www.kyngchaos.com/macosx:build:freetype2 (but i also have a working freet

[Matplotlib-users] Issue with Matplotlib on Win32 and "ImportError: DLL load failed"

2009-08-06 Thread Patrick Rynhart
Dear all, We are using Python 2.5, matplotlib and NumPy on Windows to assist with the teaching for an undergraduate paper. On a small number of installations, an error attempting to load some required DLL's is being reported (on approx 3 machines out of approximately 60). There doesn't appear to

Re: [Matplotlib-users] Wrong download link for MPL 0.99?

2009-08-06 Thread John Hunter
On Thu, Aug 6, 2009 at 6:30 PM, Zane Selvans wrote: > For some reason the download link on the Matplotlib pages is pointing to > Basemap 0.99.4 instead of Matplotlib 0.99.0. Jeff, I don't know if this is a limitation in the new sf file manager interface or what, but it appears only 1 file project-

[Matplotlib-users] Wrong download link for MPL 0.99?

2009-08-06 Thread Zane Selvans
For some reason the download link on the Matplotlib pages is pointing to Basemap 0.99.4 instead of Matplotlib 0.99.0. I did a clean checkout of the v0_99_0 tag: svn checkout https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/tags/v0_99_0 and built/installed it, and that seems to have gone

[Matplotlib-users] Plotting errorbars with a color range / map

2009-08-06 Thread keflavich
I'd like to color-code an errorbar plot with colors determined by a 3rd array. I know how to do this with the 'scatter' task, but it does not appear to be possible with the 'errorbar' command. I think it is possible to set the colors of a collection to an array of colors, but I'm not very clear

Re: [Matplotlib-users] No legend using scatter function

2009-08-06 Thread Gökhan Sever
On Thu, Aug 6, 2009 at 12:02 PM, Jae-Joon Lee wrote: > > I'm not sure what exactly you're trying to do here. > > You mean something like this? > > > http://matplotlib.sourceforge.net/examples/pylab_examples/ellipse_collection.html > > The example uses EllipseCollection but scatter basically creat

Re: [Matplotlib-users] polar plot fills entire plot while drawing line, bug or feature?

2009-08-06 Thread Eric Firing
azerith wrote: > Hi, I'm new to matplotlib and in need to draw a single impulse on a polar > plot, but don't know how to do it, so i just draw a line using > pylab.polar([0,0],[0,100],'g-') > but when i draw shorter lines or > pylab.polar([0,0],[0,0],'g-') > i get the whole plot filled with green

[Matplotlib-users] polar plot fills entire plot while drawing line, bug or feature?

2009-08-06 Thread azerith
Hi, I'm new to matplotlib and in need to draw a single impulse on a polar plot, but don't know how to do it, so i just draw a line using pylab.polar([0,0],[0,100],'g-') but when i draw shorter lines or pylab.polar([0,0],[0,0],'g-') i get the whole plot filled with green color, instead of a single

[Matplotlib-users] placing xlabel in the correct place when using tick_top

2009-08-06 Thread Duncan Mortimer
Hi all, I'm trying to produce a graph in which two different sets of axes are superimposed, with both x- and y- ticks taking on different ranges. I've managed to get the first set of axes to place its ticks on the bottom and left of the figure, and the second set to place its ticks on the top and

Re: [Matplotlib-users] can't import _tkagg

2009-08-06 Thread Graham Mark
Yeow! You're right, and thanks a bunch. I saw the line about libtk not being found, of course, but I thought it was a lie. Or at least a mistake. Thanks again. On Aug 6, 2009, at 10:04 AM, Michael Droettboom wrote: > It appears to be importing _tkagg.so just fine, but it depends on > Tcl

Re: [Matplotlib-users] No legend using scatter function

2009-08-06 Thread Jae-Joon Lee
On Thu, Aug 6, 2009 at 1:13 PM, John Hunter wrote: > On Thu, Aug 6, 2009 at 11:47 AM, Jae-Joon Lee wrote: >> This turned out to be a bug introduced recently, which is now fixed in >> the 0.99 maintenance branch. >> The fix is not merged into the head yet. I tried svnmerge.py but it >> gave some mer

Re: [Matplotlib-users] No legend using scatter function

2009-08-06 Thread John Hunter
On Thu, Aug 6, 2009 at 11:47 AM, Jae-Joon Lee wrote: > This turned out to be a bug introduced recently, which is now fixed in > the 0.99 maintenance branch. > The fix is not merged into the head yet. I tried svnmerge.py but it > gave some merge conflict. While the conflict seems rather trivial, > I

Re: [Matplotlib-users] No legend using scatter function

2009-08-06 Thread Jae-Joon Lee
On Thu, Aug 6, 2009 at 12:54 PM, Gökhan Sever wrote: > Thanks JJ, > > I was playing with different ways to create legends, and found myself a way > just like you suggested. > > I guess in legend as long as a sequence is provided it doesn't matter > whether it is a tuple or list. Am I correct? > As

Re: [Matplotlib-users] No legend using scatter function

2009-08-06 Thread Gökhan Sever
Thanks JJ, I was playing with different ways to create legends, and found myself a way just like you suggested. I guess in legend as long as a sequence is provided it doesn't matter whether it is a tuple or list. Am I correct? Additionally, speaking of scatters; is there a way to add a colorbar

Re: [Matplotlib-users] No legend using scatter function

2009-08-06 Thread Jae-Joon Lee
This turned out to be a bug introduced recently, which is now fixed in the 0.99 maintenance branch. The fix is not merged into the head yet. I tried svnmerge.py but it gave some merge conflict. While the conflict seems rather trivial, I'll leave it to others. Meanwhile, you can explicitly give art

[Matplotlib-users] ANN: matplotlib 0.99.0

2009-08-06 Thread John Hunter
The 0.99.0 release of matplotlib is available for download. Lots of great new features and tons of bug fixes. Thanks to all the mpl developers for their contributions, and to Christoph Gohlke for the win32 builds, Russell Owen for the OSX testing and bug reports, William Stein for hosting the OSX

Re: [Matplotlib-users] detailed political boundaries & major cities for basemap

2009-08-06 Thread Jeff Whitaker
P.R. wrote: > Hi, > Im looking for a tutorial/method/dataset to setup more detailed political > boundaries & also automatically generate major cities on a basemap > projection. > > Please help, > Thanks, > P.R.M. > > P.R.: If you have ESRI shapefiles with political boundaries and/or city data,

Re: [Matplotlib-users] Basemap and UTM Coordinates

2009-08-06 Thread Jeff Whitaker
Anja Roesel wrote: > Dear list, > > I am a matplotlib newbie and I have some simple problems with the > coordinate reprojection. > > I have a landsat scene in UTM Projection and I would like to plot it in > a polarstereograhic projection (it is in the Arctic) > > I tried it like this: > m=Basemap(r

[Matplotlib-users] Basemap and UTM Coordinates

2009-08-06 Thread Anja Roesel
Dear list, I am a matplotlib newbie and I have some simple problems with the coordinate reprojection. I have a landsat scene in UTM Projection and I would like to plot it in a polarstereograhic projection (it is in the Arctic) I tried it like this: m=Basemap(resolution='i',projection='npstere',l

Re: [Matplotlib-users] can't import _tkagg

2009-08-06 Thread Michael Droettboom
It appears to be importing _tkagg.so just fine, but it depends on Tcl/Tk itself, notably libtk8.5.so, which it can not find. You can see what _tkagg.so depends on with ldd, eg.: > ldd ~/usr/lib/python2.5/site-packages/matplotlib/backends/_tkagg.so libtk8.4.so => /usr/lib/libtk8.4.so (0x

Re: [Matplotlib-users] 0.99.0-RC1 and the animation_blit_gtk2 example

2009-08-06 Thread Jae-Joon Lee
Christophe, Unfortunately, the background is always shifted by integer pixel. So, shift in data and shift in pixel have some offset and what you see is the accumulation of this offset. And you have to manage the pixel and and data coordinates in sync. For example, you may try to keep the original

Re: [Matplotlib-users] matplotlib and QT 4.5.2

2009-08-06 Thread Michael Droettboom
This log file appears to be truncated. Cheers, Mike Alexander Bruy wrote: >> Also, set the rcParam['verbose.level'] to 'debug-annoying' and send the >> output. That may provide some clues as to how the font lookup is failing. >> > > Here log file obtained on Linux box > > Regards, > Alexa

Re: [Matplotlib-users] matplotlib and QT 4.5.2

2009-08-06 Thread Michael Droettboom
It looks as if the statist package is passing a hard-coded font file path to matplotlib: C:/OSGeo4W/apps/qgis-dev/python/plugins/statist/font/CharisSILR.ttf because of the following line in the log: findfont returning C:/OSGeo4W/apps/qgis-dev/python/plugins/statist/font/CharisSILR.ttf Does

[Matplotlib-users] detailed political boundaries & major cities for basemap

2009-08-06 Thread P.R.
Hi, Im looking for a tutorial/method/dataset to setup more detailed political boundaries & also automatically generate major cities on a basemap projection. Please help, Thanks, P.R.M. -- Let Crystal Reports handle the r

Re: [Matplotlib-users] matplotlib and QT 4.5.2

2009-08-06 Thread Alexander Bruy
> Also, set the rcParam['verbose.level'] to 'debug-annoying' and send the > output. That may provide some clues as to how the font lookup is failing. Here log file obtained on Linux box Regards, Alexander Bruy -- реклама --- Поторопись з

Re: [Matplotlib-users] Subaxes

2009-08-06 Thread Jae-Joon Lee
The thread below might be helpful. http://thread.gmane.org/gmane.comp.python.matplotlib.general/16373 This will work as far as you keep the aspect="auto". Also, if you're using matplotlib 0.99rc version, or matplotlib from svn, you may take a look at http://matplotlib.sourceforge.net/mpl_toolki

[Matplotlib-users] can't import _tkagg

2009-08-06 Thread Graham Mark
I had to build matplotlib and many of its requirements in my home directory because I lack privileges to put stuff in /usr/local. So I build python-2.6.2, freetype-2.3.9, numpy-1.3.0, tcl-8.5.7, tk-8.5.7, and matplotlib-0.98.5.3. Each of those is in its own subdirectory in / home/gam/packa

Re: [Matplotlib-users] Subaxes

2009-08-06 Thread Matthias Michler
Hi Gaël, there might be a better way of doing it, but the attached example seems to do the job. best regards Matthias On Thursday 06 August 2009 10:46:44 Gael Varoquaux wrote: > Given an axes instance ax1, I would like to create another axes instance > ax2, embedded in the first one with a give

[Matplotlib-users] force aspect ratio in basemap

2009-08-06 Thread Alexander Barth
Hi all, I want to implement a web map server (WMS) using matplotlib/basemap. The client of WMS does specify the bounding box in lon/lat and width and height of the image. The spec requires that the server produces such images without blank spaces around the image. The image might thus have a wrong

[Matplotlib-users] Subaxes

2009-08-06 Thread Gael Varoquaux
Given an axes instance ax1, I would like to create another axes instance ax2, embedded in the first one with a given rectangle, in ax1 coordinates. For instance, I might want to create axes ax2 that sit in the top left corner of ax1, with height and width 0.25 times those of ax1. What is the righ