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
(6) |
|
3
|
4
(7) |
5
(10) |
6
(4) |
7
(17) |
8
(4) |
9
(1) |
|
10
(1) |
11
(19) |
12
(14) |
13
(8) |
14
(14) |
15
(9) |
16
(1) |
|
17
|
18
|
19
(8) |
20
(5) |
21
(7) |
22
(13) |
23
(1) |
|
24
|
25
(4) |
26
(2) |
27
(17) |
28
(13) |
29
(6) |
30
(6) |
|
31
(5) |
|
|
|
|
|
|
|
From: Andrew D. <da...@at...> - 2013-03-12 18:00:37
|
I tried this and although it sort-of works, it doesn't really do what I
need. I tried using this:
import matplotlib.pyplot as plt
import matplotlib.path as mpath
import numpy as np
import copy
# create figure and axes
fig = plt.figure(figsize=(6, 6))
ax = fig.add_axes([.1, .1, .8, .8])
ax.set_xlim([-3, 3])
ax.set_ylim([-3, 3])
# a circle at the origin with radius 1
circle = plt.Circle((0, 0), 1, transform=ax.transData,
edgecolor='k', facecolor='none')
# from Phil's example
exterior = mpath.Path.unit_rectangle()
interior = circle.get_path()
exterior = mpath.Path(copy.deepcopy(exterior.vertices),
copy.deepcopy(exterior.codes[:]))
interior.vertices = interior.vertices[::-1]
exterior.vertices *= 6
exterior.vertices -= 3
clip_path = mpath.Path(vertices=np.concatenate([exterior.vertices,
interior.vertices]),
codes=np.concatenate([exterior.codes,
interior.codes]))
# lines from the origin dividing the axes into 8 sectors
end_coords = [(3, 0), (3, 3), (0, 3), (-3, 3),
(-3, 0), (-3, -3), (0, -3), (3, -3)]
for x, y in end_coords:
line, = ax.plot((x, 0), (y, 0), color='k')
line.set_clip_path(clip_path, ax.transData)
ax.add_artist(circle)
plt.show()
and the result is the attached image with_clipping.png. You should see that
the circle is no longer circular, and also there are weird line width
issues. What I want it basically exactly like the attached
without_clipping.png but with paths inside the circle removed.
Thanks
On 12 March 2013 16:43, Phil Elson <pel...@gm...> wrote:
> You could just use paths which have holes in them, making the exterior so
> broad that you wouldn't notice the edge of the clipping. I've put together
> an example of doing just that:
>
> import matplotlib.pyplot as plt
> import matplotlib.path as mpath
> import matplotlib.collections as mcol
> import numpy as np
> import copy
>
>
> exterior = mpath.Path.unit_rectangle()
> exterior = mpath.Path(copy.deepcopy(exterior.vertices),
> copy.deepcopy(exterior.codes[:]))
> exterior.vertices *= 4
> exterior.vertices -= 2
> interior = mpath.Path.unit_circle()
> interior.vertices = interior.vertices[::-1]
> clip_path = mpath.Path(vertices=np.concatenate([exterior.vertices,
> interior.vertices]),
> codes=np.concatenate([exterior.codes,
> interior.codes]))
>
> star = mpath.Path.unit_regular_star(6)
> star.vertices *= 2.6
>
>
> ax = plt.subplot(321)
> col = mcol.PathCollection([clip_path], facecolor='yellow')
> ax.add_collection(col)
> ax.set_title('Clip path')
> ax.set_xlim([-3, 3])
> ax.set_ylim([-3, 3])
>
>
> ax = plt.subplot(322)
> col = mcol.PathCollection([star], facecolor='red')
> ax.add_collection(col)
> ax.set_title('Target polygon')
> ax.set_xlim([-3, 3])
> ax.set_ylim([-3, 3])
>
>
> ax = plt.subplot2grid((3, 2), (1, 0), colspan=2, rowspan=2)
> col = mcol.PathCollection([star])
> col.set_clip_path(clip_path, ax.transData)
> ax.add_collection(col)
>
> ax.set_title('Target polygon clipped by clip_path')
> ax.set_xlim([-3, 3])
> ax.set_ylim([-3, 3])
>
> plt.tight_layout()
>
> plt.show()
>
> [image: Inline images 1]
>
>
>
> There are other options if this doesn't cut the mustard.
>
> HTH,
>
>
>
>
>
>
>
> On 12 March 2013 15:37, Andrew Dawson <da...@at...> wrote:
>
>> Hi
>>
>> I'd like to be able to clip a line so that the portion of it lying
>> outside of a given polygon remains visible and the part that lies inside of
>> the polygon is not visible. What I want is basically the opposite of:
>>
>> line.set_clip_path(polygon)
>>
>> which leaves only the part of the line inside the polygon visible. Is
>> this possible?
>>
>> I know I can just fill the polygon with the background color or something
>> but this gets messy when there are other lines on the plot that don't need
>> to be clipped.
>>
>> Thanks,
>> Andrew
>>
>>
>> ------------------------------------------------------------------------------
>> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
>> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
>> endpoint security space. For insight on selecting the right partner to
>> tackle endpoint security challenges, access the full report.
>> http://p.sf.net/sfu/symantec-dev2dev
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
>
--
Dr Andrew Dawson
Atmospheric, Oceanic & Planetary Physics
Clarendon Laboratory
Parks Road
Oxford OX1 3PU, UK
Tel: +44 (0)1865 282438
Email: da...@at...
Web Site: http://www2.physics.ox.ac.uk/contacts/people/dawson
|
|
From: Benjamin R. <ben...@ou...> - 2013-03-12 17:20:55
|
On Tue, Mar 12, 2013 at 12:12 PM, Thomas Lecocq <thl...@ms...> wrote: > Dear all, > > I've successfully forked matplotlib.basemap to ThomasLecocq.basemap and > cloned ThomasLecocq.basemap to my machine. Now, how can I have this clone > be THE mpl_toolkits.basemap package, so I can make edits in the __init__.py > (that contains the Basemap class) and preview them "live" on this machine. > Once they are nice and OK, I can commit/push it to my master on github and > probably create a pull request to the matplotlib.basemap git ? > > Thanks a lot in advance, > > Thom > > You would build and install basemap from the git source as you would normally from a tarball source. Make modifications to the source, do a "python setup.py install", test, and repeat as needed. When happy, commit those changes to your local branch, push that branch up to your github account, and then from github make a PR. The instructions for basemap wouldn't be all that different from matplotlib, which can be found here: http://matplotlib.org/devel/gitwash/index.html Cheers! Ben Root |
|
From: Phil E. <pel...@gm...> - 2013-03-12 16:43:27
|
You could just use paths which have holes in them, making the exterior so
broad that you wouldn't notice the edge of the clipping. I've put together
an example of doing just that:
import matplotlib.pyplot as plt
import matplotlib.path as mpath
import matplotlib.collections as mcol
import numpy as np
import copy
exterior = mpath.Path.unit_rectangle()
exterior = mpath.Path(copy.deepcopy(exterior.vertices),
copy.deepcopy(exterior.codes[:]))
exterior.vertices *= 4
exterior.vertices -= 2
interior = mpath.Path.unit_circle()
interior.vertices = interior.vertices[::-1]
clip_path = mpath.Path(vertices=np.concatenate([exterior.vertices,
interior.vertices]),
codes=np.concatenate([exterior.codes,
interior.codes]))
star = mpath.Path.unit_regular_star(6)
star.vertices *= 2.6
ax = plt.subplot(321)
col = mcol.PathCollection([clip_path], facecolor='yellow')
ax.add_collection(col)
ax.set_title('Clip path')
ax.set_xlim([-3, 3])
ax.set_ylim([-3, 3])
ax = plt.subplot(322)
col = mcol.PathCollection([star], facecolor='red')
ax.add_collection(col)
ax.set_title('Target polygon')
ax.set_xlim([-3, 3])
ax.set_ylim([-3, 3])
ax = plt.subplot2grid((3, 2), (1, 0), colspan=2, rowspan=2)
col = mcol.PathCollection([star])
col.set_clip_path(clip_path, ax.transData)
ax.add_collection(col)
ax.set_title('Target polygon clipped by clip_path')
ax.set_xlim([-3, 3])
ax.set_ylim([-3, 3])
plt.tight_layout()
plt.show()
[image: Inline images 1]
There are other options if this doesn't cut the mustard.
HTH,
On 12 March 2013 15:37, Andrew Dawson <da...@at...> wrote:
> Hi
>
> I'd like to be able to clip a line so that the portion of it lying outside
> of a given polygon remains visible and the part that lies inside of the
> polygon is not visible. What I want is basically the opposite of:
>
> line.set_clip_path(polygon)
>
> which leaves only the part of the line inside the polygon visible. Is this
> possible?
>
> I know I can just fill the polygon with the background color or something
> but this gets messy when there are other lines on the plot that don't need
> to be clipped.
>
> Thanks,
> Andrew
>
>
> ------------------------------------------------------------------------------
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
> endpoint security space. For insight on selecting the right partner to
> tackle endpoint security challenges, access the full report.
> http://p.sf.net/sfu/symantec-dev2dev
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
|
|
From: Andrew D. <da...@at...> - 2013-03-12 16:13:51
|
Hi
I'd like to be able to clip a line so that the portion of it lying outside
of a given polygon remains visible and the part that lies inside of the
polygon is not visible. What I want is basically the opposite of:
line.set_clip_path(polygon)
which leaves only the part of the line inside the polygon visible. Is this
possible?
I know I can just fill the polygon with the background color or something
but this gets messy when there are other lines on the plot that don't need
to be clipped.
Thanks,
Andrew
|
|
From: Thomas L. <thl...@ms...> - 2013-03-12 16:12:30
|
Dear all, I've successfully forked matplotlib.basemap to ThomasLecocq.basemap and cloned ThomasLecocq.basemap to my machine. Now, how can I have this clone be THE mpl_toolkits.basemap package, so I can make edits in the __init__.py (that contains the Basemap class) and preview them "live" on this machine. Once they are nice and OK, I can commit/push it to my master on github and probably create a pull request to the matplotlib.basemap git ? Thanks a lot in advance, Thom ps : if this mail goes through and the previous didn't, might be becaused I did not use the forked term in the subject... ********************** Dr Thomas Lecocq Geologist Royal Observatory of Belgium - Seismology - ********************** |
|
From: Thomas L. <thl...@ms...> - 2013-03-12 16:08:53
|
Dear all, I've successfully forked matplotlib.basemap to ThomasLecocq.basemap and cloned ThomasLecocq.basemap to my machine. Now, how can I have this clone be THE mpl_toolkits.basemap package, so I can make edits in the __init__.py (that contains the Basemap class) and preview them "live" on this machine. Once they are nice and OK, I can commit/push it to my master on github and probably create a pull request to the matplotlib.basemap git ? Thanks a lot in advance, Thom ********************** Dr Thomas Lecocq Geologist Royal Observatory of Belgium - Seismology - ********************** |
|
From: Sudheer J. <sud...@ya...> - 2013-03-12 14:49:14
|
Thank You Phil, It did it correctly. TkAgg is good with interactive plotting. with best regards, Sudheer From:Phil Elson <pel...@gm...> To: Sudheer Joseph <sud...@ya...> Cc: "mat...@li..." <mat...@li...> Sent: Tuesday, 12 March 2013 7:53 PM Subject: Re: [Matplotlib-users] matplotlib multiple windows comparison I hadn't spotted you were using the WxAgg backend too - this looks like the same bug that Brendan reported yesterday. The easiest solution would be to use another back-end until this is fixed. Do you have 'TkAgg' available? I currently do not have a wx installation to hand to try out any workarounds at the moment. Regards, On 12 March 2013 14:00, Sudheer Joseph <sud...@ya...> wrote: Thank you Phil, > But I had tried it earlier after seeing a another mail thread. I get command prompt but no figure pops up. > > >In [3]: import matplotlib.pyplot as plt > > >In [4]: plt.ion() > > >In [5]: plt.plot(range(10)) >Out[5]: [<matplotlib.lines.Line2D at 0x410f250>] > > >In [6]: > > > Any way out?? >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: Phil Elson <pel...@gm...> >To: Sudheer Joseph <sud...@ya...> >Cc: "mat...@li..." <mat...@li...> >Sent: Tuesday, 12 March 2013 3:08 PM >Subject: Re: [Matplotlib-users] matplotlib multiple windows comparison > > > >Hi Sudheer, > >Try the interactive mode (http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.ion): > > >>>> import matplotlib.pyplot as plt >>>> plt.ion() >>>> plt.plot(range(10)) >[<matplotlib.lines.Line2D object at 0x1c565d0>] > >**a figure pops up here and hands you back the python command line** > > >>>> > > >Regards, > > > > > > > >On 12 March 2013 00:04, Sudheer Joseph <sud...@ya...> wrote: > >Dear experts, >>Is there a way to get back to the prompt after a plot is made and displayed with out closing the plot? >>The objective is to compare to plots or check some aspect about the plot made from the loaded variables. This is the standard behavior of matlab after plotting we get the prompt and we can make another plot if we want to compare 2. I know there is subplot option but it will be of small size if I need to make a spatial map at to time intervals and compare. The detail of my matplotlib is below >> >> >>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% >>I use Ubuntu 12.04 64 bit version >>and >> >> >>In [3]: matplotlib.get_backend() >>Out[3]: 'WXAgg' >> >> >>In [4]: matplotlib.__version__ >>Out[4]: '1.2.0' >> >> >>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 >>*************************************************************** >> >> >>________________________________ >>. >> >>------------------------------------------------------------------------------ >>Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester >>Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the >>endpoint security space. For insight on selecting the right partner to >>tackle endpoint security challenges, access the full report. >>http://p.sf.net/sfu/symantec-dev2dev >>_______________________________________________ >>Matplotlib-users mailing list >>Mat...@li... >>https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> > > > |
|
From: Phil E. <pel...@gm...> - 2013-03-12 14:23:23
|
I hadn't spotted you were using the WxAgg backend too - this looks like the same bug that Brendan reported yesterday. The *easiest* solution would be to use another back-end until this is fixed. Do you have 'TkAgg' available? I currently do not have a wx installation to hand to try out any workarounds at the moment. Regards, On 12 March 2013 14:00, Sudheer Joseph <sud...@ya...> wrote: > Thank you Phil, > But I had tried it earlier after seeing a > another mail thread. I get command prompt but no figure pops up. > > In [3]: import matplotlib.pyplot as plt > > In [4]: plt.ion() > > In [5]: plt.plot(range(10)) > Out[5]: [<matplotlib.lines.Line2D at 0x410f250>] > > In [6]: > > Any way out?? > 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:* Phil Elson <pel...@gm...> > *To:* Sudheer Joseph <sud...@ya...> > *Cc:* "mat...@li..." < > mat...@li...> > *Sent:* Tuesday, 12 March 2013 3:08 PM > *Subject:* Re: [Matplotlib-users] matplotlib multiple windows comparison > > Hi Sudheer, > > Try the interactive mode ( > http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.ion): > > > >>> import matplotlib.pyplot as plt > >>> plt.ion() > >>> plt.plot(range(10)) > [<matplotlib.lines.Line2D object at 0x1c565d0>] > > **a figure pops up here and hands you back the python command line** > > >>> > > Regards, > > > > > On 12 March 2013 00:04, Sudheer Joseph <sud...@ya...> wrote: > > Dear experts, > Is there a way to get back to the prompt after a plot is made and > displayed with out closing the plot? > The objective is to compare to plots or check some aspect about the plot > made from the loaded variables. This is the standard behavior of matlab > after plotting we get the prompt and we can make another plot if we want to > compare 2. I know there is subplot option but it will be of small size if I > need to make a spatial map at to time intervals and compare. The detail of > my matplotlib is below > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > I use Ubuntu 12.04 64 bit version > and > > In [3]: matplotlib.get_backend() > Out[3]: 'WXAgg' > > In [4]: matplotlib.__version__ > Out[4]: '1.2.0' > > 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 > *************************************************************** > ------------------------------ > *.* > > > > ------------------------------------------------------------------------------ > Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester > Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the > endpoint security space. For insight on selecting the right partner to > tackle endpoint security challenges, access the full report. > http://p.sf.net/sfu/symantec-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > > |
|
From: Werner F. B. <wer...@fr...> - 2013-03-12 14:11:28
|
Hi, Did some more testing with the "http://matplotlib.org/examples/user_interfaces/embedding_in_wx5.html" example and see the same problem/crash. Attached the slightly adapted version of the script (using wxPython 2.9 and wx.App instead of wx.SimpleApp which is deprecated in 2.9) and the setup.py script I used to generated the py2exe'd version. The py2exe'd version works without problem on my Intel Core i5 but crashes on an AMD Athlon 2400+ equiped PC. Anyone has some tips, ideas on how to track this down? Best regards Werner On 11/03/2013 20:02, Werner F. Bruhin wrote: > Hi, > > Some time ago I tried to upgrade from an old version of mpl 0.99 to 1.0 > but couldn't get it to work with py2exe and running on a Athlon PC. > > I finally got around to upgrade things and have another go at this. > > I am now on: > Python 2.7 > Numpy 1.6.1 /arch nosse > mpl 1.2.0 > > I see a hard crash on the Athlon PC (i.e. no traceback and the MS Win > error "App encountered a problem, do you want to report to MS". > > Trying to narrow it down I don't think it has to do with numpy as I use > it elsewhere in the app together with wxPython/FloatCanvas without any > issue and when I track where the crash is happening with print > statements it happens on this line: > > print 'plot panel 1' > > # initialize matplotlib stuff > self.figure = mpl.figure.Figure(figsize=(5, 4), dpi=75, > facecolor='white', > edgecolor='white') > print 'plot panel 2' > > I still see the first print statement but not the second, my imports are > as follows: > > import matplotlib as mpl > mpl.use('WXAgg') > from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as > FigureCanvas > > I know I don't provide a lot of information (at least not yet), but has > anyone come across some similar crash with py2exe and mpl when one > creates a Figure? > > Any tips on how to further narrow this down or even better on what is > needed to fix it are very welcome. > > Best regards > Werner > > ------------------------------------------------------------------------------ > Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester > Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the > endpoint security space. For insight on selecting the right partner to > tackle endpoint security challenges, access the full report. > http://p.sf.net/sfu/symantec-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
|
From: Sudheer J. <sud...@ya...> - 2013-03-12 14:00:42
|
Thank you Phil, But I had tried it earlier after seeing a another mail thread. I get command prompt but no figure pops up. In [3]: import matplotlib.pyplot as plt In [4]: plt.ion() In [5]: plt.plot(range(10)) Out[5]: [<matplotlib.lines.Line2D at 0x410f250>] In [6]: Any way out?? 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: Phil Elson <pel...@gm...> To: Sudheer Joseph <sud...@ya...> Cc: "mat...@li..." <mat...@li...> Sent: Tuesday, 12 March 2013 3:08 PM Subject: Re: [Matplotlib-users] matplotlib multiple windows comparison Hi Sudheer, Try the interactive mode (http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.ion): >>> import matplotlib.pyplot as plt >>> plt.ion() >>> plt.plot(range(10)) [<matplotlib.lines.Line2D object at 0x1c565d0>] **a figure pops up here and hands you back the python command line** >>> Regards, On 12 March 2013 00:04, Sudheer Joseph <sud...@ya...> wrote: Dear experts, >Is there a way to get back to the prompt after a plot is made and displayed with out closing the plot? >The objective is to compare to plots or check some aspect about the plot made from the loaded variables. This is the standard behavior of matlab after plotting we get the prompt and we can make another plot if we want to compare 2. I know there is subplot option but it will be of small size if I need to make a spatial map at to time intervals and compare. The detail of my matplotlib is below > > >%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% >I use Ubuntu 12.04 64 bit version >and > > >In [3]: matplotlib.get_backend() >Out[3]: 'WXAgg' > > >In [4]: matplotlib.__version__ >Out[4]: '1.2.0' > > >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 >*************************************************************** > > >________________________________ >. > >------------------------------------------------------------------------------ >Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester >Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the >endpoint security space. For insight on selecting the right partner to >tackle endpoint security challenges, access the full report. >http://p.sf.net/sfu/symantec-dev2dev >_______________________________________________ >Matplotlib-users mailing list >Mat...@li... >https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
|
From: Phil E. <pel...@gm...> - 2013-03-12 09:52:23
|
I don't know of any reason why one shouldn't be able to use the wxAgg
backend interactively.
This looks like a bug to me. Would you mind adding this as an issue on the
github issue tracker?
Thanks,
On 11 March 2013 19:06, Brendan Barnwell <bre...@br...> wrote:
> I'm 64-bit Windows 7 with matplotlib 1.2.0 and WxPython 2.8.12.1.
> I
> was fiddling around with some of the different backends to see what
> they look like and I found that the WxAgg backend doesn't work:
>
> Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit
> (AMD64)] on win
> 32
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import matplotlib as mpl
> >>> mpl.use('WxAgg')
> >>> from matplotlib import pyplot
> >>> pyplot.ion()
> >>> pyplot.plot([1, 2, 3])
> [<matplotlib.lines.Line2D object at 0x0000000006757DA0>]
> >>>
>
> When I do the plot, the figure windows appears, but it's blank
> (without even a proper blank background, just a white area) and
> immediately shows "Not responding". I have to kill the window, and
> doing so crashes the Python session. However, it works without the
> "ion()" call: I can then call show() and see the plot fine.
>
> I have wxPython working fine in other apps. In fact, what's
> especially odd is that I actually have an app that directly uses
> FigureCanvasWxAgg to embed matplotlib graphs in a GUI, and this seems
> to work fine. So it seems the problem is somehow in matplotlib's own
> management of the interactive figure window.
>
> There was a previous question about a similar WxAgg issue on the
> list
> (
>
> http://matplotlib.1069221.n5.nabble.com/trouble-with-show-not-drawing-in-interactive-mode-w-WxAgg-td39110.html
> ), but there was no real answer: the poster just decided not to use
> WxAgg. But aren't we really supposed to be able to use WxAgg
> interactively?
>
> Thanks,
> --
> Brendan Barnwell
> "Do not follow where the path may lead. Go, instead, where there is
> no path, and leave a trail."
> --author unknown
>
>
> ------------------------------------------------------------------------------
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
> endpoint security space. For insight on selecting the right partner to
> tackle endpoint security challenges, access the full report.
> http://p.sf.net/sfu/symantec-dev2dev
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
|
|
From: Phil E. <pel...@gm...> - 2013-03-12 09:46:56
|
Hi Mike, Do you have any code or an image to show the problem? Cheers, On 11 March 2013 20:44, Hearne, Mike <mh...@us...> wrote: > I have an issue with basemap.imshow() at higher latitudes - namely the > image (high-res topography, in this case) becomes distorted with > respect to the coastlines the higher I go. I assume it has to do > with the image pixels becoming more non-square the higher I go in > latitude. > > I found this discussion: > http://matplotlib.1069221.n5.nabble.com/Basemap-and-imshow-td14115.html > > where Jeff indicates that the user is using a non-rectangular map > projection. I'm thinking that is perhaps my problem (I'm using > Transverse Mercator), but I'm not sure which projections Basemap > supports that *are* rectangular. > > Or perhaps it's something else entirely. > > Any hints? > > Thanks, > > Mike Hearne > > > ------------------------------------------------------------------------------ > Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester > Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the > endpoint security space. For insight on selecting the right partner to > tackle endpoint security challenges, access the full report. > http://p.sf.net/sfu/symantec-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Phil E. <pel...@gm...> - 2013-03-12 09:38:49
|
Hi Sudheer, Try the interactive mode ( http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.ion): >>> import matplotlib.pyplot as plt >>> plt.ion() >>> plt.plot(range(10)) [<matplotlib.lines.Line2D object at 0x1c565d0>] **a figure pops up here and hands you back the python command line** >>> Regards, On 12 March 2013 00:04, Sudheer Joseph <sud...@ya...> wrote: > Dear experts, > Is there a way to get back to the prompt after a plot is made and > displayed with out closing the plot? > The objective is to compare to plots or check some aspect about the plot > made from the loaded variables. This is the standard behavior of matlab > after plotting we get the prompt and we can make another plot if we want to > compare 2. I know there is subplot option but it will be of small size if I > need to make a spatial map at to time intervals and compare. The detail of > my matplotlib is below > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > I use Ubuntu 12.04 64 bit version > and > > In [3]: matplotlib.get_backend() > Out[3]: 'WXAgg' > > In [4]: matplotlib.__version__ > Out[4]: '1.2.0' > > 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 > *************************************************************** > ------------------------------ > *.* > > > > ------------------------------------------------------------------------------ > Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester > Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the > endpoint security space. For insight on selecting the right partner to > tackle endpoint security challenges, access the full report. > http://p.sf.net/sfu/symantec-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
|
From: Sudheer J. <sud...@ya...> - 2013-03-12 00:04:43
|
Dear experts, Is there a way to get back to the prompt after a plot is made and displayed with out closing the plot? The objective is to compare to plots or check some aspect about the plot made from the loaded variables. This is the standard behavior of matlab after plotting we get the prompt and we can make another plot if we want to compare 2. I know there is subplot option but it will be of small size if I need to make a spatial map at to time intervals and compare. The detail of my matplotlib is below %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% I use Ubuntu 12.04 64 bit version and In [3]: matplotlib.get_backend() Out[3]: 'WXAgg' In [4]: matplotlib.__version__ Out[4]: '1.2.0' 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 *************************************************************** ________________________________ . |