Re: [Matplotlib-users] Install problems, OSX 10.6.8, Python 3.3.1

2013-07-17 Thread Scott Lasley
I am able to import matplotlib.pyplt under python 3.3.2 from www.python.org in OS X 10.6.8. matplotlib 1.2.1, libfreetype and libpng were built from source using gcc 4.2.1 from Xcode 3.2.6. Are you using python from macports or from www.python.org? You might try using python from the installer

Re: [Matplotlib-users] Matplotlib backend issue

2013-07-20 Thread Scott Lasley
On Jul 20, 2013, at 6:04 PM, Tommy Grav wrote: > On Jul 20, 2013, at 11:19 AM, Michiel de Hoon wrote: > >> Hi Tommy, >> >> Look inside the pyplot.py module. I don't have the code in front of me now, >> but I guess it's a module that loads a bunch of other modules, and one of >> those wants

Re: [Matplotlib-users] Failed pip install on OSX

2013-08-04 Thread Scott Lasley
On Aug 4, 2013, at 4:47 PM, Matthew Brett wrote: > Hi, > > Congratulations on the new release. > > I just tried installing in a fresh installation of Python 2.7 from Python.org > > Am I right in thinking the recommended method is: > >pip install matplotlib > > ? I did this, and then: >

Re: [Matplotlib-users] Failed pip install on OSX

2013-08-05 Thread Scott Lasley
On Aug 5, 2013, at 4:43 PM, Matthew Brett wrote: > Hi, > > On Sun, Aug 4, 2013 at 7:26 PM, Scott Lasley wrote: >> >> On Aug 4, 2013, at 4:47 PM, Matthew Brett wrote: >> >>> Hi, >>> >>> Congratulations on the new release. >>>

Re: [Matplotlib-users] building matplotlib 1.3 on OS X 10.8.4

2013-08-22 Thread Scott Lasley
On Aug 22, 2013, at 10:28 PM, James Boyle wrote: > I built MPL 1.3 from source, all seem to go OK but I ran into the problem of > not finding libfreetype.6.dylib when importing. > > On the web, I found references to this problem for builds on OS X. The > solutions refer to a file README.osx,

Re: [Matplotlib-users] multi colored text

2013-10-30 Thread Scott Lasley
On Oct 30, 2013, at 10:14, Neal Becker wrote: > I have a blue line plot and a green line plot. I'd like to add some figtext > at > the bottom, and I'd like the text colors to match the plot colors. So I'd > have > some text in blue and some in green. > > figtext only allows one color > >

Re: [Matplotlib-users] Color of masked values in pcolor plots

2013-12-01 Thread Scott Lasley
see http://matplotlib.1069221.n5.nabble.com/cmap-set-bad-not-showing-any-effect-with-pcolor-td27530.html On Dec 1, 2013, at 10:11 AM, lin.h...@europe.com wrote: > Hi, > > I m trying to plot some data with pcolor. The data should be plotted on a > ring. Inside and outside of the ring should be

Re: [Matplotlib-users] colorbllind problem

2014-02-17 Thread Scott Lasley
On Feb 17, 2014, at 1:15 PM, Gabriele Brambilla wrote: > Hi, > I'm dealing with a guy that is colorblind. > Have you got any suggestion on how could I show a plot like the one attached > to him? > Is there an option in pyplot that write little numbers near the curves > instead of colors? > >

Re: [Matplotlib-users] get_xlim of dates

2014-09-16 Thread Scott Lasley
On Sep 16, 2014, at 11:31 AM, Xiaobo Yang wrote: > Hi, > > My X axis represents dates. When I used get_xlim(), I got something like > 735461.0 and 735490.5. What are these values? How can I convert to python > date objects? > > Many thanks, > Tom See the matplotlib dates documentation at h

Re: [Matplotlib-users] imshow + pdf export + print = blurry on paper

2014-10-23 Thread Scott Lasley
You might try unchecking "Anti-alias text and line art" in the PDF panel in Preview's Preferences dialog to see if that helps. Best regards, Scott On Oct 23, 2014, at 8:49 PM, Frédéric Vogt wrote: > Interesting development of the issue described below, shared with the list > for legacy purpo

Re: [Matplotlib-users] savefig and StringIO error on Python3

2014-11-01 Thread Scott Lasley
This works for me with python 3.4.2 import matplotlib.pyplot as plt from io import BytesIO import base64 fig = plt.figure() ax = fig.add_subplot(111) ax.plot([1,2,3]) sio = BytesIO() fig.savefig(sio, format="png") html = """ """.format(base64.encodebytes(sio.getvalue()).decode()) For python

Re: [Matplotlib-users] savefig and StringIO error on Python3

2014-11-02 Thread Scott Lasley
deed, it works also for me with Python 3.3.5. > > Could you explain the changes you made and the reasons behind the byte/string > encoding ? > > Best regards, > > 2014-11-01 17:21 GMT+01:00 Scott Lasley : > This works for me with python 3.4.2 > > import matplo

Re: [Matplotlib-users] New OSX installers (beta)

2008-12-15 Thread Scott Lasley
Hello, I used your new beta installer to install matplotlib on a G5 running OS X 10.5.5. I tried the contour demo and got this error pylab_examples$ pythonw contour_demo.py Traceback (most recent call last): File "contour_demo.py", line 12, in import matplotlib.pyplot as plt File "

[Matplotlib-users] PyPI has version 1.0.1

2011-11-02 Thread Scott Lasley
Hi, I just noticed that PyPI lists matplotlib 1.0.1 as the latest version, so pip and easy_install install version 1.0.1 instead of version 1.1.0. Can somebody update the listing at the PyPI site? Thanks, Scott -- RSA(

[Matplotlib-users] Problem with axvline in gridspec with log Y axis

2012-09-13 Thread Scott Lasley
I get an error when trying to use axvline in a gridspec subplot when the Y axis is set to log scale in matplotlib 1.3.x (and I think recent 1.2.x versions) from github under python 2.7.3 and OS X 10.8.1. This worked with matplotlib versions from github earlier this year. Here is a simple code

Re: [Matplotlib-users] key_press_events on macosx

2013-06-05 Thread Scott Lasley
On Jun 5, 2013, at 2:51 PM, Matt Terry wrote: > Hi, > I'm working on a TextBox widget and have run into problems registering > key_press_events with the macosx backend. button_press_events work, but > key_press_events fail to trigger. If I change backends to tkAgg, everything > triggers as

Re: [Matplotlib-users] key_press_events on macosx

2013-06-05 Thread Scott Lasley
Jun 5, 2013, at 7:49 PM, Michiel de Hoon wrote: > The script works for me with matplotlib-1.2.1 both with Python2 and with > Python3 with the MacOSX backend. > To rule out the usual culprit, is your Python3 installed as a framework? > > Best, > -MIchiel. > > > - Orig