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
(16) |
2
(22) |
3
(28) |
4
(17) |
5
(17) |
6
(7) |
7
|
8
(15) |
9
(28) |
10
(26) |
11
(28) |
12
(19) |
13
(5) |
14
(3) |
15
(21) |
16
(28) |
17
(11) |
18
(18) |
19
(6) |
20
(5) |
21
(18) |
22
(11) |
23
(22) |
24
(28) |
25
(17) |
26
(17) |
27
(7) |
28
(16) |
29
(24) |
30
(25) |
31
(14) |
|
|
|
From: Michael D. <md...@st...> - 2010-03-19 19:15:17
|
I have no experience with cx_freeze, but the page on packaging matplotlib with py2exe may be relevant. You do need to find a way to convince cx_freeze to include the data files and then a way for matplotlib to find them at run time. Mike Peter Bloomfield wrote: > Hi, > > I want to build executables from python scripts that call matplotlib under linux. To this end I have installed cxfreeze on my > SuSE 11.2 machine > > I have tried two methods > 1. Execute the command 'cxfreeze script.py' > and > 2. Creating a setup.py script > import cx_Freeze > import sys > base = None > if sys.platform == "win32": > base = "Win32GUI" > > executables = [ > cx_Freeze.Executable("script.py", base = base) > ] > cx_Freeze.setup( > name = "script", > version = "0.1", > description = "Sample matplotlib script", > executables = executables) > and then execute 'python setup.py build' > > In both cases I get an executable, but when executed I get the following error > RuntimeError: Could not find the matplotlib data files > > The version of matplotlib I am running is 0.99.1.1 and Python 2.6.2 > > Does anyone have any thoughts/suggestions to resolve this, thanks > > > Peter > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA |
From: Peter B. <pet...@ca...> - 2010-03-19 19:12:00
|
Hi, I want to build executables from python scripts that call matplotlib under linux. To this end I have installed cxfreeze on my SuSE 11.2 machine I have tried two methods 1. Execute the command 'cxfreeze script.py' and 2. Creating a setup.py script import cx_Freeze import sys base = None if sys.platform == "win32": base = "Win32GUI" executables = [ cx_Freeze.Executable("script.py", base = base) ] cx_Freeze.setup( name = "script", version = "0.1", description = "Sample matplotlib script", executables = executables) and then execute 'python setup.py build' In both cases I get an executable, but when executed I get the following error RuntimeError: Could not find the matplotlib data files The version of matplotlib I am running is 0.99.1.1 and Python 2.6.2 Does anyone have any thoughts/suggestions to resolve this, thanks Peter |
From: David <ld...@gm...> - 2010-03-19 18:05:02
|
Hello Mike, dear list, I am now able to generate a ps (and png) file with CJK characters (eps does NOT work). But my paths was rather surprising: * I put SimHei back at first position in matplotlibrc: font.sans-serif: SimHei, ~ * the following I took out of my dea.py: #import matplotlib #matplotlib.use('GtkCairo') * also, I have taken out: #rcParams['font.sans-serif'] = ['Adobe Song Std'] #rcParams['font.sans-serif'] = ['SimHei'] Note here that when I take the 'Adobe Song' line out, no CJK gets produced. The 'SimHei' line makes no difference. I can confirm that: In [9]: matplotlib.get_backend() Out[9]: 'GTKCairo' And: no eps gets generated. Basically I therefore followed the instructions here [Chinese]: http://hi.baidu.com/lijiangshui/blog/item/a0aad703cd65ee7e3812bb49.html While eps generation continues not to work, my system is now, via ps2eps, productive. Thanks for all your help, Mike! David |
From: Reinier H. <re...@he...> - 2010-03-19 17:28:23
|
Hi Armin, Thanks, I added it to the mplot3d examples. Cheers, Reinier On Thu, Mar 18, 2010 at 3:46 PM, Armin Moser <arm...@st...> wrote: > Hi, > > you can create your supporting points on a regular r, phi grid and > transform them then to cartesian coordinates: > > from mpl_toolkits.mplot3d import Axes3D > import matplotlib > import numpy as np > from matplotlib import cm > from matplotlib import pyplot as plt > step = 0.04 > maxval = 1.0 > fig = plt.figure() > ax = Axes3D(fig) > > # create supporting points in polar coordinates > r = np.linspace(0,1.25,50) > p = np.linspace(0,2*np.pi,50) > R,P = np.meshgrid(r,p) > # transform them to cartesian system > X,Y = R*np.cos(P),R*np.sin(P) > > Z = ((R**2 - 1)**2) > ax.plot_surface(X, Y, Z, rstride=1, cstride=1, cmap=cm.jet) > ax.set_zlim3d(0, 1) > ax.set_xlabel(r'$\phi_\mathrm{real}$') > ax.set_ylabel(r'$\phi_\mathrm{im}$') > ax.set_zlabel(r'$V(\phi)$') > ax.set_xticks([]) > plt.show() > > hth > Armin > > > klukas schrieb: >> I'm guessing this is currently impossible with the current mplot3d >> functionality, but I was wondering if there was any way I could generate a >> 3d graph with r, phi, z coordinates rather than x, y, z? >> >> The point is that I want to make a figure that looks like the following: >> http://upload.wikimedia.org/wikipedia/commons/7/7b/Mexican_hat_potential_polar.svg >> >> Using the x, y, z system, I end up with something that has long tails like >> this: >> http://upload.wikimedia.org/wikipedia/commons/4/44/Mecanismo_de_Higgs_PH.png >> >> If I try to artificially cut off the data beyond some radius, I end up with >> jagged edges that are not at all visually appealing. >> >> I would appreciate any crazy ideas you can come up with. >> >> Thanks, >> Jeff >> >> P.S. Code to produce the ugly jaggedness is included below: >> >> ------------------------------------------------------- >> from mpl_toolkits.mplot3d import Axes3D >> import matplotlib >> import numpy as np >> from matplotlib import cm >> from matplotlib import pyplot as plt >> >> step = 0.04 >> maxval = 1.0 >> fig = plt.figure() >> ax = Axes3D(fig) >> X = np.arange(-maxval, maxval, step) >> Y = np.arange(-maxval, maxval, step) >> X, Y = np.meshgrid(X, Y) >> R = np.sqrt(X**2 + Y**2) >> Z = ((R**2 - 1)**2) * (R < 1.25) >> ax.plot_surface(X, Y, Z, rstride=1, cstride=1, cmap=cm.jet) >> ax.set_zlim3d(0, 1) >> #plt.setp(ax.get_xticklabels(), visible=False) >> ax.set_xlabel(r'$\phi_\mathrm{real}$') >> ax.set_ylabel(r'$\phi_\mathrm{im}$') >> ax.set_zlabel(r'$V(\phi)$') >> ax.set_xticks([]) >> plt.show() >> > > > -- > Armin Moser > Institute of Solid State Physics > Graz University of Technology > Petersgasse 16 > 8010 Graz > Austria > Tel.: 0043 316 873 8477 > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Reinier Heeres Tel: +31 6 10852639 |
From: Gary R. <gr...@bi...> - 2010-03-19 12:55:02
|
I haven't tried it, but maybe it's to do with the fact that you're quantising the colourmap to 256 values; I think matplotlib computes the exact rgb values using interpolation. If the only reason you're using PIL is to get a .bmp file, maybe you could save the file straight from matplotlib as a .png then externally convert it to a .bmp Gary R. Ciarán Mooney wrote: > Hi, > > I am trying to create an image from an array using PIL, numpy and a > colourmap from matplotlib. <snip> > I'd like to get something that looks the same. I don't think the > problems are because of the colourmap but rather because of my log > scaling. Could someone please explain how matplotlib scales the image > to make it look so nice? > > Regards, > > Ciarán |
From: Michael D. <md...@st...> - 2010-03-19 12:51:02
|
David wrote: > Dear Mike, dear list, > > thanks for the continued help! > Here are my 'news': > > On 18/03/10 22:22, Michael Droettboom wrote: >>> import matplotlib >>> matplotlib.use('GtkCairo') >>> >>> Incidentally, if I uncomment those two lines, then the (Western) font >>> of my graph actually changes. >> I'm completely stumped by this. > > Just now I couldn't reproduce this. However, the fonts in the png and > eps are quite different. > > When I run my dea.py with the attached matplotlibrc, then I get both a > png and an eps, however, the Chinese is still not rendered (see > attachments) > > I noticed the following in the ~rc: > cairo.format : png # png, ps, pdf, svg > > But having it in or out makes no difference. The Cairo backend is still not being selected. By looking at the comments in the file, it's clear that the .eps file attached is being produced by the main matplotlib PS backend. I think I've figured out what may be the problem. The Cairo backend is not able to produce a .eps file, only a .ps (haven't investigated enough yet to determine if this is a shortcoming of Cairo itself or just the Cairo backend in matplotlib). In any case, first confirm that you have the Cairo backend selected (which still doesn't seem to be working for you, and I'm not sure why). See this page for more info on selecting backends: http://matplotlib.sourceforge.net/faq/installing_faq.html#backends You can confirm you are using the Cairo backend by printing matplotlib.get_backend(). Once that's resolved, try saving a ".ps" file (not ".eps"). That should work. You can always use ps2eps after the fact on this file. > > > I >> do see in the matplotlibrc that you attached that the "TkAgg" backend is >> being specified, not "GtkCairo". > > I changed this now. >> >> I am able to get the Cairo backend to work just fine using matplotlib >> 0.99.0. What version of cairo and pycairo do you have installed? > > python-cairo: 1.8.6-1ubuntu1 > > In [15]: cairo.version > Out[15]: '1.8.6' > > > I wasn't able to find pycairo on my system (even after installing > python-cairo-dev). I belive pycairo and python-cairo are in fact the > same thing. Yes, they are. pycairo is the official name of the project. python-cairo is the name of the Ubuntu/Debian package for that project. > > Google found this: > > "Just for your info if your interested in programming with cairo on > ubuntu. I wanted to add svg, ps and pdf support to cairo (the ubuntu > packages don't support these cairo render backends yet.)" > https://wiki.ubuntu.com/CairoPythonUbuntu > > Could this be the reason for my troubles (under Ubuntu)? That seems to be very old. Also, if that were the case, matplotlib would raise an exception like this: "cairo has not been compiled with PS support enabled". > >>>>> ps.fonttype=42 >>>>> pdf.fonttype=42 >>> >>> I haven taken those out again, because I got an error message. >> The error message may be related to using '=' rather than a ':'. In any >> case, these settings don't affect by the Cairo backend so should have no >> effect. > > I changed the = for a colon, yielding a nasty message: > > david@ubuntu:~/Documents/PhD/Dissertation/LaTeX/figures$ python dea.py > /usr/lib/pymodules/python2.6/matplotlib/__init__.py:653: UserWarning: > Duplicate key in file "/etc/matplotlibrc", line #329 > warnings.warn('Duplicate key in file "%s", line #%d'%(fname,cnt)) That means exactly what it says: you have the same setting appearing more than once in the file. Each setting can only appear at most once. But again, these settings are not used by the Cairo backend, so are irrelevant to the solution at hand. Hope this helps. Mike > > Hopefully we will get to the bottom of this! I am sorry to bother you > with all this -- and appreciate your efforts! > > Greeting from Beijing, > > David > > > > > > ------------------------------------------------------------------------ > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA |