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
(5) |
2
(13) |
3
(1) |
4
(4) |
5
(10) |
6
(13) |
7
(14) |
8
(3) |
9
(10) |
10
(3) |
11
|
12
(2) |
13
(8) |
14
(4) |
15
(4) |
16
(12) |
17
|
18
|
19
(7) |
20
(3) |
21
(1) |
22
(1) |
23
(28) |
24
(2) |
25
(3) |
26
(4) |
27
(8) |
28
(4) |
29
(4) |
30
(6) |
31
(3) |
From: Matt T. <mat...@gm...> - 2013-08-23 15:14:14
|
I'm banging away at installing MPL on top of python.org's python. I'm at the libfreetype/freetype issue. There seems to be three approaches to getting MPL's dependencies. 1) install libpng[1] and freetype[2] from source 2) install XQuartz[3] and twiddle /opt/X11, /usr/X11 (per Russell's directions[4]) so MPL finds XQuartz's libpng/freetype 3) install XQuartz[3] and install pkg-config[5] so MPL can find the cleverly installed libraries 4) create the MPL binary installer and use that Option 1 seems simple-est, but installing freetype requires more than ./configure && make && sudo make install. Option 2 worries me with the manual symlinking and such. Who knows what we'll clobber. Option 3: haven't fully explored. Option 4: This would require some input from whoever (Gohlke?, Owen?) makes the binary installers. [1] http://www.libpng.org/pub/png/libpng.html [2] http://www.freetype.org/index.html [3] http://xquartz.macosforge.org/landing/ [4] http://www.astro.washington.edu/users/rowen/BuildingMatplotlibForMac.html [5] http://www.freedesktop.org/wiki/Software/pkg-config/ On Thu, Aug 22, 2013 at 8:24 PM, Matt Terry <mat...@gm...> wrote: > > with/without third party X >> I'm not quite sure what you mean by with/without third party X. If you >> are referring to Tck/Tk: >> > > I had an issue where MPL found the headers to freetype in /opt/local, but > library in /usr/X11. Hilarity ensues. I *think* /usr/X11 showed up when I > installed XQuartz, but I don't have a clean image to compare against. > > The with-X / without-X builds would be there to check that the default > search paths are compatible with common environments. > > -matt > |
From: Sterling S. <sm...@fu...> - 2013-08-23 15:12:01
|
On Aug 23, 2013, at 7:43AM, Benjamin Root wrote: > > > On Fri, Aug 23, 2013 at 9:57 AM, Peter Bloomfield <pet...@ca...> wrote: > Good morning, > > I am running openSuSE 12.2, and this morning I upgraded matplotlib to v1.3, and now I am having a problem with suptitle. > I use the following lines to put a title and legend onto a plot figure > > import matplotlib.pyplot as plt > plt.figure(1) > plt.suptitle( "Study# : " + os.path.basename( inImage_IO.IO_FileName ) + \ > "\n" + "{ Acquired : " + \ > AcqDateTime.strftime( "%b %d, %Y - $T_o$ @ %H:%M:%S" ) + " }", \ > y=0.98, weight="roman", size="large" ) > plt.suptitle( "{Creation Date : " + AnalysisTOD + "}", > x=0.86, y=0.03, weight="roman", size="x-small" ) > > Under v1.3, I only get the 'Creation Date : ...' text at the bottom of the figure the 'Study# ...' string is not present at the top. If I change > it to > > import matplotlib.pyplot as plt > plt.figure(1) > plt.suptitle( "Study# : ", y=0.98, weight="roman", size="large" ) > plt.suptitle( "{Creation Date : " + AnalysisTOD + "}", > x=0.86, y=0.03, weight="roman", size="x-small" ) > > the 'Creation Date : ...' text at the bottom of the figure the 'Study# : ' string is at the top. > > So the problem is in the string construct in the first example. Does anybody know of a way to get around this? > > Thanks in advance > > Peter > > > Oh, wow... we didn't think anybody was using that "misfeature". This was a bug we fixed for 1.3, in that users complained that calling plt.title() would update an existing title, but plt.suptitle() would not (multiple calls would just result in text overlaid on top of each other). We fixed this for 1.3 so that there is a single text object that is kept and is revised in subsequent calls to suptitle(). To get what you want, you will have to consolidate those strings into one. > > Cheers! > Ben Ben, I am glad for the fix. Peter, You could use gcf().text(x,y,'String 1',**keyw) gcf().text(x2,y2,'String 2',**keyw) -Sterling |
From: Benjamin R. <ben...@ou...> - 2013-08-23 14:44:25
|
On Fri, Aug 23, 2013 at 9:57 AM, Peter Bloomfield < pet...@ca...> wrote: > Good morning, > > I am running openSuSE 12.2, and this morning I upgraded matplotlib to > v1.3, and now I am having a problem with suptitle. > I use the following lines to put a title and legend onto a plot figure > > import matplotlib.pyplot as plt > plt.figure(1) > > plt.suptitle( "Study# : " + os.path.basename( inImage_IO.IO_FileName ) + \ > > "\n" + "{ Acquired : " + \ > > AcqDateTime.strftime( "%b %d, %Y - $T_o$ @ %H:%M:%S" ) + " }", \ > > y=0.98, weight="roman", size="large" ) > > plt.suptitle( "{Creation Date : " + AnalysisTOD + "}", > > x=0.86, y=0.03, weight="roman", size="x-small" ) > > > Under v1.3, I only get the 'Creation Date : ...' text at the bottom of > the figure the 'Study# ...' string is not present at the top. If I change > it to > > import matplotlib.pyplot as plt > plt.figure(1) > > plt.suptitle( "Study# : ", y=0.98, weight="roman", size="large" ) > > plt.suptitle( "{Creation Date : " + AnalysisTOD + "}", > > x=0.86, y=0.03, weight="roman", size="x-small" ) > > the 'Creation Date : ...' text at the bottom of the figure the 'Study# : > ' string is at the top. > > > So the problem is in the string construct in the first example. Does > anybody know of a way to get around this? > > > Thanks in advance > > > Peter > > Oh, wow... we didn't think anybody was using that "misfeature". This was a bug we fixed for 1.3, in that users complained that calling plt.title() would update an existing title, but plt.suptitle() would not (multiple calls would just result in text overlaid on top of each other). We fixed this for 1.3 so that there is a single text object that is kept and is revised in subsequent calls to suptitle(). To get what you want, you will have to consolidate those strings into one. Cheers! Ben |
From: Peter B. <pet...@ca...> - 2013-08-23 14:31:27
|
Good morning, I am running openSuSE 12.2, and this morning I upgraded matplotlib to v1.3, and now I am having a problem with suptitle. I use the following lines to put a title and legend onto a plot figure import matplotlib.pyplot as plt plt.figure(1) plt.suptitle( "Study# : " + os.path.basename( inImage_IO.IO_FileName ) + \ "\n" + "{ Acquired : " + \ AcqDateTime.strftime( "%b %d, %Y - $T_o$ @ %H:%M:%S" ) + " }", \ y=0.98, weight="roman", size="large" ) plt.suptitle( "{Creation Date : " + AnalysisTOD + "}", x=0.86, y=0.03, weight="roman", size="x-small" ) Under v1.3, I only get the 'Creation Date : ...' text at the bottom of the figure the 'Study# ...' string is not present at the top. If I change it to import matplotlib.pyplot as plt plt.figure(1) plt.suptitle( "Study# : ", y=0.98, weight="roman", size="large" ) plt.suptitle( "{Creation Date : " + AnalysisTOD + "}", x=0.86, y=0.03, weight="roman", size="x-small" ) the 'Creation Date : ...' text at the bottom of the figure the 'Study# : ' string is at the top. So the problem is in the string construct in the first example. Does anybody know of a way to get around this? Thanks in advance Peter |
From: Kari A. <kar...@st...> - 2013-08-23 14:21:15
|
Hello, fellow Matplotlib users, I'm embedding some Matplotlib figures into GUI (PyQt4) windows or widget canvases using qt4agg as the backend. I'm having problems with these figures popping up any time when some other part of the program calls pyplot.show(). How do you avoid this showing of previous figures? Is there some hidden buffer where the figures go? If there is, what is the way to clear this buffer, or preferably avoid putting figures in this buffer altogether? I'd be happy to handle these figures as simple individual objects. (I'm aware that this "hidden buffer" may be the pylab/pyplot buffer. I tried deepcopying the figure and then clearing the pylab buffer with pylab.clf() , but figures don't seem to be deepcopyable.) A typical situation is the following: - There is a window with a widget. The widget (widgetMpl in the code below) has a slightly customized FigureCanvas in it. The drawing code is activated by clicking a button in the window. The code goes as follows. # The plot method returns a complicated instance of Figure with several axes, constructed with Pylab. previewFigure = self.parent.experiment.file_to_plot.plot(show=False, n_channels=10) self.ui.widgetMpl.canvas.figure = previewFigure self.ui.widgetMpl.canvas.draw() - I draw the figure in the window once, or several times with different file_to_plot, by pressing the button. I may or may not close the window with the aforementioned widget. - Elsewhere in the program there is another window with very simple drawing code using pyplot. When this code calls pyplot.show(), all the figures drawn in the first window will show up. |
From: Jon R. <jon...@gm...> - 2013-08-23 08:14:30
|
Dear Chris and List, pdf2ps is usually just a front end to a long-winded ghostscript ("gs") command. On my system this comes out as: gs -q -dNOPAUSE -dBATCH -P- -dSAFER -sDEVICE=ps2write "-sOutputFile=$outfile" -c save pop -f "$1" If you're feeling brave, you can look at the ghostscript manual for ways to improve upon the results (http://www.ghostscript.com/doc/9.07/Use.htm). I've had to play this "game" with Astronomy journals in the past, and what I actually did was save the output as a JPEG of ridiculously high resolution and then put a postscript wrapper around it using jpeg2ps ( http://www.pdflib.com/download/free-software/jpeg2ps/). Not pretty, but it works. Good luck, Jon Jon Ramsey =============================== jon...@gm... On 23 August 2013 03:32, Chris Beaumont <cbe...@cf...> wrote: > Thanks for these tips. It looks like some programs (like illustrator, and > pdf2ps) are semi-smart about handling transparency when converting to ps. > Both have their quirks (illustrator seems to mess up the bounding box, > pdf2ps makes the text look worse/fuzzy). > > Is this the recommended/best strategy? > > Thanks, > chris > > > On Thu, Aug 22, 2013 at 8:04 PM, Jerzy Karczmarczuk < > jer...@un...> wrote: > >> Chris Beaumont : >> > >> > I have a semitransparent plot that I rather like: >> ... >> > I'd like to publish something like this in a journal which requires >> > EPS figures. Unfortunately, EPS doesn't support transparency. >> > >> > How hard would it be to coax matplotlib (or another tool) to convert >> > this semi-transparent figure into a non-semitransparent figure that >> > looks the same? >> >> I won't claim that this is an ultimate solution, but what I did a few >> times was to >> 1. Choose the svg backend, savefig the picture as svg. >> 2. Open in Inkscape and export as .eps. >> >> The result was satisfactory. >> >> Jerzy Karczmarczuk >> >> >> >> ------------------------------------------------------------------------------ >> Introducing Performance Central, a new site from SourceForge and >> AppDynamics. Performance Central is your source for news, insights, >> analysis and resources for efficient Application Performance Management. >> Visit us today! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
From: Florian M. W. <wag...@st...> - 2013-08-23 07:54:08
|
Hey Chris, I had a similar problem. I saved the transparent objects, so the polygons in your case, as a high-resolution png and the axes, dots, lines, text objects and everything else to an eps. Finally, I just layed them on top of each other in Illustrator and saved as eps, which produced a decent result. But this was only a work-around as well. They might be better options... Cheers Florian Am 23.08.2013 00:55, schrieb Chris Beaumont: > Hi, > > I have a semitransparent plot that I rather like: > > Inline image 1 > I'd like to publish something like this in a journal which requires > EPS figures. Unfortunately, EPS doesn't support transparency. > > How hard would it be to coax matplotlib (or another tool) to convert > this semi-transparent figure into a non-semitransparent figure that > looks the same? It would consist of more polygons, each of which has a > constant RGB value in the transparent figure. > > I don't want to rasterize the lines, because I like zooming absurdly > far into plots, and having them stay crisp. > > Cheers, > Chris > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Scott L. <sl...@sp...> - 2013-08-23 04:29:55
|
On Aug 22, 2013, at 10:28 PM, James Boyle <jsb...@gm...> 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, which is not > present in the 1.3 distribution. The documentation (http://matplotlib.org/1.3.0/users/installing.html) also refers to this file and appears to be out of date. > > I have tried fiddling with the LD_LIBRARY paths, but have not come upon a solution. > > --Jim Boyle You might try installing the latest XQuartz to see if that helps - http://xquartz.macosforge.org/landing/ I think you can use homebrew <http://brew.sh> or macports <http://www.macports.org> to install a copy of libfreetype, but it's fairly easy to do manually. Here's what I've done on recent versions of OS X. I'm not sure it's necessary to install everything below. Note that this only builds the native architecture for the version of OS X you are using, for example 64 bit for OS X 10.8, so there may be problems if you have to build matplotlib for a different architecture. In that case, you can add the appropriate CFLAGS="-arch blah" parameter to ./configure download, unpack, configure and install pkgconfig curl -O http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz tar -xf pkg-config-0.28.tar.gz cd pkg-config-0.28 ./configure --with-internal-glib make -j4 sudo make install download, unpack, configure and install freetype curl -O http://hivelocity.dl.sourceforge.net/project/freetype/freetype2/2.5.0/freetype-2.5.0.1.tar.bz2 tar -xf freetype-2.5.0.1.tar.bz2 cd freetype-2.5.0.1 ./configure make -j4 sudo make install download, unpack, configure and install fontconfig curl -O http://www.freedesktop.org/software/fontconfig/release/fontconfig-2.10.93.tar.bz2 tar -xf fontconfig-2.10.93.tar.bz2 cd fontconfig-2.10.93 ./configure make -j4 sudo make install download, unpack, configure and install libpng curl -O http://hivelocity.dl.sourceforge.net/project/libpng/libpng15/1.5.17/libpng-1.5.17.tar.bz2 tar -xf libpng-1.5.17.tar.bz2 cd libpng-1.5.17 make -j4 sudo make install download, unpack, configure and install ghostscript curl -O http://downloads.ghostscript.com/public/ghostscript-9.09.tar.gz tar -xf ghostscript-9.09.tar.gz cd ghostscript-9.09 ./configure --with-x \ --x-includes=/opt/X11/include \ --x-libraries=/opt/X11/lib \ --disable-gtk \ --with-system-libtiff \ CFLAGS="-arch x86_64 -arch i386" LDFLAGS="-arch x86_64 -arch i386" make -j4 sudo make install Now python3 setup.py in the matplotlib directory should show that it found the libs you just installed. I hope this works for you, Scott |
From: Matt T. <mat...@gm...> - 2013-08-23 03:24:36
|
> > > with/without third party X > I'm not quite sure what you mean by with/without third party X. If you > are referring to Tck/Tk: > I had an issue where MPL found the headers to freetype in /opt/local, but library in /usr/X11. Hilarity ensues. I *think* /usr/X11 showed up when I installed XQuartz, but I don't have a clean image to compare against. The with-X / without-X builds would be there to check that the default search paths are compatible with common environments. -matt |
From: James B. <jsb...@gm...> - 2013-08-23 02:28:48
|
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, which is not present in the 1.3 distribution. The documentation (http://matplotlib.org/1.3.0/users/installing.html) also refers to this file and appears to be out of date. I have tried fiddling with the LD_LIBRARY paths, but have not come upon a solution. --Jim Boyle |
From: Chris B. <cbe...@cf...> - 2013-08-23 01:32:30
|
Thanks for these tips. It looks like some programs (like illustrator, and pdf2ps) are semi-smart about handling transparency when converting to ps. Both have their quirks (illustrator seems to mess up the bounding box, pdf2ps makes the text look worse/fuzzy). Is this the recommended/best strategy? Thanks, chris On Thu, Aug 22, 2013 at 8:04 PM, Jerzy Karczmarczuk < jer...@un...> wrote: > Chris Beaumont : > > > > I have a semitransparent plot that I rather like: > ... > > I'd like to publish something like this in a journal which requires > > EPS figures. Unfortunately, EPS doesn't support transparency. > > > > How hard would it be to coax matplotlib (or another tool) to convert > > this semi-transparent figure into a non-semitransparent figure that > > looks the same? > > I won't claim that this is an ultimate solution, but what I did a few > times was to > 1. Choose the svg backend, savefig the picture as svg. > 2. Open in Inkscape and export as .eps. > > The result was satisfactory. > > Jerzy Karczmarczuk > > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Jerzy K. <jer...@un...> - 2013-08-23 00:21:16
|
Chris Beaumont : > > I have a semitransparent plot that I rather like: ... > I'd like to publish something like this in a journal which requires > EPS figures. Unfortunately, EPS doesn't support transparency. > > How hard would it be to coax matplotlib (or another tool) to convert > this semi-transparent figure into a non-semitransparent figure that > looks the same? I won't claim that this is an ultimate solution, but what I did a few times was to 1. Choose the svg backend, savefig the picture as svg. 2. Open in Inkscape and export as .eps. The result was satisfactory. Jerzy Karczmarczuk |
From: Chris B. <cbe...@cf...> - 2013-08-22 22:55:30
|
Hi, I have a semitransparent plot that I rather like: [image: Inline image 1] I'd like to publish something like this in a journal which requires EPS figures. Unfortunately, EPS doesn't support transparency. How hard would it be to coax matplotlib (or another tool) to convert this semi-transparent figure into a non-semitransparent figure that looks the same? It would consist of more polygons, each of which has a constant RGB value in the transparent figure. I don't want to rasterize the lines, because I like zooming absurdly far into plots, and having them stay crisp. Cheers, Chris |
From: Matt T. <mat...@gm...> - 2013-08-21 00:33:09
|
That is handy information. I'll start adding a python.org target. How broad coverage do we want? 10.6, 10.7, 10.8 system, python.org (2.7, 3.3), brew, macports virtualenv, no virtualenv with/without third party X The testing matrix blows up pretty quickly. For those of you with longer memories, where are the corners where things tend to break? -matt On Tue, Aug 20, 2013 at 12:09 PM, Russell E. Owen <ro...@uw...> wrote: > A few hints: > > If you just want to build matplotlib for your own computer (and don't > care about making an installer that will work on anybody else's) then > you can install from source with very little trouble: > - You may want to edit setupext.py to limit searching to those dirs that > really matter, but this is only needed if you have installed extras that > might conflict. > - You may want to edit setup.cfg to select a better default back end. > > You have to be much more careful if you want to build a binary installer > that can be used by others. I've found that bdist_mpkg works, and I've > found it is safest to build on the oldest platform I want the installer > to support (for example /usr/X11/lib moved in 10.8 or 10.7 in a way that > is forward but not backwards compatible). > > For Apple's python you need install anything; all you need is in > /usr/lib and /usr/X11/lib. I have no idea if TkAgg works well. > > For python.org python you should install a version of Tcl/Tk. I suggest > ActiveState Tcl/Tk 8.5.11. Be warned that versions 8.5.12, 8.5.12.1, > 8.5.13 all have known crashing problems; I have not tried 8.5.14 (which > came out fairly recently) as 8.5.11 seems to do well enough. > > I've cannot comment on building matplotlib for macports, fink or > homebrew. > > -- Russell > > In article <520...@st...>, > Michael Droettboom <md...@st...> > wrote: > > > We actually discussed this very issue yesterday in our Google hangout > > about continuous integration. We're probably going to need to script a > > full setup from a clean Mac + XCode to a working matplotlib development > > environment in order to make that happen, and obviously that will be > > shared with the world. Things are even more complex on Windows, and I'd > > like to do that there, too. So stay tuned. > > > > Mike > > > > On 08/16/2013 10:02 AM, Paul Hobson wrote: > > > Mike, > > > > > > That's great news. Is there any chance we can look forward to > > > "official" instructions for setting up a Mac to develop matplotlib? > > > > > > I gave up a long time ago and started piecing to together my meager > > > PRs in a linux VM. > > > -paul > > > > > > > > > On Fri, Aug 16, 2013 at 6:52 AM, Michael Droettboom > > > <md...@st... > > > <mailto:md...@st...>> wrote: > > > > > > Thanks to the gracious donation from Hans Petter Langtangen and the > > > Center for Biomedical Computing at Simula > > > (http://home.simula.no/~hpl <http://home.simula.no/%7Ehpl>), > > > I now have a new Mac Mini sitting at my desk. This should allow > me to > > > keep on top of changes that affect the Mac builds and to better > track > > > down Mac-only issues. > > > > > > Stay tuned over the next few weeks and months as we will most > > > likely be > > > using some more of these funds to pay for hosted continuous > > > integration > > > services (as discussed yesterday in our MEP19 Google Hangout). > > > > > > Cheers, > > > Mike > > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-devel mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > |
From: Oleksandr H. <guz...@gm...> - 2013-08-20 15:28:40
|
Hi matplotlib users: Could you please help me with this? I have created a map plot and a colorbar. For the colorbar I've used the format argument, supplying the following object as a value: #format the colorbar tick labels sfmt = ScalarFormatter(useMathText=True) sfmt.set_powerlimits((-2, 2)) cb = colorbar(format=sfmt) As you can see on the image below my text from the multiplier is overlapping with a top tick label. I would like to lift it a bit, is there an easy way? I tried this, but it does not work, since after colorbar() the toffsetText does not contain the multiplier yet: ax = cb.ax title = ax.offsetText.get_text() ax.offsetText.set_text("{0}\n\n\n\n".format(title)) [image: image]<https://f.cloud.github.com/assets/900941/986867/2a1ef2c8-08e1-11e3-9674-12ac7558f082.png> I could, probably increase the width of the colorbar or decrease font size... But I like this width and the font size seems to be very readable. |
From: Benjamin R. <ben...@ou...> - 2013-08-20 02:19:36
|
Perhaps hexbin() is what you are looking for? Cheers! Ben Root On Aug 19, 2013 7:29 PM, "dilpreet singh" <gig...@gm...> wrote: > Hi > > i want to plot a scatter plot similar to the one attached with email . I > can plot a histogram but the hist method can't plot a scatter plot . Is > there a way to use the output of the hist() method and use it as an input > to the scatter plot ? > > The part of the code i am using to plot histogram is as follows : > > data = get_data() > plt.figure(figsize=(7,4)) > ax = plt.subplots() > plt.hist(data,histtype='bar',bins = 100,log=True) > plt.show() > > Thanks > Dilpreet > > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
From: Ryan N. <rne...@gm...> - 2013-08-20 01:58:05
|
Dilpreet, Fortunately, you have a couple of options here. First of all, when you call the plt.hist function, it actually returns three useful sets of data: the frequencies, bin edges, and the bar patches. The first two are probably what you want. You can grab those for later use in your code by doing the following: freq, bins, bars = plt.hist(data,histtype='bar',bins = 100,log=True) It will be a little tricky here because the 'bins' array are the edges of the bins that contain the frequency values, so there will be one more value than the 'freq' array. You can quickly calculate the center of the bins by taking the average of each bin pair: (bins[1:] + bins[:-1])/2. Alternatively, if you don't want to actually plot the histogram but just the freq and bins arrays, then you can use the 'histogram' function in Numpy, which I believe is used internally by Matplotlib. http://docs.scipy.org/doc/numpy/reference/generated/numpy.histogram.html Ryan On Mon, Aug 19, 2013 at 7:27 PM, dilpreet singh <gig...@gm...> wrote: > Hi > > i want to plot a scatter plot similar to the one attached with email . I > can plot a histogram but the hist method can't plot a scatter plot . Is > there a way to use the output of the hist() method and use it as an input > to the scatter plot ? > > The part of the code i am using to plot histogram is as follows : > > data = get_data() > plt.figure(figsize=(7,4)) > ax = plt.subplots() > plt.hist(data,histtype='bar',bins = 100,log=True) > plt.show() > > Thanks > Dilpreet > > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
From: dilpreet s. <gig...@gm...> - 2013-08-19 23:27:51
|
Hi i want to plot a scatter plot similar to the one attached with email . I can plot a histogram but the hist method can't plot a scatter plot . Is there a way to use the output of the hist() method and use it as an input to the scatter plot ? The part of the code i am using to plot histogram is as follows : data = get_data() plt.figure(figsize=(7,4)) ax = plt.subplots() plt.hist(data,histtype='bar',bins = 100,log=True) plt.show() Thanks Dilpreet |
From: Paul D. D. <pde...@ix...> - 2013-08-19 18:23:13
|
> From: Vlastimil Brom [mailto:vla...@gm...] > > to reuse the matplotlib controls or just the plotting area, check the > examples on embedding in the demo pages: > http://matplotlib.org/examples/user_interfaces/embedding_in_gtk.html > or the others in the respective section: > http://matplotlib.org/examples/user_interfaces/index.html > (I don't use gtk myself, but I believe, it might be directly usable in > your code.) That's just the ticket. Thanks. -- Ciao, Paul D. DeRocco Paul mailto:pde...@ix... |
From: Skip M. <sk...@po...> - 2013-08-19 10:35:03
|
I'm not much of a matplotlib user, and started poking around for "GtkSocket matplotlib". I'm not sure that's the right direction, however, it eventually led me to this blog post which only exists now in the Wayback Machine: http://web.archive.org/web/20111005011905/http://www.serpia.org/blog/2007/nov/03/matplotlib-and-pygtk-app/ In it (a complete Gtk+matplotlib tutorial) he uses FigureCanvasGTK to place the plot in the PyGtk app. Skip |
From: Vlastimil B. <vla...@gm...> - 2013-08-19 10:26:21
|
2013/8/19 Paul D. DeRocco <pde...@ix...>: > I've just tried Matplotlib for the first time, for plotting on the screen, > and the examples all seem to pop up a new window with interactive tools, > like Matlab does. That's very nice, but what I need is to create a static > plot that appears in some sort of widget in an existing window created > with PyGTK, without any of the controls. Is there a page that shows how > this can be done? Is it even possible? > > -- > > Ciao, Paul D. DeRocco > Paul mailto:pde...@ix... > Hi, to reuse the matplotlib controls or just the plotting area, check the examples on embedding in the demo pages: http://matplotlib.org/examples/user_interfaces/embedding_in_gtk.html or the others in the respective section: http://matplotlib.org/examples/user_interfaces/index.html (I don't use gtk myself, but I believe, it might be directly usable in your code.) hth, vbr |
From: Paul D. D. <pde...@ix...> - 2013-08-19 09:10:17
|
> From: Sudheer Joseph [mailto:sud...@ya...] > > If you start python like below with qt console. > You will get plots with out controls etc. You can right click > on plots and save it as png. Else from command prompt as pdf > as you wish. > > ipython qtconsole --colors=linux --pylab=inline That's not what I meant. I'm not using ipython or qtconsole. This is for an embedded system (Gumstix) with a small LCD. I have a program written in PyGTK that fills the LCD with a single window with various buttons in it. I want to display a plot in a pane in that window, not in a separate window. -- Ciao, Paul D. DeRocco Paul mailto:pde...@ix... |
From: Sudheer J. <sud...@ya...> - 2013-08-19 08:05:07
|
Hi Paul, If you start python like below with qt console. You will get plots with out controls etc. You can right click on plots and save it as png. Else from command prompt as pdf as you wish. ipython qtconsole --colors=linux --pylab=inline >________________________________ > From: Paul D. DeRocco <pde...@ix...> >To: Matplotlib list <mat...@li...> >Sent: Monday, 19 August 2013 1:17 PM >Subject: [Matplotlib-users] Graphing in an existing PyGTK window > > >I've just tried Matplotlib for the first time, for plotting on the screen, >and the examples all seem to pop up a new window with interactive tools, >like Matlab does. That's very nice, but what I need is to create a static >plot that appears in some sort of widget in an existing window created >with PyGTK, without any of the controls. Is there a page that shows how >this can be done? Is it even possible? > >-- > >Ciao, Paul D. DeRocco >Paul mailto:pde...@ix... > > > >------------------------------------------------------------------------------ >Get 100% visibility into Java/.NET code with AppDynamics Lite! >It's a free troubleshooting tool designed for production. >Get down to code-level detail for bottlenecks, with <2% overhead. >Download for free and get started troubleshooting in minutes. >http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk >_______________________________________________ >Matplotlib-users mailing list >Mat...@li... >https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > |
From: Paul D. D. <pde...@ix...> - 2013-08-19 07:48:01
|
I've just tried Matplotlib for the first time, for plotting on the screen, and the examples all seem to pop up a new window with interactive tools, like Matlab does. That's very nice, but what I need is to create a static plot that appears in some sort of widget in an existing window created with PyGTK, without any of the controls. Is there a page that shows how this can be done? Is it even possible? -- Ciao, Paul D. DeRocco Paul mailto:pde...@ix... |
From: Michael D. <md...@st...> - 2013-08-16 20:29:04
|
I've been in touch with the Travis-CI guys about this a little bit. They restrict each project to a single OS partly to reduce resource consumption, but they said they might reconsider for paying customers (which we may want to become). Mike On 08/16/2013 04:17 PM, Matt Terry wrote: > > I was looking into the TravisCI Mac testing environment. Right now, > you can only run tests on a single os. You also trigger a Mac build by > declaring your language to be objective-c. There are probably more q > quirks, but that's what I've found thus far. > > -matt > > On Aug 16, 2013 12:45 PM, "Matthew Brett" <mat...@gm... > <mailto:mat...@gm...>> wrote: > > Hi, > > On Fri, Aug 16, 2013 at 10:36 AM, Kevin Hunter Kesling > <kmh...@nc... <mailto:kmh...@nc...>> wrote: > > At 12:11pm -0400 Fri, 16 Aug 2013, Matthew Brett wrote: > >> > >> We've got 5 macs running OSX 10.4 through 10.8 for us, you'd be > >> welcome to remote access to those, and we'd be happy to run builds > >> for you. Paul Ivanov has or will have access to the buildbot master > >> and all the slaves. We also have an XP and Windows 7 64 bit machine > >> you are welcome to use. > > > > > > Bless you for supporting OS X prior to 10.6! My family still > has a quite > > functional OS X 10.5 machine that we should update but can't for > various > > (less than stellar, but unfortunately real) reasons. I'm > chagrined that > > Apple et al. no longer supports 10.5. I'm sure others feel > similarly about > > their 10.4- machines. > > > > On the other hand, no one would blame a development team that > decided not to > > support what even Apple does not support. > > :) - we just happened to have them lying around. Actually, the 10.5 > machine is PPC and catches endian errors fairly often, but I'm sure > we'll retire the 10.4 machine fairly soon. > > Cheers, > > Matthew > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > <mailto:Mat...@li...> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |