You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
(12) |
Sep
(12) |
Oct
(56) |
Nov
(65) |
Dec
(37) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(59) |
Feb
(78) |
Mar
(153) |
Apr
(205) |
May
(184) |
Jun
(123) |
Jul
(171) |
Aug
(156) |
Sep
(190) |
Oct
(120) |
Nov
(154) |
Dec
(223) |
2005 |
Jan
(184) |
Feb
(267) |
Mar
(214) |
Apr
(286) |
May
(320) |
Jun
(299) |
Jul
(348) |
Aug
(283) |
Sep
(355) |
Oct
(293) |
Nov
(232) |
Dec
(203) |
2006 |
Jan
(352) |
Feb
(358) |
Mar
(403) |
Apr
(313) |
May
(165) |
Jun
(281) |
Jul
(316) |
Aug
(228) |
Sep
(279) |
Oct
(243) |
Nov
(315) |
Dec
(345) |
2007 |
Jan
(260) |
Feb
(323) |
Mar
(340) |
Apr
(319) |
May
(290) |
Jun
(296) |
Jul
(221) |
Aug
(292) |
Sep
(242) |
Oct
(248) |
Nov
(242) |
Dec
(332) |
2008 |
Jan
(312) |
Feb
(359) |
Mar
(454) |
Apr
(287) |
May
(340) |
Jun
(450) |
Jul
(403) |
Aug
(324) |
Sep
(349) |
Oct
(385) |
Nov
(363) |
Dec
(437) |
2009 |
Jan
(500) |
Feb
(301) |
Mar
(409) |
Apr
(486) |
May
(545) |
Jun
(391) |
Jul
(518) |
Aug
(497) |
Sep
(492) |
Oct
(429) |
Nov
(357) |
Dec
(310) |
2010 |
Jan
(371) |
Feb
(657) |
Mar
(519) |
Apr
(432) |
May
(312) |
Jun
(416) |
Jul
(477) |
Aug
(386) |
Sep
(419) |
Oct
(435) |
Nov
(320) |
Dec
(202) |
2011 |
Jan
(321) |
Feb
(413) |
Mar
(299) |
Apr
(215) |
May
(284) |
Jun
(203) |
Jul
(207) |
Aug
(314) |
Sep
(321) |
Oct
(259) |
Nov
(347) |
Dec
(209) |
2012 |
Jan
(322) |
Feb
(414) |
Mar
(377) |
Apr
(179) |
May
(173) |
Jun
(234) |
Jul
(295) |
Aug
(239) |
Sep
(276) |
Oct
(355) |
Nov
(144) |
Dec
(108) |
2013 |
Jan
(170) |
Feb
(89) |
Mar
(204) |
Apr
(133) |
May
(142) |
Jun
(89) |
Jul
(160) |
Aug
(180) |
Sep
(69) |
Oct
(136) |
Nov
(83) |
Dec
(32) |
2014 |
Jan
(71) |
Feb
(90) |
Mar
(161) |
Apr
(117) |
May
(78) |
Jun
(94) |
Jul
(60) |
Aug
(83) |
Sep
(102) |
Oct
(132) |
Nov
(154) |
Dec
(96) |
2015 |
Jan
(45) |
Feb
(138) |
Mar
(176) |
Apr
(132) |
May
(119) |
Jun
(124) |
Jul
(77) |
Aug
(31) |
Sep
(34) |
Oct
(22) |
Nov
(23) |
Dec
(9) |
2016 |
Jan
(26) |
Feb
(17) |
Mar
(10) |
Apr
(8) |
May
(4) |
Jun
(8) |
Jul
(6) |
Aug
(5) |
Sep
(9) |
Oct
(4) |
Nov
|
Dec
|
2017 |
Jan
(5) |
Feb
(7) |
Mar
(1) |
Apr
(5) |
May
|
Jun
(3) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
1
(6) |
2
(29) |
3
(19) |
4
(6) |
5
(5) |
6
(9) |
7
(9) |
8
(19) |
9
(14) |
10
(19) |
11
(26) |
12
(10) |
13
(26) |
14
(22) |
15
(19) |
16
(17) |
17
(16) |
18
(2) |
19
|
20
(1) |
21
(1) |
22
(10) |
23
(11) |
24
(17) |
25
(6) |
26
(1) |
27
|
28
(9) |
29
(9) |
30
(9) |
|
|
|
On Wed, Nov 2, 2011 at 10:02 PM, Benjamin Root <ben...@ou...> wrote: >> 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 > > And if somebody knows how, let me know so I can add it to the notes for the > developer section? I updated pypi, so please let us know if there are any more problems....
On Wednesday, November 2, 2011, Scott Lasley <sl...@sp...> wrote: > 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 And if somebody knows how, let me know so I can add it to the notes for the developer section? Ben Root
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
A self response: self.fig.colorbar(self.plot_data) does the trick. On Wed, Nov 2, 2011 at 11:14 AM, Gökhan Sever <gok...@gm...> wrote: > Hello, > > I slightly modified the example show at > http://www.scipy.org/Cookbook/Matplotlib/ScrollingPlot to plot image > data. My version of the code is at: > http://code.google.com/p/ccnworks/source/browse/trunk/various/scroll.py > > What is the correct way to add a colorbar to this plot? A simple > plt.colorbar(axes) yields no colorbar drawn. > > Thanks. > > -- > Gökhan > -- Gökhan
On 11/02/2011 05:09 PM, Mads Ipsen wrote: > Works like a charm. What about support for the Qt backend. Do I need any > Qt dev. env. installed or does it just rely on PyQt and Qt binaries > being present on the machine? > Just PyQt and Qt binaries should be enough -- there is no C/C++ code in matplotlib that needs to link to Qt directly. Mike
On Wed, Nov 2, 2011 at 5:43 PM, Wes McKinney <wes...@gm...> wrote: > On Wed, Nov 2, 2011 at 5:20 PM, John Hunter <jd...@gm...> wrote: >> On Wed, Nov 2, 2011 at 4:16 PM, Wes McKinney <wes...@gm...> wrote: >>> Hi guys, >>> >>> Is there a common practice for unit testing code that creates >>> matplotlib plots? I'm mainly just interested in code coverage versus >>> correctness (making sure the code *works*) for now. I guess one way >>> would be to disable the GUI backend so GUI elements don't get created >>> (if the user is running the test suite from inside IPython in pylab >>> mode, for example). Any tips or pointers to projects that do this >>> would be very helpful. >> >> We have a unit testing framework for comparing images against baseline >> images using PIL to compare "approximately close" at the rendering >> level. The code lives in matplotlib.testing and is triggered by >> matplotlib.test. >> >> It might be heavyweight for what you want, so if all you want to do is >> insure "it runs" just create some figures using the agg backend and >> call savefig. You can use the pyplot.switch_backends to switch >> backends if you are concerned about a user calling it from ipython in >> an interactive session. >> >> JDH >> >> JDH >> > > Cool, I think then just using switch_backends is what I want-- switch > to Agg in setUpClass and switch back to whatever backend was in use > before in tearDownClass. Will report back with any problems. > > thanks, > Wes > switch_backends appears to have no effect on OS X / mpl 1.0.1. Has this been worked on in matplotlib 1.1.0? I can always just skip MPL unit tests if the user if IPython is running and call mpl.use('Agg') otherwise.
On Wed, Nov 2, 2011 at 5:20 PM, John Hunter <jd...@gm...> wrote: > On Wed, Nov 2, 2011 at 4:16 PM, Wes McKinney <wes...@gm...> wrote: >> Hi guys, >> >> Is there a common practice for unit testing code that creates >> matplotlib plots? I'm mainly just interested in code coverage versus >> correctness (making sure the code *works*) for now. I guess one way >> would be to disable the GUI backend so GUI elements don't get created >> (if the user is running the test suite from inside IPython in pylab >> mode, for example). Any tips or pointers to projects that do this >> would be very helpful. > > We have a unit testing framework for comparing images against baseline > images using PIL to compare "approximately close" at the rendering > level. The code lives in matplotlib.testing and is triggered by > matplotlib.test. > > It might be heavyweight for what you want, so if all you want to do is > insure "it runs" just create some figures using the agg backend and > call savefig. You can use the pyplot.switch_backends to switch > backends if you are concerned about a user calling it from ipython in > an interactive session. > > JDH > > JDH > Cool, I think then just using switch_backends is what I want-- switch to Agg in setUpClass and switch back to whatever backend was in use before in tearDownClass. Will report back with any problems. thanks, Wes
On Wed, Nov 2, 2011 at 4:16 PM, Wes McKinney <wes...@gm...> wrote: > Hi guys, > > Is there a common practice for unit testing code that creates > matplotlib plots? I'm mainly just interested in code coverage versus > correctness (making sure the code *works*) for now. I guess one way > would be to disable the GUI backend so GUI elements don't get created > (if the user is running the test suite from inside IPython in pylab > mode, for example). Any tips or pointers to projects that do this > would be very helpful. We have a unit testing framework for comparing images against baseline images using PIL to compare "approximately close" at the rendering level. The code lives in matplotlib.testing and is triggered by matplotlib.test. It might be heavyweight for what you want, so if all you want to do is insure "it runs" just create some figures using the agg backend and call savefig. You can use the pyplot.switch_backends to switch backends if you are concerned about a user calling it from ipython in an interactive session. JDH JDH
Hi guys, Is there a common practice for unit testing code that creates matplotlib plots? I'm mainly just interested in code coverage versus correctness (making sure the code *works*) for now. I guess one way would be to disable the GUI backend so GUI elements don't get created (if the user is running the test suite from inside IPython in pylab mode, for example). Any tips or pointers to projects that do this would be very helpful. Thanks, Wes
Thanks, I think you are right about the datetimes for the x axis causing the problem. Does anyone have any ideas how to resolve this? On Thu, Nov 3, 2011 at 4:11 AM, Benjamin Root <ben...@ou...> wrote: > I have seen situations when using datetimes for the x axis where if all > the data being viewed is masked (or nans, or whatever) then it errors out > because the axis range can't be determined. Maybe that is what is > happening here? > > Ben Root > > > On Wed, Nov 2, 2011 at 11:48 AM, Michael Droettboom <md...@st...>wrote: > >> matplotlib should handle both masked arrays and arrays with NaNs and >> treat both the same. Can you reduce the script to something that can be >> run independently without data? It's not clear to me yet why this is >> failing. >> >> Mike >> >> >> On 11/01/2011 05:24 PM, questions anon wrote: >> >> Hi All, >> I am trying to plot time against mean daily temperature values. The >> problem is temperature contains no data in a few areas. I want to be able >> to ignore this and continue plotting. >> When I run the below script on my data that has all normal numbers it >> works fine but when I run the script on my data that has sections of 'no >> data' I receive the below error and the graph will not plot the trendline. >> Any suggestions on how I could fix this. >> Thanks >> >> *Warning (from warnings module): >> File "C:\Python27\lib\site-packages\numpy\ma\core.py", line 3785 >> warnings.warn("Warning: converting a masked element to nan.") >> UserWarning: Warning: converting a masked element to nan.* >> >> >> from netCDF4 import Dataset >> import matplotlib.pyplot as plt >> import numpy as N >> from mpl_toolkits.basemap import Basemap >> from netcdftime import utime >> from datetime import datetime >> import os >> from numpy import * >> import matplotlib.dates as mdates >> from numpy import ma as MA >> >> TSFCmeanall=[] >> timeall=[] >> time_intall=[] >> >> MainFolder=r"E:/GriddedData/T_SFC/1987/" >> for (path, dirs, files) in os.walk(MainFolder): >> for dir in dirs: >> print dir >> path=path+'/' >> >> for ncfile in files: >> if ncfile[-3:]=='.nc': >> ncfile=os.path.join(path,ncfile) >> ncfile=Dataset(ncfile, 'r+', >> 'NETCDF4') >> TSFC=ncfile.variables['T_SFC'][0:20] >> TIME=ncfile.variables['time'][0:20] >> >> fillvalue=ncfile.variables['T_SFC']._FillValue >> TSFC=MA.masked_values(TSFC, fillvalue) >> ncfile.close() >> >> for TSFC, TIME in >> zip((TSFC[:]),(TIME[:])): >> cdftime=utime('seconds since >> 1970年01月01日 00:00:00') >> ncfiletime=cdftime.num2date(TIME) >> timestr=str(ncfiletime) >> d = datetime.strptime(timestr, >> '%Y-%m-%d %H:%M:%S') >> date_string = >> d.strftime('%Y%m%d%H') >> time_int=int(date_string) >> >> TSFCmean=N.mean(TSFC) >> >> TSFCmeanall.append(TSFCmean) >> timeall.append(ncfiletime) >> time_intall.append(time_int) >> >> x=timeall >> y=TSFCmeanall >> x2=time_intall >> >> fig, ax=plt.subplots(1) >> >> z=N.polyfit(x2,y,1) >> p=N.poly1d(z) >> >> plt.plot(x,y) >> plt.plot(x,p(x2),'r--') #add trendline to plot >> >> fig.autofmt_xdate() >> ax.fmt_xdata=mdates.DateFormatter('%Y-%m-%d %H:%M:%S') >> plt.ylabel("Temperature C") >> plt.title("Mean Daily Temp") >> plt.show() >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> RSA® Conference 2012 >> Save 700ドル by Nov 18 >> Register now!http://p.sf.net/sfu/rsa-sfdev2dev1 >> >> >> >> _______________________________________________ >> Matplotlib-users mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> >> >> >> ------------------------------------------------------------------------------ >> RSA® Conference 2012 >> Save 700ドル by Nov 18 >> Register now! >> http://p.sf.net/sfu/rsa-sfdev2dev1 >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> > > > ------------------------------------------------------------------------------ > RSA® Conference 2012 > Save 700ドル by Nov 18 > Register now! > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > >
On 11/02/2011 09:46 PM, Christoph Gohlke wrote: > > On 11/2/2011 1:39 PM, Mads Ipsen wrote: >> On 11/02/2011 09:28 PM, Christoph Gohlke wrote: >>> On 11/2/2011 1:11 PM, Mads Ipsen wrote: >>>> On 11/02/2011 08:43 PM, Michael Droettboom wrote: >>>>> On 11/02/2011 01:34 PM, Mads Ipsen wrote: >>>>>> On 11/02/2011 05:50 PM, Michael Droettboom wrote: >>>>>>> On 11/02/2011 10:53 AM, Mads Ipsen wrote: >>>>>>>> Any clues to why ft2build.h cannot be located. The above docs says >>>>>>>> it should be part of the binary installer. >>>>>>> The binary for freetype is included with the installer, but the >>>>>>> headers (needed to build, but not to run) are not. Do you need to >>>>>>> build matplotlib from source, or just use it? >>>>>>> >>>>>>> Mike >>>>>> I need to built it from source. >>>>>> >>>>>> Mads >>>>> In that case, you will need to install the development packages for >>>>> freetype, libpng, libz, and numpy. >>>>> >>>>> I'm not a regular Windows user, so I don't know what the best practice >>>>> is for that these days. Some of the other members on this list can >>>>> hopefully jump in. There was also a thread on this list about >>>>> "Building on Windows" from 08/18/2011 that might be helpful. >>>>> >>>>> Mike >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> RSA(R) Conference 2012 >>>>> Save 700ドル by Nov 18 >>>>> Register now >>>>> http://p.sf.net/sfu/rsa-sfdev2dev1 >>>>> >>>>> _______________________________________________ >>>>> Matplotlib-users mailing list >>>>> Mat...@li...<mailto:Mat...@li...> <mailto:Mat...@li...> >>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>>> I can't seem to find this thread anywhere. It it really that difficult >>>> to build on Windows? It most be documented somewhere what the prereqs are? >>>> >>> See<http://sourceforge.net/mailarchive/message.php?msg_id=27961105> and >>> <http://matplotlib.sourceforge.net/users/installing.html#build-requirements> >>> >>> Prebuilt static link libraries for msvc compilers are available at >>> <http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib>. >>> >>> It seems you are trying to compile from within cygwin, using the include >>> files provided by cygwin. That will probably not work. >>> >>> Christoph >>> >>> >>> >>>> Best regards, >>>> >>>> Mads >>>> >>> ------------------------------------------------------------------------------ >>> RSA(R) Conference 2012 >>> Save 700ドル by Nov 18 >>> Register now >>> http://p.sf.net/sfu/rsa-sfdev2dev1 >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li...<mailto:Mat...@li...> >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> I am building from the VS2008 command prompt. But thanks for the info. >> Will have a look. >> >> Best regards, >> >> Mads > OK. The cygwin in your home path looked suspicious: "c:\cygwin\home\mads > ipsen\" > > Christoph > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save 700ドル by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users Works like a charm. What about support for the Qt backend. Do I need any Qt dev. env. installed or does it just rely on PyQt and Qt binaries being present on the machine? Best regards, Mads -- +-----------------------------------------------------+ | Mads Ipsen | +----------------------+------------------------------+ | Gåsebæksvej 7, 4. tv | | | DK-2500 Valby | phone: +45-29716388 | | Denmark | email: mad...@gm... | +----------------------+------------------------------+
On 11/2/2011 1:39 PM, Mads Ipsen wrote: > On 11/02/2011 09:28 PM, Christoph Gohlke wrote: >> On 11/2/2011 1:11 PM, Mads Ipsen wrote: >>> On 11/02/2011 08:43 PM, Michael Droettboom wrote: >>>> On 11/02/2011 01:34 PM, Mads Ipsen wrote: >>>>> On 11/02/2011 05:50 PM, Michael Droettboom wrote: >>>>>> On 11/02/2011 10:53 AM, Mads Ipsen wrote: >>>>>>> Any clues to why ft2build.h cannot be located. The above docs says >>>>>>> it should be part of the binary installer. >>>>>> The binary for freetype is included with the installer, but the >>>>>> headers (needed to build, but not to run) are not. Do you need to >>>>>> build matplotlib from source, or just use it? >>>>>> >>>>>> Mike >>>>> I need to built it from source. >>>>> >>>>> Mads >>>> In that case, you will need to install the development packages for >>>> freetype, libpng, libz, and numpy. >>>> >>>> I'm not a regular Windows user, so I don't know what the best practice >>>> is for that these days. Some of the other members on this list can >>>> hopefully jump in. There was also a thread on this list about >>>> "Building on Windows" from 08/18/2011 that might be helpful. >>>> >>>> Mike >>>> >>>> ------------------------------------------------------------------------------ >>>> RSA(R) Conference 2012 >>>> Save 700ドル by Nov 18 >>>> Register now >>>> http://p.sf.net/sfu/rsa-sfdev2dev1 >>>> >>>> _______________________________________________ >>>> Matplotlib-users mailing list >>>> Mat...@li... <mailto:Mat...@li...> <mailto:Mat...@li...> >>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> I can't seem to find this thread anywhere. It it really that difficult >>> to build on Windows? It most be documented somewhere what the prereqs are? >>> >> See<http://sourceforge.net/mailarchive/message.php?msg_id=27961105> and >> <http://matplotlib.sourceforge.net/users/installing.html#build-requirements> >> >> Prebuilt static link libraries for msvc compilers are available at >> <http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib>. >> >> It seems you are trying to compile from within cygwin, using the include >> files provided by cygwin. That will probably not work. >> >> Christoph >> >> >> >>> Best regards, >>> >>> Mads >>> >> ------------------------------------------------------------------------------ >> RSA(R) Conference 2012 >> Save 700ドル by Nov 18 >> Register now >> http://p.sf.net/sfu/rsa-sfdev2dev1 >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... <mailto:Mat...@li...> >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users > I am building from the VS2008 command prompt. But thanks for the info. > Will have a look. > > Best regards, > > Mads OK. The cygwin in your home path looked suspicious: "c:\cygwin\home\mads ipsen\" Christoph
On Wed, Nov 2, 2011 at 3:33 PM, Sandro Tosi <mo...@de...> wrote: > On Wed, Nov 2, 2011 at 21:00, Benjamin Root <ben...@ou...> wrote: > > On Wed, Nov 2, 2011 at 2:50 PM, Sandro Tosi <mo...@de...> wrote: > >> > >> On Wed, Nov 2, 2011 at 20:39, Michael Droettboom <md...@st...> > wrote: > >> > I'm not able to reproduce this, but I've seen similar issues in the > >> > past. Can you tell me if this patch fixes it for you? > >> > >> Nope, it doesn't. > >> > > > > Just yesterday, I started getting a crash-on-exit error for GTK. The > only > > thing I changed was to update my system-wide packages, which I think > > included some updates for gtk-related things. Maybe something there > broke > > something? > > Oh sure, it could be - I just wanted to state that also on Debian we > have a similar problem than the one on Mac OS X, the tricky part is > identify what that is :) > > Cheers, > Here is what got updated yesterday from my logs: Nov 01 09:37:29 Updated: gtk2-2.24.7-1.fc15.x86_64 Nov 01 09:37:32 Updated: initscripts-9.30.1-1.fc15.x86_64 Nov 01 09:37:33 Updated: sssd-client-1.5.14-3.fc15.x86_64 Nov 01 09:37:33 Updated: libipa_hbac-1.5.14-3.fc15.x86_64 Nov 01 09:37:54 Updated: selinux-policy-3.9.16-44.fc15.noarch Nov 01 09:38:22 Updated: selinux-policy-targeted-3.9.16-44.fc15.noarch Nov 01 09:38:24 Updated: sssd-1.5.14-3.fc15.x86_64 Nov 01 09:38:25 Updated: 1:microcode_ctl-1.17-19.fc15.x86_64 Nov 01 09:38:25 Updated: gtk2-immodule-xim-2.24.7-1.fc15.x86_64 Nov 01 09:38:27 Updated: gtk2-devel-2.24.7-1.fc15.x86_64 Nov 01 09:38:30 Updated: firefox-7.0.1-3.fc15.x86_64 Nov 01 09:38:32 Updated: gtk2-devel-docs-2.24.7-1.fc15.x86_64 Nov 01 09:38:33 Updated: gdb-7.3.1-45.fc15.x86_64 Nov 01 09:38:43 Updated: system-config-date-1.9.67-1.fc15.noarch Nov 01 09:38:44 Updated: gnome-shell-3.0.2-6.fc15.x86_64 Nov 01 09:38:45 Updated: latexmk-4.27a-1.fc15.noarch Nov 01 09:38:45 Updated: 1:obex-data-server-0.4.6-1.fc15.x86_64 So, I see gtk2-2.24.7-1, which looks like a bug-fix release. Maybe this is helpful? Ben Root
On 11/02/2011 09:28 PM, Christoph Gohlke wrote: > > On 11/2/2011 1:11 PM, Mads Ipsen wrote: >> On 11/02/2011 08:43 PM, Michael Droettboom wrote: >>> On 11/02/2011 01:34 PM, Mads Ipsen wrote: >>>> On 11/02/2011 05:50 PM, Michael Droettboom wrote: >>>>> On 11/02/2011 10:53 AM, Mads Ipsen wrote: >>>>>> Any clues to why ft2build.h cannot be located. The above docs says >>>>>> it should be part of the binary installer. >>>>> The binary for freetype is included with the installer, but the >>>>> headers (needed to build, but not to run) are not. Do you need to >>>>> build matplotlib from source, or just use it? >>>>> >>>>> Mike >>>> I need to built it from source. >>>> >>>> Mads >>> In that case, you will need to install the development packages for >>> freetype, libpng, libz, and numpy. >>> >>> I'm not a regular Windows user, so I don't know what the best practice >>> is for that these days. Some of the other members on this list can >>> hopefully jump in. There was also a thread on this list about >>> "Building on Windows" from 08/18/2011 that might be helpful. >>> >>> Mike >>> >>> ------------------------------------------------------------------------------ >>> RSA(R) Conference 2012 >>> Save 700ドル by Nov 18 >>> Register now >>> http://p.sf.net/sfu/rsa-sfdev2dev1 >>> >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li...<mailto:Mat...@li...> >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> I can't seem to find this thread anywhere. It it really that difficult >> to build on Windows? It most be documented somewhere what the prereqs are? >> > See<http://sourceforge.net/mailarchive/message.php?msg_id=27961105> and > <http://matplotlib.sourceforge.net/users/installing.html#build-requirements> > > Prebuilt static link libraries for msvc compilers are available at > <http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib>. > > It seems you are trying to compile from within cygwin, using the include > files provided by cygwin. That will probably not work. > > Christoph > > > >> Best regards, >> >> Mads >> > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save 700ドル by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users I am building from the VS2008 command prompt. But thanks for the info. Will have a look. Best regards, Mads -- +-----------------------------------------------------+ | Mads Ipsen | +----------------------+------------------------------+ | Gåsebæksvej 7, 4. tv | | | DK-2500 Valby | phone: +45-29716388 | | Denmark | email: mad...@gm... | +----------------------+------------------------------+
I had to do this sort of thing recently, but I did have to resort to some hackery to get it done (that I'm not proud of...I was in a bit of a hurry). Any corrections and or hand-slappings form the mpl-devs are, I'm sure, well deserved. Anyway....I can only tell you what I did to get it working, but cannot vouch for the correctness of the procedure. I also cannot vouch for the correctness of my recollection :/ First, I downloaded a few dependencies. libpng, libfreetype, and zlib. Installed them all, which put them in c:\program files (x86)\gnuwin32. http://gnuwin32.sourceforge.net/packages/libpng.htm http://gnuwin32.sourceforge.net/packages/freetype.htm http://gnuwin32.sourceforge.net/packages/zlib.htm I might have had to download ActiveTcl and install that, too, for the tk back end. Now, you should have headers and libraries all in the gnuwin32 directory. Download matplotlib-1.1.0.tar.gz, and untar it somewhere. open a Visual C++ command prompt and navigate to the mpl directory. I assume that python is in your path, so now do the normal python setup.py configure (I know that configure doesn't exist, but it gives the printout to tell me what is found and what is not). python setup.py build python setup.py install It is likely during the build process that an include such as ft2font.h might not be found. I did not spend the time here to figure out how properly to point matplotlib to the ft2font.h include file (which is over in the gnuwin32/include dir), so I copied it to the mpl directory (top level). I think I ended up doing the same with png.h and pngconf.h. Then run python setup.py build again. Ugly, but it did work. At some point, I'll go figure out the proper procedure. On Wed, Nov 2, 2011 at 4:11 PM, Mads Ipsen <mad...@gm...> wrote: > On 11/02/2011 08:43 PM, Michael Droettboom wrote: > > On 11/02/2011 01:34 PM, Mads Ipsen wrote: > > On 11/02/2011 05:50 PM, Michael Droettboom wrote: > > On 11/02/2011 10:53 AM, Mads Ipsen wrote: > > Any clues to why ft2build.h cannot be located. The above docs says it should > be part of the binary installer. > > The binary for freetype is included with the installer, but the headers > (needed to build, but not to run) are not. Do you need to build matplotlib > from source, or just use it? > > Mike > > I need to built it from source. > > Mads > > In that case, you will need to install the development packages for > freetype, libpng, libz, and numpy. > > I'm not a regular Windows user, so I don't know what the best practice is > for that these days. Some of the other members on this list can hopefully > jump in. There was also a thread on this list about "Building on Windows" > from 08/18/2011 that might be helpful. > > Mike > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save 700ドル by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > I can't seem to find this thread anywhere. It it really that difficult to > build on Windows? It most be documented somewhere what the prereqs are? > > Best regards, > > Mads > > -- > +-----------------------------------------------------+ > | Mads Ipsen | > +----------------------+------------------------------+ > | Gåsebæksvej 7, 4. tv | | > | DK-2500 Valby | phone: +45-29716388 | > | Denmark | email: mad...@gm... | > +----------------------+------------------------------+ > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save 700ドル by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- Daniel Hyams dh...@gm...
On Wed, Nov 2, 2011 at 21:00, Benjamin Root <ben...@ou...> wrote: > On Wed, Nov 2, 2011 at 2:50 PM, Sandro Tosi <mo...@de...> wrote: >> >> On Wed, Nov 2, 2011 at 20:39, Michael Droettboom <md...@st...> wrote: >> > I'm not able to reproduce this, but I've seen similar issues in the >> > past. Can you tell me if this patch fixes it for you? >> >> Nope, it doesn't. >> > > Just yesterday, I started getting a crash-on-exit error for GTK. The only > thing I changed was to update my system-wide packages, which I think > included some updates for gtk-related things. Maybe something there broke > something? Oh sure, it could be - I just wanted to state that also on Debian we have a similar problem than the one on Mac OS X, the tricky part is identify what that is :) Cheers, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi
On 11/2/2011 1:11 PM, Mads Ipsen wrote: > On 11/02/2011 08:43 PM, Michael Droettboom wrote: >> On 11/02/2011 01:34 PM, Mads Ipsen wrote: >>> On 11/02/2011 05:50 PM, Michael Droettboom wrote: >>>> On 11/02/2011 10:53 AM, Mads Ipsen wrote: >>>>> >>>>> Any clues to why ft2build.h cannot be located. The above docs says >>>>> it should be part of the binary installer. >>>> >>>> The binary for freetype is included with the installer, but the >>>> headers (needed to build, but not to run) are not. Do you need to >>>> build matplotlib from source, or just use it? >>>> >>>> Mike >>> I need to built it from source. >>> >>> Mads >> In that case, you will need to install the development packages for >> freetype, libpng, libz, and numpy. >> >> I'm not a regular Windows user, so I don't know what the best practice >> is for that these days. Some of the other members on this list can >> hopefully jump in. There was also a thread on this list about >> "Building on Windows" from 08/18/2011 that might be helpful. >> >> Mike >> >> ------------------------------------------------------------------------------ >> RSA(R) Conference 2012 >> Save 700ドル by Nov 18 >> Register now >> http://p.sf.net/sfu/rsa-sfdev2dev1 >> >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... <mailto:Mat...@li...> >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > I can't seem to find this thread anywhere. It it really that difficult > to build on Windows? It most be documented somewhere what the prereqs are? > See <http://sourceforge.net/mailarchive/message.php?msg_id=27961105> and <http://matplotlib.sourceforge.net/users/installing.html#build-requirements> Prebuilt static link libraries for msvc compilers are available at <http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib>. It seems you are trying to compile from within cygwin, using the include files provided by cygwin. That will probably not work. Christoph > Best regards, > > Mads >
On 11/02/2011 08:43 PM, Michael Droettboom wrote: > On 11/02/2011 01:34 PM, Mads Ipsen wrote: >> On 11/02/2011 05:50 PM, Michael Droettboom wrote: >>> On 11/02/2011 10:53 AM, Mads Ipsen wrote: >>>> >>>> Any clues to why ft2build.h cannot be located. The above docs says >>>> it should be part of the binary installer. >>> >>> The binary for freetype is included with the installer, but the >>> headers (needed to build, but not to run) are not. Do you need to >>> build matplotlib from source, or just use it? >>> >>> Mike >> I need to built it from source. >> >> Mads > In that case, you will need to install the development packages for > freetype, libpng, libz, and numpy. > > I'm not a regular Windows user, so I don't know what the best practice > is for that these days. Some of the other members on this list can > hopefully jump in. There was also a thread on this list about > "Building on Windows" from 08/18/2011 that might be helpful. > > Mike > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save 700ドル by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users I can't seem to find this thread anywhere. It it really that difficult to build on Windows? It most be documented somewhere what the prereqs are? Best regards, Mads -- +-----------------------------------------------------+ | Mads Ipsen | +----------------------+------------------------------+ | Gåsebæksvej 7, 4. tv | | | DK-2500 Valby | phone: +45-29716388 | | Denmark | email: mad...@gm... | +----------------------+------------------------------+
On Wed, Nov 2, 2011 at 2:50 PM, Sandro Tosi <mo...@de...> wrote: > On Wed, Nov 2, 2011 at 20:39, Michael Droettboom <md...@st...> wrote: > > I'm not able to reproduce this, but I've seen similar issues in the > > past. Can you tell me if this patch fixes it for you? > > Nope, it doesn't. > > Just yesterday, I started getting a crash-on-exit error for GTK. The only thing I changed was to update my system-wide packages, which I think included some updates for gtk-related things. Maybe something there broke something? Ben Root
On Wed, Nov 2, 2011 at 20:39, Michael Droettboom <md...@st...> wrote: > I'm not able to reproduce this, but I've seen similar issues in the > past. Can you tell me if this patch fixes it for you? Nope, it doesn't. > diff --git a/lib/matplotlib/backends/backend_gtk.py > b/lib/matplotlib/backends/backend > index 1012bbe..2efb72a 100644 > --- a/lib/matplotlib/backends/backend_gtk.py > +++ b/lib/matplotlib/backends/backend_gtk.py > @@ -556,6 +556,10 @@ class FigureManagerGTK(FigureManagerBase): > self.window.destroy() > if hasattr(self, 'canvas'): > self.canvas.destroy() > + del self.toolbar > + del self.vbox > + del self.window > + del self.canvas > self.__dict__.clear() #Is this needed? Other backends don't > have it. > > if Gcf.get_num_fig_managers()==0 and \ > > > On 11/02/2011 01:23 PM, Sandro Tosi wrote: >> Hi, >> >> On Wed, Nov 2, 2011 at 18:12, John Jameson<jw...@gm...> wrote: >>> In the meantime I notice that with MPL v1.1.0 the program crashes at the end >>> a most of my old MPL example programs (I use the GTKAgg backend for all of >>> them). A typical way to end the program is: >>> >>> gtk.main_quit() >>> >>> raise SystemExit >>> >>> and it crashes on the call the ''raise SystemExit". A typical output is >>> >>> /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backends/backend_gtk.py:552: >>> GtkWarning: gtk_widget_unrealize: assertion `GTK_IS_WIDGET (widget)' failed >>> >>> self.toolbar.destroy() >>> >>> /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backends/backend_gtk.py:552: >>> GtkWarning: gtk_widget_is_toplevel: assertion `GTK_IS_WIDGET (widget)' >>> failed >>> >>> self.toolbar.destroy() >>> >> it happens also on Debian: >> >> $ python >> Python 2.7.2+ (default, Oct 5 2011, 10:41:47) >> [GCC 4.6.1] on linux2 >> Type "help", "copyright", "credits" or "license" for more information. >>>>> import matplotlib >>>>> matplotlib.use('GTKAgg') >>>>> from matplotlib import pyplot as plt >>>>> plt.plot((1,2), (2,4)) >> [<matplotlib.lines.Line2D object at 0x2f7e6d0>] >>>>> plt.show() >> /usr/lib/pymodules/python2.7/matplotlib/backends/backend_gtk.py:552: >> GtkWarning: IA__gtk_widget_unrealize: assertion `GTK_IS_WIDGET >> (widget)' failed >> self.toolbar.destroy() >> /usr/lib/pymodules/python2.7/matplotlib/backends/backend_gtk.py:552: >> GtkWarning: IA__gtk_widget_is_toplevel: assertion `GTK_IS_WIDGET >> (widget)' failed >> self.toolbar.destroy() >> Segmentation fault >> >> Cheers, > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save 700ドル by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi
On 11/02/2011 01:34 PM, Mads Ipsen wrote: > On 11/02/2011 05:50 PM, Michael Droettboom wrote: >> On 11/02/2011 10:53 AM, Mads Ipsen wrote: >>> >>> Any clues to why ft2build.h cannot be located. The above docs says >>> it should be part of the binary installer. >> >> The binary for freetype is included with the installer, but the >> headers (needed to build, but not to run) are not. Do you need to >> build matplotlib from source, or just use it? >> >> Mike > I need to built it from source. > > Mads In that case, you will need to install the development packages for freetype, libpng, libz, and numpy. I'm not a regular Windows user, so I don't know what the best practice is for that these days. Some of the other members on this list can hopefully jump in. There was also a thread on this list about "Building on Windows" from 08/18/2011 that might be helpful. Mike
I'm not able to reproduce this, but I've seen similar issues in the past. Can you tell me if this patch fixes it for you? diff --git a/lib/matplotlib/backends/backend_gtk.py b/lib/matplotlib/backends/backend index 1012bbe..2efb72a 100644 --- a/lib/matplotlib/backends/backend_gtk.py +++ b/lib/matplotlib/backends/backend_gtk.py @@ -556,6 +556,10 @@ class FigureManagerGTK(FigureManagerBase): self.window.destroy() if hasattr(self, 'canvas'): self.canvas.destroy() + del self.toolbar + del self.vbox + del self.window + del self.canvas self.__dict__.clear() #Is this needed? Other backends don't have it. if Gcf.get_num_fig_managers()==0 and \ On 11/02/2011 01:23 PM, Sandro Tosi wrote: > Hi, > > On Wed, Nov 2, 2011 at 18:12, John Jameson<jw...@gm...> wrote: >> In the meantime I notice that with MPL v1.1.0 the program crashes at the end >> a most of my old MPL example programs (I use the GTKAgg backend for all of >> them). A typical way to end the program is: >> >> gtk.main_quit() >> >> raise SystemExit >> >> and it crashes on the call the ''raise SystemExit". A typical output is >> >> /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backends/backend_gtk.py:552: >> GtkWarning: gtk_widget_unrealize: assertion `GTK_IS_WIDGET (widget)' failed >> >> self.toolbar.destroy() >> >> /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backends/backend_gtk.py:552: >> GtkWarning: gtk_widget_is_toplevel: assertion `GTK_IS_WIDGET (widget)' >> failed >> >> self.toolbar.destroy() >> > it happens also on Debian: > > $ python > Python 2.7.2+ (default, Oct 5 2011, 10:41:47) > [GCC 4.6.1] on linux2 > Type "help", "copyright", "credits" or "license" for more information. >>>> import matplotlib >>>> matplotlib.use('GTKAgg') >>>> from matplotlib import pyplot as plt >>>> plt.plot((1,2), (2,4)) > [<matplotlib.lines.Line2D object at 0x2f7e6d0>] >>>> plt.show() > /usr/lib/pymodules/python2.7/matplotlib/backends/backend_gtk.py:552: > GtkWarning: IA__gtk_widget_unrealize: assertion `GTK_IS_WIDGET > (widget)' failed > self.toolbar.destroy() > /usr/lib/pymodules/python2.7/matplotlib/backends/backend_gtk.py:552: > GtkWarning: IA__gtk_widget_is_toplevel: assertion `GTK_IS_WIDGET > (widget)' failed > self.toolbar.destroy() > Segmentation fault > > Cheers,
On 11/02/2011 05:50 PM, Michael Droettboom wrote: > On 11/02/2011 10:53 AM, Mads Ipsen wrote: >> Hi, >> >> I am trying to build MPL 1.1.0 with VS 2008 on Windows XP 32. I have >> installed >> >> * Python 2.7.2 >> * Numpy 1.6 >> >> In the docs it says >> >> Windows users only need the first two (python and numpy) since the >> others are built into the matplotlib Windows installers available for >> download at the sourceforge site. OK, so I also downloaded >> matplotlib-1.1.0.win32-py2.7.exe and installed that. >> >> Now I cd to the matplotlib-1.1.0 directory and issue >> >> python setup.py build >> >> and get the following error. >> >> C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo >> /Ox /MD /W >> 3 /GS- /DNDEBUG -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API >> -DPYCXX_ISO_CPP_LIB=1 -Ic >> :\Python27\lib\site-packages\numpy\core\include -I. >> -Ic:\Python27\lib\site-packa >> ges\numpy\core\include\freetype2 -I.\freetype2 -Ic:\Python27\include >> -Ic:\Python >> 27\PC /Tpsrc/ft2font.cpp /Fobuild\temp.win32-2.7\Release\src/ft2font.obj >> ft2font.cpp >> C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) >> : warning C >> 4530: C++ exception handler used, but unwind semantics are not >> enabled. Specify >> /EHsc >> c:\cygwin\home\mads ipsen\matplotlib-1.1.0\src\ft2font.h(16) : fatal >> error C1083 >> : Cannot open include file: 'ft2build.h': No such file or directory >> error: command '"C:\Program Files\Microsoft Visual Studio >> 9.0\VC\BIN\cl.exe"' fa >> iled with exit status 2 >> >> >> Any clues to why ft2build.h cannot be located. The above docs says it >> should be part of the binary installer. > > The binary for freetype is included with the installer, but the > headers (needed to build, but not to run) are not. Do you need to > build matplotlib from source, or just use it? > > Mike > > > ------------------------------------------------------------------------------ > RSA® Conference 2012 > Save 700ドル by Nov 18 > Register now! > http://p.sf.net/sfu/rsa-sfdev2dev1 > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users I need to built it from source. Mads -- +-----------------------------------------------------+ | Mads Ipsen | +----------------------+------------------------------+ | Gåsebæksvej 7, 4. tv | | | DK-2500 Valby | phone: +45-29716388 | | Denmark | email: mad...@gm... | +----------------------+------------------------------+
Hi, On Wed, Nov 2, 2011 at 18:12, John Jameson <jw...@gm...> wrote: > In the meantime I notice that with MPL v1.1.0 the program crashes at the end > a most of my old MPL example programs (I use the GTKAgg backend for all of > them). A typical way to end the program is: > > gtk.main_quit() > > raise SystemExit > > and it crashes on the call the ''raise SystemExit". A typical output is > > /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backends/backend_gtk.py:552: > GtkWarning: gtk_widget_unrealize: assertion `GTK_IS_WIDGET (widget)' failed > > self.toolbar.destroy() > > /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backends/backend_gtk.py:552: > GtkWarning: gtk_widget_is_toplevel: assertion `GTK_IS_WIDGET (widget)' > failed > > self.toolbar.destroy() > it happens also on Debian: $ python Python 2.7.2+ (default, Oct 5 2011, 10:41:47) [GCC 4.6.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import matplotlib >>> matplotlib.use('GTKAgg') >>> from matplotlib import pyplot as plt >>> plt.plot((1,2), (2,4)) [<matplotlib.lines.Line2D object at 0x2f7e6d0>] >>> plt.show() /usr/lib/pymodules/python2.7/matplotlib/backends/backend_gtk.py:552: GtkWarning: IA__gtk_widget_unrealize: assertion `GTK_IS_WIDGET (widget)' failed self.toolbar.destroy() /usr/lib/pymodules/python2.7/matplotlib/backends/backend_gtk.py:552: GtkWarning: IA__gtk_widget_is_toplevel: assertion `GTK_IS_WIDGET (widget)' failed self.toolbar.destroy() Segmentation fault Cheers, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi
Hello, I slightly modified the example show at http://www.scipy.org/Cookbook/Matplotlib/ScrollingPlot to plot image data. My version of the code is at: http://code.google.com/p/ccnworks/source/browse/trunk/various/scroll.py What is the correct way to add a colorbar to this plot? A simple plt.colorbar(axes) yields no colorbar drawn. Thanks. -- Gökhan