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
|
2
|
3
(1) |
|
4
|
5
(5) |
6
|
7
(2) |
8
(4) |
9
(1) |
10
(1) |
|
11
|
12
|
13
|
14
|
15
(1) |
16
(1) |
17
(2) |
|
18
(4) |
19
|
20
(3) |
21
|
22
(8) |
23
(3) |
24
|
|
25
|
26
(3) |
27
(1) |
28
|
29
(2) |
30
(12) |
31
(5) |
|
From: Kuzminski, S. R <SKu...@fa...> - 2004-01-29 12:20:11
|
Some notes on compiling GD backend for windows.
1) _gdmodule.c needs to be modified in 2 places to compile on windows=20
a) line 1888 PyObject_HEAD_INIT() needs to passed a NULL. This
is in the Python docs.
=09
....
static PyTypeObject Imagetype =3D {
PyObject_HEAD_INIT(NULL)
0, /*ob_size*/
....
b) the init_gd function ( line 1957 ) needs to have
'_declspec(dllexport)' added to the declaration.=20
.....
/* Initialization function for the module (*must* be called init_gd) */
void _declspec(dllexport) init_gd(void)
{=20
....
2) This one took me a long time to figure out. For some reason opening
a windows file in Python with 'wb' permission will cause the png files
to be corrupted above a certain image size. If you pass the filename to
gdmodule, then the gdmodule opens the file and it works. I imagine that
the python call "open( 'filename', 'wb' )" just calls fopen, furthermore
I thought that binary mode only applied to reading files. At any rate,
I have no idea why this doesn't work in this case but it doesn't. To
get it to work, I had to change line 261 in backends_gd.py to pass the
filename rather than a file object, this is the only modification to
Matplotlib I had to make.
im.writePng( filename )
#2 above is the answer to the problem in my original post. However I
have another question. When I set the ylabel rotation to be horizontal,
the beginning of the text is truncated ( the width of the border does
not compensate ). I'm happy to set it wider but am wondering how ( what
controls the width of the area where the labels gets written ). I also
noticed that title of the graph ( with the horizontal alignment set to
bottom ) is too close to the top of the graph itself, is there a way to
pad that?
thanks,
Stefan
-----Original Message-----
From: John Hunter [mailto:jdh...@ni...]=20
Sent: Friday, January 23, 2004 6:58 AM
To: Kuzminski, Stefan R
Cc: mat...@li...
Subject: Re: [Matplotlib-users] broken PNG files with GD backend
>>>>> "Kuzminski," =3D=3D Kuzminski, Stefan R <SKu...@fa...>
writes:
Kuzminski> Now on to my specific problem. I'm using the GD
Kuzminski> backend on Windows with Matplotlib 0.41. =20
First things first -- I haven't succeeded in getting the gd backend
compiled on windows. If you have some expertise here and are willing
to share, or better yet build a gdmodule and gd installer that I can
put on the website, I would be very much obliged! I contacted the
gdmodule maintainer some time ago over this issue and he had never
built it on windows either. In my googling, I discovered the perl gd
module for windows and following their lead, succeeded in building gd
lib, but ran into some troubles (can't remember what) building
gdmodule.
Kuzminski> If I set the dpi to over 60 the png file that gets
Kuzminski> generated is 'empty', it's only 17 bytes long. As soon
Kuzminski> as I drop he DPI to below 65 or so, I get the image
Kuzminski> file correctly. This is with the simple_plot.py
Kuzminski> example.
Now on to your problem. Is there a typo here? You say over 60 is
empty and under 65 is ok ?? Can you send me a script which replicates
the problem, with the two calls to savefig, one which has the problem
and which does not. Then I can begin to diagnose the problem; see if
it occurs under linux, see if it's a gd problem, see if it's a problem
on my end, etc....
Are you using matplotlib + GD for a web app server? =20
John Hunter=20
=20
|
|
From: Kuzminski, S. R <SKu...@fa...> - 2004-01-29 07:08:53
|
The windows GD build is bear. I had it completely working, then I
upgraded to 0.41 and took a few steps back. =20
First a little background. I'm building a reporting tool for a
commercial analytics platform. This tool takes an XML specification and
data, and outputs HTML tables and plots. The larger platform is all
Java, I am providing the reporting as an stand alone ( Python )
executable on Win32, Linux and Solaris. So my overall requirements are
to create HTML ( and hence .png images ) on all three platforms with a
distribution of a single binary file ( one for each platform ).
Here are some quick notes on what I have had to do, once it is working,
I will provide at least the MSVC makefiles an maybe a binary build, time
permitting. =20
the GD backend has these dependencies..
libpng
zlib
gd
freetype
gdmodule
The 2 main problems I seem to have are that the dll release of GD does
not include a gd.lib. ( MSVC needs a .lib to link with a .dll ) GD does
not seem to come with a windows make file, so I made one. =20
The other problem is that _gdmodule.c needs to have line 1882 changed to
pass a NULL to PYObject_HEAD_INIT=20
...
static PyTypeObject Imagetype =3D {
PyObject_HEAD_INIT(NULL)
...
I am working on this currently and will post more results as I get them.
thanks,
Stefan
-----Original Message-----
From: John Hunter [mailto:jdh...@ni...]=20
Sent: Friday, January 23, 2004 6:58 AM
To: Kuzminski, Stefan R
Cc: mat...@li...
Subject: Re: [Matplotlib-users] broken PNG files with GD backend
>>>>> "Kuzminski," =3D=3D Kuzminski, Stefan R <SKu...@fa...>
writes:
Kuzminski> Now on to my specific problem. I'm using the GD
Kuzminski> backend on Windows with Matplotlib 0.41. =20
First things first -- I haven't succeeded in getting the gd backend
compiled on windows. If you have some expertise here and are willing
to share, or better yet build a gdmodule and gd installer that I can
put on the website, I would be very much obliged! I contacted the
gdmodule maintainer some time ago over this issue and he had never
built it on windows either. In my googling, I discovered the perl gd
module for windows and following their lead, succeeded in building gd
lib, but ran into some troubles (can't remember what) building
gdmodule.
Kuzminski> If I set the dpi to over 60 the png file that gets
Kuzminski> generated is 'empty', it's only 17 bytes long. As soon
Kuzminski> as I drop he DPI to below 65 or so, I get the image
Kuzminski> file correctly. This is with the simple_plot.py
Kuzminski> example.
Now on to your problem. Is there a typo here? You say over 60 is
empty and under 65 is ok ?? Can you send me a script which replicates
the problem, with the two calls to savefig, one which has the problem
and which does not. Then I can begin to diagnose the problem; see if
it occurs under linux, see if it's a gd problem, see if it's a problem
on my end, etc....
Are you using matplotlib + GD for a web app server? =20
John Hunter=20
=20
|