Re: [Matplotlib-users] Status of Axes3d

2008-12-16 Thread David Warde-Farley
On 10-Dec-08, at 3:11 PM, Ryan Wagner wrote: > Hi Everyone, > Does anyone know the long term plans of fixing Axes3d / Mplot3D > in MPL? Is this ever going to be re-incorporated in this library in > the future? Just wondering… > -Ryan Wagner Oddly, this hasn't been answered, so I will, bu

Re: [Matplotlib-users] FancyArrowPatch without annotate

2008-12-16 Thread Jae-Joon Lee
Ken, On Wed, Dec 17, 2008 at 1:14 AM, Ken Schutte wrote: > This new FancyArrow stuff looks great, but I'm having trouble getting it to > work. All of the gallery examples I see seem to only use it thru an > 'annotate' call. I just want to draw these arrows directly. > > I tried the following, b

[Matplotlib-users] FancyArrowPatch without annotate

2008-12-16 Thread Ken Schutte
This new FancyArrow stuff looks great, but I'm having trouble getting it to work. All of the gallery examples I see seem to only use it thru an 'annotate' call. I just want to draw these arrows directly. I tried the following, but it just draws a plain line: ax = gca() c = matplotlib.patches.Fa

Re: [Matplotlib-users] int to matplotlib.colormaps value

2008-12-16 Thread Eric Firing
Aleš Čadež wrote: > First of all, thanks for helping me. What you wrote is not exactly what > i need. Let me show you an example: > > > > > > Now here are different size circles (biggest grey is »size=8«, other two > are »size=4«, and blue circles are size 2 and 1). I would like to color

Re: [Matplotlib-users] different PNG and PDF output...

2008-12-16 Thread John Hunter
On Tue, Dec 16, 2008 at 7:06 PM, Jae-Joon Lee wrote: > ps. John, are you releasing a new maintenance version? I'm afraid that > my previous patch broke one of the example. Sorry, I thought the fix > was obvious and didn't pay much attention. Yes, and I had just completed a round of testing when

Re: [Matplotlib-users] different PNG and PDF output...

2008-12-16 Thread Jae-Joon Lee
This should now be fixed (maintenance & trunk). John, I guess I found what I did wrong last time. I used emacs svn interface for committing and it seems that some of the properties are not properly committed. This time, I simply used the shell command. let me know if I messed up again. -JJ ps. J

Re: [Matplotlib-users] GMT-like color maps

2008-12-16 Thread Eric Firing
Michael Hearne wrote: > I'm trying to replicate the color-mapping behavior of the GMT package > with matplotlib/basemap and the imshow() function, and have run into a > problem. > > Using GMT you can assign colors to ranges of Z values, so that (for > example), Z values between 0 and 50 are giv

Re: [Matplotlib-users] [matplotlib-devel] os x egg fubar?

2008-12-16 Thread John Hunter
On Tue, Dec 16, 2008 at 3:17 PM, Christopher Barker wrote: >> > python myfile.py -dPS > > same error -- why does it need to use png at all with PS? Chris, Thanks for all the tests. The image module uses _png. Even the vector backends need raster images. We could move the import into the met

Re: [Matplotlib-users] [matplotlib-devel] os x egg fubar?

2008-12-16 Thread John Hunter
On Tue, Dec 16, 2008 at 3:59 PM, John Hunter wrote: > Just a quick comment -- the symbol _png_destroy_read_struct is not > defined in the png sources I am using (png_destroy_read_struct is). > Thus it looks like a C++ name mangling issue, probably introduced when > the mpl c++ includes and links

Re: [Matplotlib-users] [matplotlib-devel] os x egg fubar?

2008-12-16 Thread John Hunter
On Tue, Dec 16, 2008 at 2:25 PM, John Hunter wrote: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5.1-py2.5.egg/matplotlib/_png.so, >> 2): Symbol not found: _png_destroy_read_struct >> Referenced from: > > > Well, at least we have a *differen

Re: [Matplotlib-users] different PNG and PDF output...

2008-12-16 Thread Jae-Joon Lee
On Tue, Dec 16, 2008 at 4:02 PM, Jouni K. Seppänen wrote: > "Jae-Joon Lee" writes: > >> So, Lebostein and j, if you know how to check out using svn, can you >> give a try either the svn trunk or the maintenance branch? I'm >> attaching the patch just in case. > > On the svn trunk, the demo examp

Re: [Matplotlib-users] GMT-like color maps

2008-12-16 Thread Roger André
Hi Michael, I may be completely off my rocker here, but I think that you can define the range of Z values that the ramp should be applied to with the Normalize function. cmap = matplotlib.colors.LinearSegmentedColormap('my_colormap',cdict,256) norm = mpl.colors.Normalize(vmin=.0, vmax=1.0) I'm o

Re: [Matplotlib-users] [matplotlib-devel] os x egg fubar?

2008-12-16 Thread Christopher Barker
Another note: I was wrong, if I easy_install the egg without the -macosx from scratch, it fails with: Searching for matplotlib-0.98.5.1-py2.5 Reading http://pypi.python.org/simple/matplotlib-0.98.5.1-py2.5/ Couldn't find index page for 'matplotlib-0.98.5.1-py2.5' (maybe misspelled?) Scanning ind

[Matplotlib-users] GMT-like color maps

2008-12-16 Thread Michael Hearne
I'm trying to replicate the color-mapping behavior of the GMT package with matplotlib/basemap and the imshow() function, and have run into a problem. Using GMT you can assign colors to ranges of Z values, so that (for example), Z values between 0 and 50 are given a color interpolated between

Re: [Matplotlib-users] svn problems

2008-12-16 Thread Jouni K . Seppänen
Jörgen Stenarson writes: > __date__ = '$Date: 2008-12-15 21:46:00 +0100 (må, 15 dec 2008) $' > Does anyone know how I can force svn and tortoise svn to not include the > last part with the weekday? I'm not sure if svn always uses utf-8 if > that is the case then we could just add the encod

Re: [Matplotlib-users] different PNG and PDF output...

2008-12-16 Thread Jouni K . Seppänen
"Jae-Joon Lee" writes: > So, Lebostein and j, if you know how to check out using svn, can you > give a try either the svn trunk or the maintenance branch? I'm > attaching the patch just in case. On the svn trunk, the demo examples/api/legend_demo.py now fails at "leg.get_texts()" with "Attribut

Re: [Matplotlib-users] [matplotlib-devel] os x egg fubar?

2008-12-16 Thread John Hunter
On Tue, Dec 16, 2008 at 2:17 PM, Christopher Barker wrote: > However, once installed, I tried to run it, and got libpng issues -- > aaarrgg!: Could you also test the mpkg zip file -- I am curious if that shows the same png problems for you. JDH -

Re: [Matplotlib-users] symbol skip in plot command

2008-12-16 Thread John Hunter
On Tue, Dec 16, 2008 at 2:20 PM, Michael Oevermann wrote: > That's exactly what I was looking for! But how do I get the new feature > into my > matplotlib version? Either wait for the next release and use the workaround for now, or install from svn. See http://matplotlib.sourceforge.net/fa

Re: [Matplotlib-users] [matplotlib-devel] os x egg fubar?

2008-12-16 Thread John Hunter
On Tue, Dec 16, 2008 at 2:17 PM, Christopher Barker wrote: > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.5.1-py2.5.egg/matplotlib/image.py", > line 19, in >from matplotlib import _png > ImportError: > dlopen(/Library/Frameworks/Python.framew

Re: [Matplotlib-users] error installing matplotlib from egg

2008-12-16 Thread John Hunter
On Tue, Dec 16, 2008 at 2:13 PM, Michael Hearne wrote: > John - I get the same error at the end. I've been able to build the package > from the tarball successfully. Output follows: No, this is not the same. In the original post you had error: lib/matplotlib/mpl-data/matplotlib.conf.template

Re: [Matplotlib-users] symbol skip in plot command

2008-12-16 Thread Michael Oevermann
That's exactly what I was looking for! But how do I get the new feature into my matplotlib version? Michael John Hunter schrieb: > On Tue, Dec 16, 2008 at 10:30 AM, John Hunter wrote: > > >>> using in favour of matplotlib). Plotting the data twice- the first time >>> without >>> symbol showi

Re: [Matplotlib-users] [matplotlib-devel] os x egg fubar?

2008-12-16 Thread Christopher Barker
John Hunter wrote: > I've posted new eggs and a binary mpkg installer for OS X and a new > tarball. I've tried your egg renaming trick. Let me know how it > goes. well, when I tried: easy_install matplotlib-0.98.5.1-py2.5-macosx.egg it again did the sillyness of installing it, then going and d

Re: [Matplotlib-users] error installing matplotlib from egg

2008-12-16 Thread Michael Hearne
John - I get the same error at the end. I've been able to build the package from the tarball successfully. Output follows: sudo easy_install matplotlib-0.98.5.1-py2.5-macosx.egg Processing matplotlib-0.98.5.1-py2.5-macosx.egg removing '/Library/Python/2.5/site-packages/matplotlib-0.98.5.1-py2.5-

Re: [Matplotlib-users] error installing matplotlib from egg

2008-12-16 Thread John Hunter
On Mon, Dec 15, 2008 at 7:08 PM, Michael Hearne wrote: > I get the following output when trying to install the latest version of > matplotlib from an egg. I'm running Mac OS X 10.5.5. We've had a lot of trouble with our eggs. I am not sure this is all our fault, because it looks like some combi

Re: [Matplotlib-users] different PNG and PDF output...

2008-12-16 Thread Jae-Joon Lee
On Tue, Dec 16, 2008 at 12:17 PM, jkitchin wrote: > > I also observed this with eps output. The png looked fine, but the eps legend > was very large in my case. > > j > Hmm, it is not clear to me if this is a same issue. I think eps output is not very sensitive to dpi thing in matplotlib. I trie

Re: [Matplotlib-users] different PNG and PDF output...

2008-12-16 Thread Jae-Joon Lee
I just found my previous message was only sent to Lebostein. Anyhow, here is my original meesage. On Tue, Dec 16, 2008 at 10:38 AM, Jae-Joon Lee wrote: > Yes, I can see the differences. > Anyway, it seems to me the differences are primarily caused by > different dpi, not by different backend. >

Re: [Matplotlib-users] Can not build trunk on windows

2008-12-16 Thread John Hunter
On Tue, Dec 16, 2008 at 12:38 PM, Jörgen Stenarson wrote: > Hi > > I get the following error when I try to build matplotlib on a windows > machine. It builds fine if I comment out the offending line in setup.py. > > C:\python\external\matplotlib-trunk>python setup.py config > --compiler=mingw32 bu

[Matplotlib-users] svn problems

2008-12-16 Thread Jörgen Stenarson
Hi, I have a problem with svn. When updating trunk today I get the following from line 94 in matplotlib/__init__.py: __date__ = '$Date: 2008-12-15 21:46:00 +0100 (må, 15 dec 2008) $' As you can see there is a 'å' in the Date string but there is no encoding specified at the top of the file

[Matplotlib-users] Can not build trunk on windows

2008-12-16 Thread Jörgen Stenarson
Hi I get the following error when I try to build matplotlib on a windows machine. It builds fine if I comment out the offending line in setup.py. C:\python\external\matplotlib-trunk>python setup.py config --compiler=mingw32 build --compiler=mingw32 bdist Traceback (most recent call last): F

Re: [Matplotlib-users] int to matplotlib.colormaps value

2008-12-16 Thread Eric Firing
AlsCdz wrote: > Hello, i need you help! > I want to draw a plot with circles, which are coloured according to size. So > let's say we have a list=[1,3,5,7] that would give me four circles, first > very small, second bigger and so on. > Now i need a way to "convert" integers to color value which wo

Re: [Matplotlib-users] How to properly define lat/lon WGS84 in basemap module?

2008-12-16 Thread Roger André
Ahh, because I have labels and other text already drawn on the image. Squishing it alters the shape of the letters. And I have potentially many of these coming out of WMS requests where I know the image size and corner coords, but I can't alter the basic nature of the image. What I'd like to do i

Re: [Matplotlib-users] How to properly define lat/lon WGS84 in basemap module?

2008-12-16 Thread Jeff Whitaker
Roger André wrote: > Hi Jeff, > > I checked, and no the images are not geographically square. I wonder > if I could approach this problem in a different way. Would it be > possible for me to add tick marks and annotation to the image without > using the Basemap module alone? My thinking is th

Re: [Matplotlib-users] How to properly define lat/lon WGS84 in basemap module?

2008-12-16 Thread Roger André
Hi Jeff, I checked, and no the images are not geographically square. I wonder if I could approach this problem in a different way. Would it be possible for me to add tick marks and annotation to the image without using the Basemap module alone? My thinking is that I could bring the image into M

Re: [Matplotlib-users] different PNG and PDF output...

2008-12-16 Thread jkitchin
I also observed this with eps output. The png looked fine, but the eps legend was very large in my case. j Lebostein wrote: > > Hi, > > with the new version of matplotlib, the legend looks different in png and > pdf! > > I could post examples, but you can look in the galery also: > http://m

Re: [Matplotlib-users] symbol skip in plot command

2008-12-16 Thread John Hunter
On Tue, Dec 16, 2008 at 10:30 AM, John Hunter wrote: >> using in favour of matplotlib). Plotting the data twice- the first time >> without >> symbol showing every data point and the second time onlywith the symbol >> and some skip in the data - doesn't help as I now get two entities in >> the leg

Re: [Matplotlib-users] symbol skip in plot command

2008-12-16 Thread John Hunter
On Tue, Dec 16, 2008 at 10:09 AM, Michael Oevermann wrote: > Hi all, > > I am trying to find a solution to the following problem (without > success so far): > I have some high frequency data which I want to plot with a simple > plot command using a solid line and a symbol. However, since I have m

[Matplotlib-users] symbol skip in plot command

2008-12-16 Thread Michael Oevermann
Hi all, I am trying to find a solution to the following problem (without success so far): I have some high frequency data which I want to plot with a simple plot command using a solid line and a symbol. However, since I have many many data points I want to plot the symbol only every N'th data poi

Re: [Matplotlib-users] different PNG and PDF output...

2008-12-16 Thread Michael Droettboom
This looks like a dpi issue -- that is the only difference between the regular and hi-res png. Jae-Joon -- do you have any thoughts? Perhaps something is dpi-dependent in the new legend code where it shouldn't be? Mike Lebostein wrote: > Hi, > > with the new version of matplotlib, the legend

[Matplotlib-users] different PNG and PDF output...

2008-12-16 Thread Lebostein
Hi, with the new version of matplotlib, the legend looks different in png and pdf! I could post examples, but you can look in the galery also: http://matplotlib.sourceforge.net/gallery.html for example the legend_demo3 http://matplotlib.sourceforge.net/examples/pylab_examples/legend_demo3.html

[Matplotlib-users] int to matplotlib.colormaps value

2008-12-16 Thread AlsCdz
Hello, i need you help! I want to draw a plot with circles, which are coloured according to size. So let's say we have a list=[1,3,5,7] that would give me four circles, first very small, second bigger and so on. Now i need a way to "convert" integers to color value which would match matplotlib.cm

Re: [Matplotlib-users] sphinx mathmpl usage

2008-12-16 Thread Michael Droettboom
Angus McMorland wrote: >>> I get this error: >>> >>> writing output... index modules/calculate >>> /usr/lib/python2.5/site-packages/sphinx/ext/sphinxext/mathmpl.py:107: >>> Warning: Could not render math expression $lpha$ >>> Warning) >>> /usr/lib/python2.5/site-packages/sphinx/ext/sphinxext/mathm

Re: [Matplotlib-users] How to properly define lat/lon WGS84 in basemap module?

2008-12-16 Thread Jeff Whitaker
Roger André wrote: > Hi All, > > I have some square images which were generated via WMS requests. I > have imported them into Matplotlib via pil_to_array, and then display > them in a Basemap instance where I have defined the projection as: > > m = Basemap(projection='cyl', lon_0=lon_0, llcrnrlo