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) |
2
(5) |
3
(8) |
4
(6) |
5
(9) |
6
(7) |
|
7
(6) |
8
(10) |
9
(27) |
10
(7) |
11
(22) |
12
(13) |
13
(7) |
|
14
(4) |
15
(12) |
16
(32) |
17
(26) |
18
(14) |
19
(1) |
20
(11) |
|
21
(6) |
22
(11) |
23
(17) |
24
(18) |
25
(28) |
26
(11) |
27
(6) |
|
28
(1) |
29
(10) |
30
(12) |
|
|
|
|
|
From: Eric F. <ef...@ha...> - 2008-09-06 22:13:25
|
David Goldsmith wrote:
> Thanks, Eric!
>
> --- On Sat, 9/6/08, Eric Firing <ef...@ha...> wrote:
>
> -- snip OP --
>
>> It looks to me like you simply ran out of memory--this is
>> not an imshow
>> problem as such. Your array is about 1e8 elements, and as
>> floats that
>> would be close to a GB--just for that array alone. Do you
>
> Well, I anticipated that, so I do initialize the storage for the numpy array as numpy.uint8 and have confirmed that the data in the array returned by the function which creates it remains numpy.uint8, so it should "only" be ~100MB (indeed, the .na file into which I tofile it is 85,430 KB, just as it should be for a 10800 x 8100 array of uint8 elements). And the ax.imshow statement doesn't (directly) cause the crash (but I don't know that it isn't making either a float copy or an in-place conversion of the array). So, AFAIK, right up until the statement:
>
> canvas.print_figure('HiResHex')
>
> the data being imaged are all numpy.uint8 type.
Yes, but it looks to me like they are still getting color-mapped, and
this requires conversion to numpy.float. This may be a bad aspect of
the mpl design, but it is quite deeply embedded. I suspect the best we
could do would be to use float32 instead of float64; certainly for color
mapping one does not need 64 bits.
Using numpy.uint8 helps only if you are specifying RGBA directly,
bypassing the colormapping.
>
>> really need
>> all that resolution?
>
> Well, there's the rub: I fancy myself a fractal "artist" and I have
> access to an HP DesignJet 500ps plotter with a maximum resolution of
> 1200 x 600 dpi. For the size images I'm trying to make (I'm hoping to go
> even bigger than 36" x 27", but I figured that as a good starting point)
> even I regard _that_ resolution as too much - I was thinking of 300 x
> 300 dpi (which is its "normal" resolution) as certainly worthy of giving
> a try. :-)
>> If you do, you will probably have to
>> get a much
>> more capable machine.
>
> Possible, but I was hoping to generate at least one "proof" first to determine how hard I'd need to try.
>
>> Otherwise, you need to knock down
>> the size of
>> that array before trying to plot or otherwise manipulate
>> it.
>
> Forgive me, but I'd like a more detailed explanation as to why: I
> have
> ample (~35 GB, just on my built-in disc, much more than that on external
> discs) harddisc space - isn't there some way to leverage that?
I don't know enough about virtual memory implementations--especially on
Win or Mac--to say. In practice, I suspect you would find that as soon
as you are doing major swapping during a calculation, you will thrash
the disk until you run out of patience.
>> With respect to imshow, probably you can get it to handle
>> larger images
>
> Again, imshow doesn't appear to be the culprit (contrary to my
> original subject line), rather it would appear to be
> canvas.print_figure. (While I'm on the subject of canvas.print_figure,
> isn't there some way for MPL to "splash" the image directly to the
> screen, without first having to write to a file? I didn't ask this
> before because I did eventually want to write the image to a file, but I
> would prefer to do so only after I've had a look at it.)
It is imshow in the sense that most of the action in mpl doesn't happen
when you call imshow or plot or whatever--they just set things up. The
real work is done in the backend when you display with show() or write
to a file.
>> if you feed them in as NxMx4 numpy.uint8 RGBA arrays--but I
>> doubt this
>> is going to be enough, or the right approach, for your
>> present situation.
>
> Right: I don't see how that would be better than having a single 8
> bit
> datum at each point w/ color being determined from a color map (which is
> how I'd prefer to do it anyway).
The way it is better is that it avoids a major operation, including the
generation of the double-precision array. The rgba array can go
straight to agg.
Eric
> Thanks again,
>
> DG
>> Eric
>>
>>> Platform Details: MPL 0.91.2 (sorry, I didn't
>> realize I was running such an old version, maybe I just need
>> to upgrade?), Python 2.5.2, Windows XP 2002 SP3, 504MB
>> physical RAM, 1294MB VM Page size (1000MB init., 5000MB max)
>>> Thanks!
>>>
>>> DG
|
|
From: Eric F. <ef...@ha...> - 2008-09-06 21:43:11
|
dmitrey wrote: > hi all, > matplotlib says it's similar to MATLAB's plot tool, however, using > plot(..., 'p') plots pentagram instead of star. It makes my (Python > scikits.openopt) graphic output of numerical convergence look uglier > than MATLAB version. > > So is plotting a star intended to be ever implemented? Dmitrey, It was easy, so I added a 5-point star to the set of available markers in svn. Use plot(..., '*'). 'p' was already taken, and '*' seems more mnemonic--I would never think of 'p' as indicating a star. Eric > Thank you in advance, Dmitrey |
|
From: David G. <d_l...@ya...> - 2008-09-06 21:15:44
|
Thanks, Eric!
--- On Sat, 9/6/08, Eric Firing <ef...@ha...> wrote:
-- snip OP --
> It looks to me like you simply ran out of memory--this is
> not an imshow
> problem as such. Your array is about 1e8 elements, and as
> floats that
> would be close to a GB--just for that array alone. Do you
Well, I anticipated that, so I do initialize the storage for the numpy array as numpy.uint8 and have confirmed that the data in the array returned by the function which creates it remains numpy.uint8, so it should "only" be ~100MB (indeed, the .na file into which I tofile it is 85,430 KB, just as it should be for a 10800 x 8100 array of uint8 elements). And the ax.imshow statement doesn't (directly) cause the crash (but I don't know that it isn't making either a float copy or an in-place conversion of the array). So, AFAIK, right up until the statement:
canvas.print_figure('HiResHex')
the data being imaged are all numpy.uint8 type.
> really need
> all that resolution?
Well, there's the rub: I fancy myself a fractal "artist" and I have access to an HP DesignJet 500ps plotter with a maximum resolution of 1200 x 600 dpi. For the size images I'm trying to make (I'm hoping to go even bigger than 36" x 27", but I figured that as a good starting point) even I regard _that_ resolution as too much - I was thinking of 300 x 300 dpi (which is its "normal" resolution) as certainly worthy of giving a try. :-)
> If you do, you will probably have to
> get a much
> more capable machine.
Possible, but I was hoping to generate at least one "proof" first to determine how hard I'd need to try.
> Otherwise, you need to knock down
> the size of
> that array before trying to plot or otherwise manipulate
> it.
Forgive me, but I'd like a more detailed explanation as to why: I have ample (~35 GB, just on my built-in disc, much more than that on external discs) harddisc space - isn't there some way to leverage that?
> With respect to imshow, probably you can get it to handle
> larger images
Again, imshow doesn't appear to be the culprit (contrary to my original subject line), rather it would appear to be canvas.print_figure. (While I'm on the subject of canvas.print_figure, isn't there some way for MPL to "splash" the image directly to the screen, without first having to write to a file? I didn't ask this before because I did eventually want to write the image to a file, but I would prefer to do so only after I've had a look at it.)
> if you feed them in as NxMx4 numpy.uint8 RGBA arrays--but I
> doubt this
> is going to be enough, or the right approach, for your
> present situation.
Right: I don't see how that would be better than having a single 8 bit datum at each point w/ color being determined from a color map (which is how I'd prefer to do it anyway).
Thanks again,
DG
>
> Eric
>
> >
> > Platform Details: MPL 0.91.2 (sorry, I didn't
> realize I was running such an old version, maybe I just need
> to upgrade?), Python 2.5.2, Windows XP 2002 SP3, 504MB
> physical RAM, 1294MB VM Page size (1000MB init., 5000MB max)
> >
> > Thanks!
> >
> > DG
|
|
From: Eric F. <ef...@ha...> - 2008-09-06 20:10:05
|
David Goldsmith wrote:
> Hi! I'm trying to display a 10800 x 8100 pixel image w/ imshow using the following code (adapted from a response to a previous post of mine):
>
> from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
> from matplotlib.figure import Figure
>
> fig = Figure(figsize=(36,27),
> dpi=300,
> frameon=False)
> canvas = FigureCanvas(fig)
> ax = fig.add_subplot(111, xticks=[], yticks=[])
> cmap = MPL.cm.get_cmap('prism_r')
> ax.imshow(result, cmap=cmap)
> canvas.print_figure('HiResHex')
>
> I get the following error report:
>
> Traceback (most recent call last):
> File "Hex.py", line 208, in <module>
> canvas.print_figure('HiResHex')
> File "C:\python25\lib\site-packages\matplotlib\backend_bases.py", line 1201, i
> n print_figure
> self.figure.canvas.draw()
> File "C:\python25\lib\site-packages\matplotlib\backends\backend_agg.py", line
> 358, in draw
> self.figure.draw(self.renderer)
> File "C:\python25\lib\site-packages\matplotlib\figure.py", line 624, in draw
> for a in self.axes: a.draw(renderer)
> File "C:\python25\lib\site-packages\matplotlib\axes.py", line 1305, in draw
> for im in self.images if im.get_visible()]
> File "C:\python25\lib\site-packages\matplotlib\image.py", line 131, in make_im
> age
> x = self.to_rgba(self._A, self._alpha)
> File "C:\python25\lib\site-packages\matplotlib\cm.py", line 75, in to_rgba
> x = self.norm(x)
> File "C:\python25\lib\site-packages\matplotlib\colors.py", line 593, in __call
> __
> val = ma.asarray(value).astype(npy.float)
> File "C:\python25\lib\site-packages\numpy\core\ma.py", line 1151, in astype
> d = self._data.astype(tc)
> MemoryError
>
> Is there some maximum number of pixels imshow can handle? Any other suggestions?
David,
It looks to me like you simply ran out of memory--this is not an imshow
problem as such. Your array is about 1e8 elements, and as floats that
would be close to a GB--just for that array alone. Do you really need
all that resolution? If you do, you will probably have to get a much
more capable machine. Otherwise, you need to knock down the size of
that array before trying to plot or otherwise manipulate it.
With respect to imshow, probably you can get it to handle larger images
if you feed them in as NxMx4 numpy.uint8 RGBA arrays--but I doubt this
is going to be enough, or the right approach, for your present situation.
Eric
>
> Platform Details: MPL 0.91.2 (sorry, I didn't realize I was running such an old version, maybe I just need to upgrade?), Python 2.5.2, Windows XP 2002 SP3, 504MB physical RAM, 1294MB VM Page size (1000MB init., 5000MB max)
>
> Thanks!
>
> DG
|
|
From: David G. <d_l...@ya...> - 2008-09-06 18:14:28
|
Oh, forgot to mention: same code works fine on a smaller (fewer pixels) image.
DG
--- On Sat, 9/6/08, David Goldsmith <d_l...@ya...> wrote:
> From: David Goldsmith <d_l...@ya...>
> Subject: [Matplotlib-users] imshow size limitations?
> To: mat...@li...
> Date: Saturday, September 6, 2008, 10:46 AM
> Hi! I'm trying to display a 10800 x 8100 pixel image w/
> imshow using the following code (adapted from a response to
> a previous post of mine):
>
> from matplotlib.backends.backend_agg import FigureCanvasAgg
> as FigureCanvas
> from matplotlib.figure import Figure
>
> fig = Figure(figsize=(36,27),
> dpi=300,
> frameon=False)
> canvas = FigureCanvas(fig)
> ax = fig.add_subplot(111, xticks=[], yticks=[])
> cmap = MPL.cm.get_cmap('prism_r')
> ax.imshow(result, cmap=cmap)
> canvas.print_figure('HiResHex')
>
> I get the following error report:
>
> Traceback (most recent call last):
> File "Hex.py", line 208, in <module>
> canvas.print_figure('HiResHex')
> File
> "C:\python25\lib\site-packages\matplotlib\backend_bases.py",
> line 1201, i
> n print_figure
> self.figure.canvas.draw()
> File
> "C:\python25\lib\site-packages\matplotlib\backends\backend_agg.py",
> line
> 358, in draw
> self.figure.draw(self.renderer)
> File
> "C:\python25\lib\site-packages\matplotlib\figure.py",
> line 624, in draw
> for a in self.axes: a.draw(renderer)
> File
> "C:\python25\lib\site-packages\matplotlib\axes.py",
> line 1305, in draw
> for im in self.images if im.get_visible()]
> File
> "C:\python25\lib\site-packages\matplotlib\image.py",
> line 131, in make_im
> age
> x = self.to_rgba(self._A, self._alpha)
> File
> "C:\python25\lib\site-packages\matplotlib\cm.py",
> line 75, in to_rgba
> x = self.norm(x)
> File
> "C:\python25\lib\site-packages\matplotlib\colors.py",
> line 593, in __call
> __
> val = ma.asarray(value).astype(npy.float)
> File
> "C:\python25\lib\site-packages\numpy\core\ma.py",
> line 1151, in astype
> d = self._data.astype(tc)
> MemoryError
>
> Is there some maximum number of pixels imshow can handle?
> Any other suggestions?
>
> Platform Details: MPL 0.91.2 (sorry, I didn't realize I
> was running such an old version, maybe I just need to
> upgrade?), Python 2.5.2, Windows XP 2002 SP3, 504MB physical
> RAM, 1294MB VM Page size (1000MB init., 5000MB max)
>
> Thanks!
>
> DG
>
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move
> Developer's challenge
> Build the coolest Linux based applications with Moblin SDK
> & win great prizes
> Grand prize is a trip for two to an Open Source event
> anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
|
|
From: David G. <d_l...@ya...> - 2008-09-06 17:46:37
|
Hi! I'm trying to display a 10800 x 8100 pixel image w/ imshow using the following code (adapted from a response to a previous post of mine):
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
from matplotlib.figure import Figure
fig = Figure(figsize=(36,27),
dpi=300,
frameon=False)
canvas = FigureCanvas(fig)
ax = fig.add_subplot(111, xticks=[], yticks=[])
cmap = MPL.cm.get_cmap('prism_r')
ax.imshow(result, cmap=cmap)
canvas.print_figure('HiResHex')
I get the following error report:
Traceback (most recent call last):
File "Hex.py", line 208, in <module>
canvas.print_figure('HiResHex')
File "C:\python25\lib\site-packages\matplotlib\backend_bases.py", line 1201, i
n print_figure
self.figure.canvas.draw()
File "C:\python25\lib\site-packages\matplotlib\backends\backend_agg.py", line
358, in draw
self.figure.draw(self.renderer)
File "C:\python25\lib\site-packages\matplotlib\figure.py", line 624, in draw
for a in self.axes: a.draw(renderer)
File "C:\python25\lib\site-packages\matplotlib\axes.py", line 1305, in draw
for im in self.images if im.get_visible()]
File "C:\python25\lib\site-packages\matplotlib\image.py", line 131, in make_im
age
x = self.to_rgba(self._A, self._alpha)
File "C:\python25\lib\site-packages\matplotlib\cm.py", line 75, in to_rgba
x = self.norm(x)
File "C:\python25\lib\site-packages\matplotlib\colors.py", line 593, in __call
__
val = ma.asarray(value).astype(npy.float)
File "C:\python25\lib\site-packages\numpy\core\ma.py", line 1151, in astype
d = self._data.astype(tc)
MemoryError
Is there some maximum number of pixels imshow can handle? Any other suggestions?
Platform Details: MPL 0.91.2 (sorry, I didn't realize I was running such an old version, maybe I just need to upgrade?), Python 2.5.2, Windows XP 2002 SP3, 504MB physical RAM, 1294MB VM Page size (1000MB init., 5000MB max)
Thanks!
DG
|
|
From: David Warde-F. <dw...@cs...> - 2008-09-06 06:07:11
|
On 4-Sep-08, at 10:03 PM, Josh Lawrence wrote: > Hey all, > > When I plot using python 2.5.2 and matplotlib 0.98.3 (and 0.98.1) I > have the following problem. If I run a script from the command line > that plots and saves the figure, I get the default aspect ratio of (8, > 6). If, however, I close the plotting window and replot without > exiting the python prompt and starting anew, the aspect changes to > something like (8, 6.04). I can reliably get the (8, 6) aspect ratio > if I quit the python prompt and load a new prompt. The problem only > comes after I close the plot window and replot. I just attempted to reproduce your problem with 0.98.3 and couldn't; I managed to get identical screenshots after closing the window and replotting. Several things you could tell us that might help isolate the problem: - What GUI backend? TkAgg I'm assuming? If you're unsure, import matplotlib and use the matplotlib.get_backend() function. - What plotting commands are you using? - Does the aspect ratio change if you do something simple like, say, import numpy from pylab import * x = numpy.randn(50,50) imshow(x) (close window) imshow(x) import numpy from pylab import * x = numpy.arange(1,10) plot(x, x**2) (close window) plot(x,x**2) Neither of these lead to an aspect ratio shift for me, on OS X 10.5 with the TkAgg backend, same version of matplotlib. David |