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
(6) |
4
(2) |
5
(7) |
6
(9) |
7
(8) |
8
(1) |
|
9
(1) |
10
(1) |
11
(11) |
12
(1) |
13
(11) |
14
(7) |
15
(1) |
|
16
|
17
|
18
(1) |
19
|
20
(1) |
21
(2) |
22
(1) |
|
23
(1) |
24
(2) |
25
(3) |
26
(2) |
27
(2) |
28
(2) |
29
(5) |
|
30
(1) |
|
|
|
|
|
|
|
From: Michael M. F. <mic...@gm...> - 2013-06-14 20:24:47
|
I am trying to rasterize the fancy arrows drawn by the lovely streamplot() function, but am running into major problems since the arrows are drawn at a very late stage (to preserve their aspect ratio).
--------------
from pylab import *
fig = figure(figsize=(10,5))
x = linspace(-1,1,10)[:, None]
x = linspace(-1,1,10)[:, None]
y = x.T
# Why don't the first two work... it is annoying. Is it a "bug" or a feature?
#s = streamplot(x, y, x+0*y, y+0*x)
#s = streamplot(x.flat, y.flat, x+0*y, y+0*x)
s = streamplot(x.ravel(), y.ravel(), x+0*y, y+0*x,
density=0.5, arrowstyle='->', arrowsize=2.0)
setp(s.lines, rasterized=True) # This works fine.
setp(s.arrows, rasterized=True) # This has no effect (bug?)
setp(s.arrows, visible=False) # This also has no effect (bug?)
# Let's get the patches instead
ax = gca()
#setp(ax.patches, rasterized=True) # The FancyArrowPatchs are here
# This does not rasterize the arrows, giving multiple warnings:
# UserWarning: Rasterization of 'FancyArrowPatch(...)' will be ignored
savefig('tst1.pdf')
# How about rasterizing the whole axis
ax.set_rasterized(True)
savefig('tst2.pdf') # Weird results! (Bug?) Also rasterizes labels.
savefig('tst.png') # This works, except that labels rasterized too.
------------
The problem appears to be that FancyArrowPatch objects are transformed late in the game (so that the arrow-heads etc. are in proper proportions), and rasterization seems to need to occur at an earlier stage. The arrows are in the axes, so there is no upper-level container to rasterize them but not the axes labels etc. Rasterizing the axes (tst2.pdf) does rasterize the arrows, but also the labels, and does something really wonky with the plot (the streamlines and axis frame are completely unaligned… most definitely a bug, but I need to track down exactly where this broke or if it has been fixed).
Saving to png works, but also rasterizes the labels and ticks which I want to avoid.
Is there a robust way to convert the FancyArrowPatch objects to something not-fancy at some point once I have fixed the size of the axis, figure etc. so that I can then rasterize the appropriate elements only? Are the other behaviours noted in the comments bugs (in which case I will open some incidents)?
Thanks,
Michael.
|
|
From: Daniel M. <dan...@go...> - 2013-06-14 17:56:34
|
ah, should have been: ax1.grid() ax2.grid() ax1.yaxis.grid(False) |
|
From: Daniel M. <dan...@go...> - 2013-06-14 17:51:29
|
Hi Paul, thanks for your efforts, I've figured it out by myself by now, with you pieces of code: ax1.grid() ax2.grid() ax1.xaxis.grid(False) does the trick :) |
|
From: Paul H. <pmh...@gm...> - 2013-06-14 15:56:01
|
On Thu, Jun 13, 2013 at 1:33 PM, Daniel Mader <
dan...@go...> wrote:
> Hi Paul,
>
> I've modified your suggestion a little, since I don't want a grid for the
> primary axis at all -- unfortunately to no avail, i.e. no grid line at all:
>
> import numpy
>
> import matplotlib
>
> matplotlib.use('agg')
>
> import matplotlib.pyplot as plt
>
>
> datax = numpy.arange(50)
>
> data1 = numpy.sin(datax)*1.5
>
> data2 = datax**2
>
>
> plt.close('all')
>
>
> fig = plt.figure()
>
> ax1 = fig.add_subplot(111)
>
> ax2 = ax1.twinx()
>
>
> ax1.plot(datax, data1, 'x')
>
> ax2.plot(datax, data2, '--')
>
>
> #for ax in [ax1, ax2]:
>
> # ax.xaxis.grid(True, which='both') # `which` can be 'minor', 'major', or
> 'both'
>
> # ax.yaxis.grid(True, which='both')
>
>
> ax2.xaxis.grid(True, which='both')
>
> ax2.yaxis.grid(True, which='both')
>
>
> fig.savefig('twinxgrid.png')
>
> #fig.show()
>
>
>
Try throwing this in there:
ax1.xaxis.grid(False, which='both')
ax1.yaxis.grid(False, which='both')
|
|
From: Paul H. <pmh...@gm...> - 2013-06-14 15:35:59
|
On Thu, Jun 13, 2013 at 11:40 PM, Sudheer Joseph <sud...@ya...>wrote: > Thank you, > I don't see a way other than starting in normal mode as the moment I type > plot command it get displayed and I don't need to do a show command. > In the qtconsole, you can enter multi-line mode with crtl+enter. |
|
From: Sudheer J. <sud...@ya...> - 2013-06-14 06:40:54
|
Thank you, I don't see a way other than starting in normal mode as the moment I type plot command it get displayed and I don't need to do a show command. With best regards sudheer |
|
From: Sudheer J. <sud...@ya...> - 2013-06-14 01:33:39
|
Thank you Roban,
Your that trick worked,
if I keep ts.plot(), savefig('ts.pdf') both on same line it works!
with best regards
Sudheer
***************************************************************
Sudheer Joseph
Indian National Centre for Ocean Information Services
Ministry of Earth Sciences, Govt. of India
POST BOX NO: 21, IDA Jeedeemetla P.O.
Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55
Tel:+91-40-23886047(O),Fax:+91-40-23895011(O),
Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile)
E-mail:sjo...@gm...;sud...@ya...
Web- http://oppamthadathil.tripod.com
***************************************************************
>________________________________
> From: Roban Kramer <ro...@gm...>
>To: sud...@ya...
>Cc: Paul Hobson <pmh...@gm...>; "mat...@li..." <mat...@li...>
>Sent: Thursday, 13 June 2013 8:12 PM
>Subject: Re: [Matplotlib-users] savefig
>
>
>
>savefig works for me when I put both the plotting commands and the savefig call in the *same* code cell.
>
>
>
>On Thu, Jun 13, 2013 at 10:31 AM, Sudheer Joseph <sud...@ya...> wrote:
>
>Thank you,
>>I don't see a way other than starting in normal mode as the moment I type plot command it get displayed and I don't need to do a show command.
>>With best regards sudheer
>>
>>
>>
>>________________________________
>> From: Paul Hobson <pmh...@gm...>;
>>To: Sudheer Joseph <sud...@ya...>;
>>Cc: mat...@li... <mat...@li...>;
>>Subject: Re: [Matplotlib-users] savefig
>>Sent: Thu, Jun 13, 2013 2:23:05 PM
>>
>>
>>
>>
>>
>>On Wed, Jun 12, 2013 at 10:28 PM, Sudheer Joseph <sud...@ya...> wrote:
>>
>>Dear experts,
>>>I start ipython in ipython qtconsole --pylab=inline mode and make a plot. But if I use savefig('fig.png') the figure do not get saved instead I get a blank page.
>>>
>>> I also tried img.save('fig.png',png) but no use. Is there a way out or I need to do this after quitting and restarting in normal mode each time I want to save?
>>>
>>>ipython qtconsole --pylab=inline
>>>
>>>
>>>In [93]: ts.plot()
>>>Out[93]: <matplotlib.axes.AxesSubplot at 0x9135490>
>>>
>>
>>
>>The fig is destroyed after it has been displayed by the console. Try saving it before it gets shown.
>>-p
>>------------------------------------------------------------------------------
>>This SF.net email is sponsored by Windows:
>>
>>Build for Windows Store.
>>
>>http://p.sf.net/sfu/windows-dev2dev
>>_______________________________________________
>>Matplotlib-users mailing list
>>Mat...@li...
>>https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
>
>
>
|