Re: [Matplotlib-users] MacOSX backend bug

2011-02-22 Thread Michiel de Hoon
It sounds like your Python is not a framework build. --Michiel. --- On Tue, 2/22/11, Dominique Orban wrote: > From: Dominique Orban > Subject: [Matplotlib-users] MacOSX backend bug > To: matplotlib-users@lists.sourceforge.net > Date: Tuesday, February 22, 2011, 1:48 PM > Hi there, > > $ uname

Re: [Matplotlib-users] mpl 1.0.1 + snow leopard + python 2.7

2011-02-22 Thread Michiel de Hoon
I have compiled matplotlib with a 64 bit Python on Mac OS X (using setup.py) for the MacOSX backend. It's not as hard as it may seem. You will need 64-bit (or multiple-architecture) libraries for zlib, libpng, etc. You may have those already; you can check that by running "file" on the library.

Re: [Matplotlib-users] mpl 1.0.1 + snow leopard + python 2.7

2011-02-22 Thread Gideon Simpson
Per a suggestion, I downgraded myself to the 32 bit python 2.7.1. I tried installing the 32 bit binaries from the website, but get the following: Python 2.7.1 (r271:86882M, Nov 30 2010, 09:39:13) [GCC 4.0.1 (Apple Inc. build 5494)] on darwin Type "help", "copyright", "credits" or "license" for

Re: [Matplotlib-users] mpl 1.0.1 + snow leopard + python 2.7

2011-02-22 Thread Gideon Simpson
That's right. python setup.py build seems to execute without a problem (though there were some warnings). But then I get an architecture issue. -gideon On Feb 22, 2011, at 4:54 PM, Darren Dale wrote: > On Tue, Feb 22, 2011 at 4:21 PM, Gideon Simpson > wrote: >> Here's the ouput I got: >> >>

Re: [Matplotlib-users] mpl 1.0.1 + snow leopard + python 2.7

2011-02-22 Thread Paul Ivanov
Gideon Simpson, on 2011-02-22 16:21, wrote: > Here's the ouput I got: > > Python 2.7.1 (r271:86882M, Nov 30 2010, 10:35:34) > [GCC 4.2.1 (Apple Inc. build 5664)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> import pylab > Traceback (most recent call la

Re: [Matplotlib-users] mpl 1.0.1 + snow leopard + python 2.7

2011-02-22 Thread Darren Dale
On Tue, Feb 22, 2011 at 4:21 PM, Gideon Simpson wrote: > Here's the ouput I got: > > Python 2.7.1 (r271:86882M, Nov 30 2010, 10:35:34) > [GCC 4.2.1 (Apple Inc. build 5664)] on darwin > Type "help", "copyright", "credits" or "license" for more information. import pylab > Traceback (most recent

Re: [Matplotlib-users] "ipython -pylab" fails but "from pylab import plot" works on mac?

2011-02-22 Thread Paul Ivanov
Matthias Wong, on 2011-02-17 20:56, wrote: > Hi all, > > It's exactly as said. I am using OS 10.6 > > If I use ipython -pylab and later try to plot anything, the GUI for plotting > launches and I just get a beachball. > > However, if I do ipython and then import plot, I can do a plot with no

Re: [Matplotlib-users] mixed_subplots_demo.py

2011-02-22 Thread Benjamin Root
On Tue, Feb 22, 2011 at 3:31 PM, Patton Bradford wrote: > Trying to get the referenced example from the mplot3d example web page > working with Python 2.6.1 on Windows XP. Naturally, the line: > > ax = fig.add_subplot(2, 1, 2, projection='3d') > > fails since '3d' is not a recognized projection.

[Matplotlib-users] mixed_subplots_demo.py

2011-02-22 Thread Patton Bradford
Trying to get the referenced example from the mplot3d example web page working with Python 2.6.1 on Windows XP.  Naturally, the line:   ax = fig.add_subplot(2, 1, 2, projection='3d')   fails since '3d' is not a recognized projection.  Now, if I want to just plot the 3d, the solution that works se

Re: [Matplotlib-users] mpl 1.0.1 + snow leopard + python 2.7

2011-02-22 Thread Gideon Simpson
Here's the ouput I got: Python 2.7.1 (r271:86882M, Nov 30 2010, 10:35:34) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import pylab Traceback (most recent call last): File "", line 1, in File "/Library/Frameworks/Py

Re: [Matplotlib-users] error: Setup script exited with error: command 'gcc' failed with exit status 1

2011-02-22 Thread Benjamin Root
On Tue, Feb 22, 2011 at 2:17 PM, M.Rule wrote: > Hello, I'm having trouble installing Matplotlib. Both easy_install and the > latest svn checkout give similar errors : http://pastebin.com/5g0RsdRx > > any ideas ? > > > --

Re: [Matplotlib-users] error: Setup script exited with error: command 'gcc' failed with exit status 1

2011-02-22 Thread M.Rule
installed: libfreetype6-dev libpng12-dev python-tk libgtk2.0-dev everything seems good, just need to configure GUI backend now, thanks. On Tue, Feb 22, 2011 at 3:22 PM, Darren Dale wrote: > On Tue, Feb 22, 2011 at 3:17 PM, M.Rule wrote: > > Hello, I'm having trouble installing Matplotlib. Bo

Re: [Matplotlib-users] error: Setup script exited with error: command 'gcc' failed with exit status 1

2011-02-22 Thread Darren Dale
On Tue, Feb 22, 2011 at 3:17 PM, M.Rule wrote: > Hello, I'm having trouble installing Matplotlib. Both easy_install and the > latest svn checkout give similar errors : http://pastebin.com/5g0RsdRx > any ideas ? You are missing headers from a number of critical libraries. Try using your package ma

[Matplotlib-users] error: Setup script exited with error: command 'gcc' failed with exit status 1

2011-02-22 Thread M.Rule
Hello, I'm having trouble installing Matplotlib. Both easy_install and the latest svn checkout give similar errors : http://pastebin.com/5g0RsdRx any ideas ? -- Free Software Download: Index, Search & Analyze Logs and othe

Re: [Matplotlib-users] Errorbar plot

2011-02-22 Thread Paul Ivanov
Waléria Antunes David, on 2011-02-22 16:17, wrote: > Hi Daniel, > > Yes, i tried import errorbari did this: import matplotlib.errobar , but > occurred an error: Exception Type: ImportError Exception Value: > > No module named errobar Hi Waléria, there was a typo in Daniel's reply. The fun

Re: [Matplotlib-users] tick format support for ``format``

2011-02-22 Thread Benjamin Root
On Tue, Feb 22, 2011 at 1:42 PM, Alan G Isaac wrote: > Am I overlooking tick format support for ``format``? > http://docs.python.org/library/functions.html#format > > If not, might it be added? > > Ordinarily I'd use FormatStrFormatter, but this time > I wanted percentages, so I had to (?) use Fu

Re: [Matplotlib-users] Dual Y-Axes on Imshow

2011-02-22 Thread Paul Ivanov
Jason Stone, on 2011-02-18 14:39, wrote: > Good afternoon all, > One last matplotlib question for the group for today. On one of my GUI > plots, I'm calling imshow on an array of data (to display it in the same way > MATLAB's imagesc command does). I'd like to add a second y-axis to the > right

[Matplotlib-users] tick format support for ``format``

2011-02-22 Thread Alan G Isaac
Am I overlooking tick format support for ``format``? http://docs.python.org/library/functions.html#format If not, might it be added? Ordinarily I'd use FormatStrFormatter, but this time I wanted percentages, so I had to (?) use FuncFormatter. This was both surprising (because ``format`` is core P

Re: [Matplotlib-users] Errorbar plot

2011-02-22 Thread Waléria Antunes David
Hi Daniel, Yes, i tried import errorbari did this: import matplotlib.errobar , but occurred an error: Exception Type: ImportError Exception Value: No module named errobar Thanks, On Tue, Feb 22, 2011 at 3:59 PM, < matplotlib-users-requ...@lists.sourceforge.net> wrote: > Send Matplotlib-

[Matplotlib-users] mpl 1.0.1 + snow leopard + python 2.7

2011-02-22 Thread Gideon Simpson
Hi, I have OS X 10.6.6, Python 2.7.1 installed from the binary at python.org, and I am trying to get mpl 1.0.1 running. I have no problem with numpy/scipy, but I seem to be having 32 vs. 64 bit issues with mpl. I believe that the binaries online are only 32 bit, yet my installation is 64 bit.

[Matplotlib-users] errorbar plot

2011-02-22 Thread Waléria Antunes David
Hi all, I have this line about errorbar plot, but i need a errorbar this: http://img14.imageshack.us/i/exampled.jpg/ (in blue) My line about errorbar: plt.errorbar(x, y, yerr=e, capsize=6, elinewidth=2, marker='_', linestyle='', markeredgecolor='r',color='r', label='Pontos') Can you help me? Th

Re: [Matplotlib-users] Plotting large data sets with Pylab

2011-02-22 Thread Benjamin Root
On Tue, Feb 22, 2011 at 10:30 AM, Bruno George wrote: > Dear Benjamin, > > Thanks for the observations. The speed wasn't as large of a concern as > the Python's ability to plot the volume of data in Windows.. The Mac was a > MacBook Air laptop, 1.8GHz Intel dual core 64 bit processor while the

Re: [Matplotlib-users] Errorbar plot

2011-02-22 Thread Daniel Mader
Hi Waléria, you should try to figure out the docstring help :) In a terminal (IDLE or IPython), just do import matplotlib matplotlib.errobar? This will show you extensive help on the command. You will also need to compare with the regular plot command: matplotlib.plot? Best regards, Daniel P.

[Matplotlib-users] Errorbar plot

2011-02-22 Thread Waléria Antunes David
Hi all, I have this line about errorbar plot, but i need a errorbar this: http://img14.imageshack.us/i/exampled.jpg/ (in blue) My line about errorbar: plt.errorbar(x, y, yerr=e, capsize=6, elinewidth=2, marker='_', linestyle='', markeredgecolor='r',color='r', label='Pontos') Can you help me? Th

Re: [Matplotlib-users] Histogram with single series - colour coding different ranges?

2011-02-22 Thread Benjamin Root
On Tue, Feb 15, 2011 at 11:07 PM, Victor Hooi wrote: > heya, > > Is there an easy way to colour-code a Matplotlib histogram with a single > set of data? > > So for example, you'd have a bell-shaped histogram, and the middle 50% > might be green, the regions 20% to the left and right of that might

Re: [Matplotlib-users] Plotting large data sets with Pylab

2011-02-22 Thread Benjamin Root
On Sun, Feb 20, 2011 at 9:22 PM, Bruno George wrote: > Both Python 2.6 and Python 2.7 Windows and Mac > > I've been running a very simple plotting script with Mac OSX 10.5.8 and > Windows XP Professional Version 2002, Service Pack 3 using a large, > 10,000,000 element .csv file. I ran both scri

Re: [Matplotlib-users] "ipython -pylab" fails but "from pylab import plot" works on mac?

2011-02-22 Thread Benjamin Root
On Thu, Feb 17, 2011 at 3:56 AM, Matthias Wong wrote: > Hi all, > > It's exactly as said. I am using OS 10.6 > > If I use ipython -pylab and later try to plot anything, the GUI for > plotting launches and I just get a beachball. > > However, if I do ipython and then import plot, I can do a plot w

Re: [Matplotlib-users] Plotting histogram with dictionary values

2011-02-22 Thread Benjamin Root
On Fri, Feb 18, 2011 at 9:13 AM, JamesTan12 wrote: > > Hi I have a list (Key values) with values I would like to plot to a > matplotlib histogram > > [('a', 155), ('c', 73), ('b', 19), ('e', 260), ('d', 73), ('g', 42), ('f', > 47), ('i', 175), ('h', 77), ('k', 7), ('j', 2), ('m', 76), ('l', 63),

Re: [Matplotlib-users] Matplotlib Widget in QT Question

2011-02-22 Thread Philipp A.
2011/2/18 Jason Stone > Good afternoon all, > I'm developing a GUI using QT Designer 4 and Python 2.7. The GUI will need > to have several plots on it in order to show the data in the ways that I > need. To accomplish this I'm using the matplotlib widget from within QT > Designer. It all seems

[Matplotlib-users] Histogram with single series - colour coding different ranges?

2011-02-22 Thread Victor Hooi
heya, Is there an easy way to colour-code a Matplotlib histogram with a single set of data? So for example, you'd have a bell-shaped histogram, and the middle 50% might be green, the regions 20% to the left and right of that might be yellow, and the 5% either side beyond that could be red. I cou

[Matplotlib-users] Plotting large data sets with Pylab

2011-02-22 Thread Bruno George
Both Python 2.6 and Python 2.7 Windows and Mac I've been running a very simple plotting script with Mac OSX 10.5.8 and Windows XP Professional Version 2002, Service Pack 3 using a large, 10,000,000 element .csv file. I ran both scripts locally with the data in the same local directory as the sc

[Matplotlib-users] Matplotlib Widget in QT Question

2011-02-22 Thread Jason Stone
Good afternoon all, I'm developing a GUI using QT Designer 4 and Python 2.7. The GUI will need to have several plots on it in order to show the data in the ways that I need. To accomplish this I'm using the matplotlib widget from within QT Designer. It all seems to work great, but I can't seem t

[Matplotlib-users] axis order in matplotlib?

2011-02-22 Thread Chris Paola
Can anyone help me understand this: the code below produces a plot in which the x and y axis labels are reversed relative to the direction in which z varies on the plot, although the gradient arrows are correctly oriented. Is there something I've missed in understanding the sense of the x and y

[Matplotlib-users] Plotting histogram with dictionary values

2011-02-22 Thread JamesTan12
Hi I have a list (Key values) with values I would like to plot to a matplotlib histogram [('a', 155), ('c', 73), ('b', 19), ('e', 260), ('d', 73), ('g', 42), ('f', 47), ('i', 175), ('h', 77), ('k', 7), ('j', 2), ('m', 76), ('l', 63), ('o', 174), ('n', 145), ('q', 3), ('p', 61), ('s', 153), ('r',

[Matplotlib-users] "ipython -pylab" fails but "from pylab import plot" works on mac?

2011-02-22 Thread Matthias Wong
Hi all, It's exactly as said. I am using OS 10.6 If I use ipython -pylab and later try to plot anything, the GUI for plotting launches and I just get a beachball. However, if I do ipython and then import plot, I can do a plot with no problem. I did a search but came up with nothing. I have th

Re: [Matplotlib-users] xscale and yscale

2011-02-22 Thread Alan G Isaac
On 2/22/2011 7:47 AM, Waléria Antunes David wrote: > I tried what Ben said: ax.set_ylim(bottom=1) ..., but changed nothing. Put it last, *after* all plotting. And since you won't be able to see your green line, don't plot it. --

Re: [Matplotlib-users] Building matplotlib py3k branch error

2011-02-22 Thread Michael Droettboom
First, the python3k branch is completely experimental and only about 10% complete. If your expectation is to have something that just works, you'll want to wait a while. We're hoping to hold a sprint next month to make some more progress on it. If you're hoping to help us out with it, great!

Re: [Matplotlib-users] xscale and yscale

2011-02-22 Thread Waléria Antunes David
Daniel, Thank you very muchthe yscale is correct now.this topic is resolved... Thanks On Tue, Feb 22, 2011 at 10:26 AM, Daniel Mader < danielstefanma...@googlemail.com> wrote: > Hi Waléria, > > in order to test it and help you without spending too much time on it, > could you please

Re: [Matplotlib-users] xscale and yscale

2011-02-22 Thread Daniel Mader
Hi Waléria, in order to test it and help you without spending too much time on it, could you please provide a stripped example which runs standalone? As a general rule you should set limits at the very end of the plotting code in order to prevent them from being superseded by another command! Th

Re: [Matplotlib-users] xscale and yscale

2011-02-22 Thread Waléria Antunes David
Do you want my complete code? Thanks, On Tue, Feb 22, 2011 at 10:17 AM, Mike Kaufman wrote: > Look, something about your dataset is most likely causing this problem. > Send me the 5 data series you are using for this code, and I will attempt to > reproduce the plot (and then show you how I did

Re: [Matplotlib-users] xscale and yscale

2011-02-22 Thread Waléria Antunes David
I tried what Ben said: ax.set_ylim(bottom=1) ..., but changed nothing. See my code: http://pastebin.com/Jt3BTp0C (line 14) See my image generated - attached. thanks, On Tue, Feb 22, 2011 at 9:37 AM, Mike Kaufman wrote: > send me your data. > > M > > > On 2/22/11 6:29 AM, Waléria Antunes David

Re: [Matplotlib-users] Can't produce plots using Matplotlib

2011-02-22 Thread Thomas Lecocq
Can you provide us with your script ? Thomas ** Thomas Lecocq Geologist Ph.D.Student (Seismology) Royal Observatory of Belgium ** > From: c...@ozemail.com.au > Date: Tue, 22 Feb 2011 21:05:48 +1100 > To: matplotlib-users@lists.sourceforge.net > Subje

Re: [Matplotlib-users] xscale and yscale

2011-02-22 Thread Waléria Antunes David
See this pdf attachedthe yscale has these values: 1, 10, 100, 1000 I need this. My code: http://pastebin.com/HKCGQWez Can you help me, please?? Thanks, On Mon, Feb 21, 2011 at 4:41 PM, Benjamin Root wrote: > > > On Mon, Feb 21, 2011 at 1:32 PM, Waléria Antunes David < > waleriantu...@gm

[Matplotlib-users] Can't produce plots using Matplotlib

2011-02-22 Thread Chris Edwards
Recently I downloaded and installed Python(x,y) Version 2.6.5.6 running under Windows7 and now can't produce the plots that my programs produced under an earlier version of Python(x,y). The programs seem to run correctly and produce the same numerical results but I can't find the graphical outpu

[Matplotlib-users] faq: reducing figure.figsize cuts off labels and tick marks

2011-02-22 Thread Daniel Mader
Hi, there has been a similar question recently but I couldn't figure out if or how this is solved: I'd like to reduce the figure size so that I can add it to a LaTeX document without scaling (PDF output with LaTeX font rendering). For that, I need to adapt the font sizes, too. Unfortunately, the

[Matplotlib-users] Building matplotlib py3k branch error

2011-02-22 Thread Markus1234
Hello everyone, I tried to build http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/branches/py3k/ with Python 3.1.3 and get the following error message (whole output in the attachement) In file included from CXX\IndirectPythonInterface.cxx:42:0: CXX\/Python3/IndirectPythonInterface.cxx: In

Re: [Matplotlib-users] using contourf to plot masked array

2011-02-22 Thread Eric Firing
On 02/21/2011 07:27 PM, Zhaoru Zhang wrote: > Hi, > >I tried to use contourf to plot an array in which the land values have > been masked. However, I found that contourf did not deal with the masking > properly. I would expect the masked region to be bounded by the separation > line of land