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
(5) |
|
2
|
3
(3) |
4
(16) |
5
(8) |
6
(22) |
7
(10) |
8
(18) |
|
9
(11) |
10
(7) |
11
(16) |
12
(1) |
13
(10) |
14
(14) |
15
(2) |
|
16
(3) |
17
(19) |
18
(24) |
19
(35) |
20
(38) |
21
(27) |
22
(1) |
|
23
(9) |
24
(6) |
25
(24) |
26
(9) |
27
(7) |
28
(5) |
29
(9) |
|
30
(4) |
|
|
|
|
|
|
|
From: John H. <jd...@gm...> - 2008-11-20 14:46:56
|
On Thu, Nov 20, 2008 at 8:06 AM, Søren Nielsen <sor...@gm...> wrote: > Hi, > > I have a canvas with two subplot.. I want to be able to hide on of the > subplots by pushing a button and letting the remaining subplot fill the > entire canvas. > > If I use the set_visible(True) parameter I correctly remove one of the > subplots.. but the remaining subplot does not fill the canvas.. Anyone have > an idea of how to do this? You should be able to use the "change_geometry" method on the remaining subplot ax2.set_visible(False) ax1.change_geometry(1,1,1) fig.canvas.draw() JDH |
|
From: S. N. <sor...@gm...> - 2008-11-20 14:07:07
|
Hi, I have a canvas with two subplot.. I want to be able to hide on of the subplots by pushing a button and letting the remaining subplot fill the entire canvas. If I use the set_visible(True) parameter I correctly remove one of the subplots.. but the remaining subplot does not fill the canvas.. Anyone have an idea of how to do this? Thanks, Soren |
|
From: Mauro C. <mau...@gm...> - 2008-11-20 13:41:46
|
Dear ALL, In due time, I intend to compile as many suggestions and tips as possible to eventually create a "How-To" list for the superb Basemap module, like the very useful one which is on the Matplotlib home page. HTH Cheers, 2008/11/20 John Hunter <jd...@gm...>: > On Thu, Nov 20, 2008 at 7:12 AM, Darren Dale <dar...@co...> wrote: > >> You can use the subplot_adjust button on the toolbar for some degree of >> customization. But in general, it can be a somewhat time consuming to get >> the layout just right. I think it would be difficult for mpl to determine >> what the appropriate axes position should be given a certain figure and text >> size. > > There is a recipe on the web site for automatically shifting the left > side of the subplot over to make room for the ylabels > > http://matplotlib.sourceforge.net/faq/howto_faq.html#automatically-make-room-for-tick-labels > > It might be nice to make an option to handle the simple case > automatically, to expand or shrink the subplots so the text fits w/o > too much padding on any side. > > JDH > > ------------------------------------------------------------------------- > 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 > -- Dr. Mauro J. Cavalcanti Ecoinformatics Studio P.O. Box 46521, CEP 20551-970 Rio de Janeiro, RJ, BRASIL E-mail: mau...@gm... Web: http://studio.infobio.net Linux Registered User #473524 * Ubuntu User #22717 "Life is complex. It consists of real and imaginary parts." |
|
From: Robin <ro...@gm...> - 2008-11-20 13:35:41
|
On Thu, Nov 20, 2008 at 1:21 PM, John Hunter <jd...@gm...> wrote: > There is a recipe on the web site for automatically shifting the left > side of the subplot over to make room for the ylabels > > http://matplotlib.sourceforge.net/faq/howto_faq.html#automatically-make-room-for-tick-labels That's great - is there anything similar for axis labels (I haven't been using long tick labels - the problem I have is normal x and y axis labels are cut off) - or will that example also work? Thanks, Robin |
|
From: Robin <ro...@gm...> - 2008-11-20 13:34:04
|
Sorry! Forgot to send to the list since the reply-to isn't set properly... Thanks very much for your reply! On Thu, Nov 20, 2008 at 1:12 PM, Darren Dale <dar...@co...> wrote: > I think I know what causes this, I saw something similar in the Qt backends > a while back. When the mouse cursor enters the axes, the coordinates of the > cursor are reported in the statusbar/toolbar. The backend needs to be > configured so this text widget would rather run off the end of the window > than resize the window. I don't know how this is done in Tk, I've never > worked with that GUI library. Now you point it out it is clear that that is what is causing it. I'm using python.org python on a Mac and it's not clear to me how best to install Qt - so at the moment Tk is the only working backend I have. > You can use the subplot_adjust button on the toolbar for some degree of > customization. But in general, it can be a somewhat time consuming to get > the layout just right. I think it would be difficult for mpl to determine > what the appropriate axes position should be given a certain figure and text > size. I don't know about the widget - that is fantastic and it will make a huge difference... It is slightly confusing since I have been working with the set_position type numbers, but being able to change them interactively will save a lot of time. Another thing I've noticed is that the pdf output is always slightly different to the displayed output - for example some text might be cut off on the interactive view, but the saved pdf is fine... Is this also a known behaviour? Thanks again, Robin |
|
From: John H. <jd...@gm...> - 2008-11-20 13:21:14
|
On Thu, Nov 20, 2008 at 7:12 AM, Darren Dale <dar...@co...> wrote: > You can use the subplot_adjust button on the toolbar for some degree of > customization. But in general, it can be a somewhat time consuming to get > the layout just right. I think it would be difficult for mpl to determine > what the appropriate axes position should be given a certain figure and text > size. There is a recipe on the web site for automatically shifting the left side of the subplot over to make room for the ylabels http://matplotlib.sourceforge.net/faq/howto_faq.html#automatically-make-room-for-tick-labels It might be nice to make an option to handle the simple case automatically, to expand or shrink the subplots so the text fits w/o too much padding on any side. JDH |
|
From: Darren D. <dar...@co...> - 2008-11-20 13:12:59
|
On Thursday 20 November 2008 06:43:48 am Robin wrote: > Hi, > > I think matplotlib is a terrific tool, and it is a major component of > the open source toolset that has allowed me to stop using Matlab. > > But, whenever it comes to producing publication plots, there are a few > things I always find challenging - and I'm wondering if I'm doing > things wrong. > > First, what backend do people recommend for use on OS X? At the moment > I am using TkAgg. But is there any backend that will behave as a > proper OS X application ie allow window switching with cmd-`, maybe > allow use of the maximise button etc.? > > When producing publication size plots - ie 3x3 in or smaller (that > usually appear very small in the interactive window) there is an > annoying behaviour where any mouse over the graph seems to resize it - > the plot jumps around in size as I move the mouse over it. This is > mainly annoying because it means when producing a batch of plots for > later use, I have to be very careful not to mouse over, since once I > do that, I can no longer be sure it will return to the same size, so > the final set of images would have different sizes. If I accidently > mouse over I have to go back and recreate the plot. Is this a property > of the backend I am using? I think I know what causes this, I saw something similar in the Qt backends a while back. When the mouse cursor enters the axes, the coordinates of the cursor are reported in the statusbar/toolbar. The backend needs to be configured so this text widget would rather run off the end of the window than resize the window. I don't know how this is done in Tk, I've never worked with that GUI library. > Again, when working with small sizes, the procedure for chaning the > size of the figure is quite involved. As well as the standard problem > of making sure the text fits, nothing overlaps the image etc. > matplotlib doesn't seem to position the axes correctly in the figure - > the labels are usually cut off. So I have to manually experiment with > ax.set_position() by trial and error until I find a solution that > looks OK - but of course if I later change the size of the figure I > have to repeat this procedure. Is there an easier way to do this? You can use the subplot_adjust button on the toolbar for some degree of customization. But in general, it can be a somewhat time consuming to get the layout just right. I think it would be difficult for mpl to determine what the appropriate axes position should be given a certain figure and text size. Darren |
|
From: Jeff W. <js...@fa...> - 2008-11-20 13:10:58
|
Hrafnkell Pálsson wrote:
>
>
>> This will turn off the rendering of both the background rectangle as
>> well as all the ticks and their associated labels, ticklines and
>> gridlines. Perhaps Jeff can advise you vis-a-vis the basemap api what
>> the equivalent is
>>
>>
>
> Ok, I tested your example and see what you mean.
> But if I understood you correctly this won't allow me to retain the
> watermark and the dots I've used for marking cities.
> It would be nice if I could retain the whole background, if it wouldn't
> matter whether I retrieved the background or actually plotted it.
> But even just avoiding plotting the coastline every time would save a lot of
> time.
>
>
>
>
>> Perhaps Jeff can advise you vis-a-vis the basemap api what
>> the equivalent is
>>
>>
>
> Could you, Jeff, give me a nudge in the right direction? I've read through
> the basemap documentation but didn't notice anything that might help.
>
> Hrafnkell
>
Hrafnkell:
Had some time this morning, so I used John's method to create a working Basemap example:
import matplotlib
matplotlib.use('Agg')
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
# this example shows how to save a map background and
# reuse it in another figure.
# make sure we have all the same properties on all figs
figprops = dict(figsize=(8,6), dpi=100, facecolor='white')
# generate the first figure.
fig1 = plt.figure(1,**figprops)
ax1 = fig1.add_subplot(111)
# create basemap instance, plot coastlines.
map = Basemap(projection='moll',lon_0=0)
map.drawcoastlines()
map.drawmapboundary(fill_color='aqua')
map.fillcontinents(color='coral',lake_color='aqua')
fig1.canvas.draw()
background = fig1.canvas.copy_from_bbox(fig1.bbox)
fig1.savefig('figure1.png', dpi=100)
# generate the second figure, re-using the background
# from figure 1.
fig2 = plt.figure(2,frameon=False,**figprops)
ax2 = fig2.add_subplot(111, frameon=False, xticks=[], yticks=[])
# restore previous background.
fig2.canvas.restore_region(background)
# draw parallels and meridians on existing background.
map.drawparallels(range(-90,90,30))
map.drawmeridians(range(-180,180,60))
fig2.savefig('figure2.png', dpi=100)
I've added this to the basemap examples directory as save_background.py
HTH,
-Jeff
--
Jeffrey S. Whitaker Phone : (303)497-6313
NOAA/OAR/CDC R/PSD1 FAX : (303)497-6449
325 Broadway Boulder, CO, USA 80305-3328
|
|
From: Jeff W. <js...@fa...> - 2008-11-20 12:35:51
|
Mauro Cavalcanti wrote: > Dear ALL, > > Another (this time possibly quite silly) question: how can I make a > Basemap cover entirely the display area of the GUI backend (ie., > without the top, bottom, left, right spaces)? > > I tried something like: > > self.figure = Figure() > self.figure.subplots_adjust(left=-0.01, bottom=-0.750, right=1.0, top=1.55) > > but could not control the bottom (or top) margins. > > Thanks in advance for any hints. > > Best regards, > > Mauro: You'll have to create a figure with the same aspect ratio as the map, and then add an axes to the figure that fills the entire figure (i.e. fig.add_axes([0,0,1,1]). The `aspect` Basemap instance variable tells you the aspect ratio of the map. For instance, in the wx embedding example you sent me, the map.aspect = 0.5. Therefore, you would need to create a figure canvas that is twice as wide as it is high, like this self.figure = Figure(figsize=(10,5)) then add an axes instances that fills the figure completely self.ax = self.figure.add_axes([0,0,1,1]) Note that you will not have any room for labels if you do this. HTH, -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 NOAA/OAR/CDC R/PSD1 FAX : (303)497-6449 325 Broadway Boulder, CO, USA 80305-3328 |
|
From: Mauro C. <mau...@gm...> - 2008-11-20 12:02:03
|
Dear Eric, Thanks for your reply. This is surely not good news -- maybe an automatic shrinking mechanism could be added in a future version of Matplotlib (this would be useful not only with maps, but with other plots as well)? Regards, 2008/11/20 Eric Firing <ef...@ha...>: > Mauro Cavalcanti wrote: >> >> Dear ALL, >> >> Another (this time possibly quite silly) question: how can I make a >> Basemap cover entirely the display area of the GUI backend (ie., >> without the top, bottom, left, right spaces)? >> >> I tried something like: >> >> self.figure = Figure() >> self.figure.subplots_adjust(left=-0.01, bottom=-0.750, right=1.0, >> top=1.55) >> >> but could not control the bottom (or top) margins. > > The reason is that a map has a fixed aspect ratio, and there is no mechanism > for automatically shrinking the appropriate figure dimension to eliminate > extra space. You will have adjust the figure dimensions manually. > > Eric > >> >> Thanks in advance for any hints. >> >> Best regards, >> > > -- Dr. Mauro J. Cavalcanti Ecoinformatics Studio P.O. Box 46521, CEP 20551-970 Rio de Janeiro, RJ, BRASIL E-mail: mau...@gm... Web: http://studio.infobio.net Linux Registered User #473524 * Ubuntu User #22717 "Life is complex. It consists of real and imaginary parts." |
|
From: Robin <ro...@gm...> - 2008-11-20 11:44:24
|
Hi, I think matplotlib is a terrific tool, and it is a major component of the open source toolset that has allowed me to stop using Matlab. But, whenever it comes to producing publication plots, there are a few things I always find challenging - and I'm wondering if I'm doing things wrong. First, what backend do people recommend for use on OS X? At the moment I am using TkAgg. But is there any backend that will behave as a proper OS X application ie allow window switching with cmd-`, maybe allow use of the maximise button etc.? When producing publication size plots - ie 3x3 in or smaller (that usually appear very small in the interactive window) there is an annoying behaviour where any mouse over the graph seems to resize it - the plot jumps around in size as I move the mouse over it. This is mainly annoying because it means when producing a batch of plots for later use, I have to be very careful not to mouse over, since once I do that, I can no longer be sure it will return to the same size, so the final set of images would have different sizes. If I accidently mouse over I have to go back and recreate the plot. Is this a property of the backend I am using? Again, when working with small sizes, the procedure for chaning the size of the figure is quite involved. As well as the standard problem of making sure the text fits, nothing overlaps the image etc. matplotlib doesn't seem to position the axes correctly in the figure - the labels are usually cut off. So I have to manually experiment with ax.set_position() by trial and error until I find a solution that looks OK - but of course if I later change the size of the figure I have to repeat this procedure. Is there an easier way to do this? Thanks, Robin |
|
From: Cyrille R. <ro...@la...> - 2008-11-20 10:49:06
|
Hello,
It seems to me there is a bug in matplotlib 0.98.3 (or at least a
change from previous version).
>>> matplotlib.cbook.is_scalar('foo')
False
I would expect this to be True (otherwise,
matplotlib.cbook.flatten(['foo']) enters an infinite recursive loop).
It used to be (0.98.0):
return is_string_like(obj) or not iterable(obj)
and now (0.98.3):
return not is_string_like(obj) and not iterable(obj)
If it is by purpose, could someone explain it to me ? I'll then have
to change my code accordingly.
Thanks a lot in advance,
Cyrille Rosset.
|
|
From: Eric F. <ef...@ha...> - 2008-11-20 03:32:10
|
Mauro Cavalcanti wrote: > Dear ALL, > > Another (this time possibly quite silly) question: how can I make a > Basemap cover entirely the display area of the GUI backend (ie., > without the top, bottom, left, right spaces)? > > I tried something like: > > self.figure = Figure() > self.figure.subplots_adjust(left=-0.01, bottom=-0.750, right=1.0, top=1.55) > > but could not control the bottom (or top) margins. The reason is that a map has a fixed aspect ratio, and there is no mechanism for automatically shrinking the appropriate figure dimension to eliminate extra space. You will have adjust the figure dimensions manually. Eric > > Thanks in advance for any hints. > > Best regards, > |
|
From: Mauro C. <mau...@gm...> - 2008-11-20 03:14:21
|
Dear ALL, Another (this time possibly quite silly) question: how can I make a Basemap cover entirely the display area of the GUI backend (ie., without the top, bottom, left, right spaces)? I tried something like: self.figure = Figure() self.figure.subplots_adjust(left=-0.01, bottom=-0.750, right=1.0, top=1.55) but could not control the bottom (or top) margins. Thanks in advance for any hints. Best regards, -- Dr. Mauro J. Cavalcanti Ecoinformatics Studio P.O. Box 46521, CEP 20551-970 Rio de Janeiro, RJ, BRASIL E-mail: mau...@gm... Web: http://studio.infobio.net Linux Registered User #473524 * Ubuntu User #22717 "Life is complex. It consists of real and imaginary parts." |
|
From: John H. <jd...@gm...> - 2008-11-19 23:38:25
|
I'm CC-ing the list, because Jeff Whitaker is the basemap developer, and he will probably want to add it to the basemap examples. Thanks for the contribution. On Wed, Nov 19, 2008 at 4:31 PM, Mauro Cavalcanti <mau...@gm...> wrote: > Dear John, > > It worked fine! > > Thank you very much for your help. I would like to donate the working > example source code (attached) to the Matplotlib examples section, > just in case it may be helpful to someone else. > > I intend to provide a more sophisticated exemple soon. > > With warmest regards, > > 2008/11/19 John Hunter <jd...@gm...>: >> On Wed, Nov 19, 2008 at 2:31 PM, Mauro Cavalcanti <mau...@gm...> wrote: >> >>> Greetings. Trying to develop a desktop application for interactive >>> mapping using wxPython and Matplotlib, I have been doing some >>> experiments with embedding maps generated by the Basemap module into a >>> wxPython frame. >> >> You are almost there. You need to create your own axes instance >> >> self.ax = self.figure.add_subplot(111) >> >> and then pass this to your basemap >> >> map = Basemap(ax=self.ax) >> >> after you have issued all your basemap commands, manually force a draw >> >> self.figure.canvas.draw() >> >> and *do not* import pyplot or call pyplot.show() >> >> JDH >> > > > > -- > Dr. Mauro J. Cavalcanti > Ecoinformatics Studio > P.O. Box 46521, CEP 20551-970 > Rio de Janeiro, RJ, BRASIL > E-mail: mau...@gm... > Web: http://studio.infobio.net > Linux Registered User #473524 * Ubuntu User #22717 > "Life is complex. It consists of real and imaginary parts." > |
|
From: John H. <jd...@gm...> - 2008-11-19 22:21:55
|
On Wed, Nov 19, 2008 at 8:56 AM, Gregory Desvignes <Gre...@cn...> wrote: > > Hi all, > > I'm using matplotlib inside the backend_gtkagg with the scatter function > to draw a simple graph with 20000 to 40000 points. The points may have > only 2 differents sizes and 4 differents color depending on some criteria > and should be 'clickable'. > > The problem is that the plot rendering is very slow when it deals with > ~10000 points, especially if we compare it with the rendering of the plot > function using simple points (as the "data_browser.py" example) > > Does anybody knows if there is a way to make things going a little > bit faster? "plot" with markers is *much* faster than scatter. If you have only a few different sizes and a few different colors, if you issue several plot commands with one or more marker symbols plot(x1, y1, 'o', ms=10, color='red') plot(x2 y2, 's', ms=20, color='green') plot(x3, y3, '+', ms=8, color='blue') It might be up to an order of magnitude faster. And the individual points will be selectable using the pick events, as described in http://matplotlib.sourceforge.net/users/event_handling.html Hope this helps, JDH |
|
From: John H. <jd...@gm...> - 2008-11-19 22:19:02
|
On Wed, Nov 19, 2008 at 3:56 AM, domenico09 <dom...@li...> wrote: > > I got the same problem on my portable(windowx XP) but not on my desk > top(windows XP) ! > I reinstalled python, numpy and matplotlib either from internet and from my > desk top (where things works well) but I got the same problem! > thanks for any sugegstion Have you tried the enthought python distribution or python xy? Both are single click installers that come with python, numpy, ipython, matplotlib and more. http://www.enthought.com/products/epd.php http://www.pythonxy.com/foreword.php JDH |
|
From: John H. <jd...@gm...> - 2008-11-19 22:13:23
|
On Wed, Nov 19, 2008 at 2:31 PM, Mauro Cavalcanti <mau...@gm...> wrote:
> Greetings. Trying to develop a desktop application for interactive
> mapping using wxPython and Matplotlib, I have been doing some
> experiments with embedding maps generated by the Basemap module into a
> wxPython frame.
You are almost there. You need to create your own axes instance
self.ax = self.figure.add_subplot(111)
and then pass this to your basemap
map = Basemap(ax=self.ax)
after you have issued all your basemap commands, manually force a draw
self.figure.canvas.draw()
and *do not* import pyplot or call pyplot.show()
JDH
|
|
From: John H. <jd...@gm...> - 2008-11-19 22:01:39
|
On Wed, Nov 19, 2008 at 3:06 PM, Katie Thomas <th...@mi...> wrote: > Oh, I figured it out. It's not there. How do I reinstall the X11 dev I have some notes on how to install on OS X that covers this -- see http://ipython.scipy.org/moin/Py4Science/InstallationOSX The explanation on the xcode dev tools is brief, and reads:: install gcc and other developer tools Install XCode developer tools from the Leopard install CD under optional packages. Verify the install -- check for a working gcc > gcc --version i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465) If you don't have the cd (or not a very recent one), you can get XCodetools from the Apple Developer Connection: http://developer.apple.com/tools/download/ you may have to join (for free) and login. Hope this helps, JDH |
|
From: John H. <jd...@gm...> - 2008-11-19 21:57:26
|
On Wed, Nov 19, 2008 at 1:22 PM, Goyo <goy...@gm...> wrote: > Make sure yu're using a backend with a user interface. > > http://matplotlib.sourceforge.net/faq/installing_faq.html#what-is-a-backend Also, you can get more verbose input at runtime with the --verbose-helpful flag: > python histogram.py --verbose-helpful This will tell you what backend you are running, where your matplotlibrc file is (which controls the backend), etc. See also http://matplotlib.sourceforge.net/faq/installing_faq.html JDH |
|
From: Ron B. <bre...@gm...> - 2008-11-19 21:55:10
|
Hello, Does anyone know where I can find some histogram examples. The ones with the documentation are not as self-explanatory as I would have liked. I'm not a mathematician and I am struggling to understand the math behind the magic. Can anyone help? Thanks, Ron |
|
From: Joshua L. <dis...@gm...> - 2008-11-19 21:15:20
|
Note: If you don't have X11 installed at all (not just the dev tools, but not even X11 itself, which would mean you're running something pre_leopard I assume), you can install this as one of the optional components of your OS X install disc. Josh On Wed, Nov 19, 2008 at 1:11 PM, Joshua Lippai <dis...@gm...> wrote: > Either way, the problem is that matplotlib is trying to access a file > somewhere that doesn't exist (and needs to exist). Make sure you have > X11 installed on the computer (simple spotlight search should turn up > the app frontend), and then install the X11 package from Apple's Xcode > developer tools (available on the install discs for the operating > system or online from developer.apple.com in the downloads section of > the members site with a free ADC account. If you end up downloading > the tools, keep in mind that Xcode Developer Tools 2.5 are the latest > working version for OS X 10.4, and 3.1.1 is the latest working version > for 10.5 (since it's a large download). Once you're sure you have the > X11 tools installed, remove matplotlib and do a clean install. > > Josh > > On Wed, Nov 19, 2008 at 12:57 PM, Joshua Lippai <dis...@gm...> wrote: >> Could you try just typing "cd /usr", then "ls" and checking what >> folders are in there? Is there an X11 folder in there at all? >> >> Josh >> >> On Wed, Nov 19, 2008 at 12:53 PM, Katie Thomas <th...@mi...> wrote: >>> So I have downloaded matplotlib I'm sure, but when I type "cd >>> /usr/X11R6/lib" into the terminal is says "no such file or directory." >>> Do you know what this means? >>> Thanks for all your help, >>> Katie >>> On Nov 19, 2008, at 3:49 PM, Joshua Lippai wrote: >>> >>> The sensitive root folders (like /usr) are hidden from the Finder so >>> that it's hard for someone that doesn't know about them to >>> accidentally delete/move something sensitive that's supposed to stay >>> put. You can get around this easily either with Terminal or Finder >>> itself. >>> If you're comfortable with Terminal: >>> -Open Terminal >>> -Type "cd /usr/X11R6/lib" (without quotes) and then push ENTER >>> -Type "ls libfreetype.6.dylib" (without quotes) and push ENTER >>> -Look at the output. It should spit back "libfreetype.6.dylib" at you. >>> If it spits back nothing, the file is missing. >>> If you're not comfortable with Terminal: >>> -Open a Finder window >>> -From the menubar, click Go -> Go to Folder... >>> -Type "/usr/X11R6/lib" (without quotes) and push ENTER >>> -Look in the list of files yourself to see if the file >>> libfreeype.6.dylib is there. >>> Also, for future reference, when getting help on a mailing list, make >>> sure to hit "Reply-all" instead of just "Reply" so that the >>> conversation stays on the mailing list and doesn't turn into a private >>> email correspondence between just you and one other person. >>> Josh >>> On Wed, Nov 19, 2008 at 12:25 PM, Katie Thomas <th...@mi...> wrote: >>> >>> Thanks! I don't know how to find the /usr/X11R6/lib folder though. I >>> searched for it, but I couldn't find it. >>> On Nov 19, 2008, at 3:10 PM, Joshua Lippai wrote: >>> It appears that matplotlib is having trouble finding the freetype >>> dynamic lib in your /usr/X11R6/lib folder when it references it. I'd >>> check that folder to see if the dylib is there. If it isn't, reinstall >>> the X11 dev tools. If it is, something is wrong with the dynamic lib >>> opening, so I'd recommend removing matplotlib from your >>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages >>> folder and doing a fresh build/install. >>> Josh >>> On Wed, Nov 19, 2008 at 9:25 AM, Yang Zhang <yan...@gm...> wrote: >>> Hi, does anybody know why I'm getting this error importing pylab? >>> Thanks in advance! >>> Traceback (most recent call last): >>> File "/Users/Kates/Documents/ps11.py", line 9, in <module> >>> from pylab import * >>> File >>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pylab.py", >>> line 1, in <module> >>> from matplotlib.pylab import * >>> File >>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pylab.py", >>> line 208, in <module> >>> from matplotlib import mpl # pulls in most modules >>> File >>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mpl.py", >>> line 3, in <module> >>> from matplotlib import axis >>> File >>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axis.py", >>> line 20, in <module> >>> from font_manager import FontProperties >>> File >>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/font_manager.py", >>> line 40, in <module> >>> from matplotlib import ft2font >>> ImportError: >>> dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so, >>> 2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib >>> Referenced from: >>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so >>> Reason: image not found >>> -- >>> Yang Zhang >>> http://www.mit.edu/~y_z/ >>> ------------------------------------------------------------------------- >>> 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 >>> -- >>> Katie Thomas >>> Department of Biology >>> Massachusetts Institute of Technology | Class of 2010 >>> >>> >>> >>> >>> -- >>> Katie Thomas >>> Department of Biology >>> Massachusetts Institute of Technology | Class of 2010 >>> >>> >>> >>> >> > |
|
From: Joshua L. <dis...@gm...> - 2008-11-19 21:11:08
|
Either way, the problem is that matplotlib is trying to access a file somewhere that doesn't exist (and needs to exist). Make sure you have X11 installed on the computer (simple spotlight search should turn up the app frontend), and then install the X11 package from Apple's Xcode developer tools (available on the install discs for the operating system or online from developer.apple.com in the downloads section of the members site with a free ADC account. If you end up downloading the tools, keep in mind that Xcode Developer Tools 2.5 are the latest working version for OS X 10.4, and 3.1.1 is the latest working version for 10.5 (since it's a large download). Once you're sure you have the X11 tools installed, remove matplotlib and do a clean install. Josh On Wed, Nov 19, 2008 at 12:57 PM, Joshua Lippai <dis...@gm...> wrote: > Could you try just typing "cd /usr", then "ls" and checking what > folders are in there? Is there an X11 folder in there at all? > > Josh > > On Wed, Nov 19, 2008 at 12:53 PM, Katie Thomas <th...@mi...> wrote: >> So I have downloaded matplotlib I'm sure, but when I type "cd >> /usr/X11R6/lib" into the terminal is says "no such file or directory." >> Do you know what this means? >> Thanks for all your help, >> Katie >> On Nov 19, 2008, at 3:49 PM, Joshua Lippai wrote: >> >> The sensitive root folders (like /usr) are hidden from the Finder so >> that it's hard for someone that doesn't know about them to >> accidentally delete/move something sensitive that's supposed to stay >> put. You can get around this easily either with Terminal or Finder >> itself. >> If you're comfortable with Terminal: >> -Open Terminal >> -Type "cd /usr/X11R6/lib" (without quotes) and then push ENTER >> -Type "ls libfreetype.6.dylib" (without quotes) and push ENTER >> -Look at the output. It should spit back "libfreetype.6.dylib" at you. >> If it spits back nothing, the file is missing. >> If you're not comfortable with Terminal: >> -Open a Finder window >> -From the menubar, click Go -> Go to Folder... >> -Type "/usr/X11R6/lib" (without quotes) and push ENTER >> -Look in the list of files yourself to see if the file >> libfreeype.6.dylib is there. >> Also, for future reference, when getting help on a mailing list, make >> sure to hit "Reply-all" instead of just "Reply" so that the >> conversation stays on the mailing list and doesn't turn into a private >> email correspondence between just you and one other person. >> Josh >> On Wed, Nov 19, 2008 at 12:25 PM, Katie Thomas <th...@mi...> wrote: >> >> Thanks! I don't know how to find the /usr/X11R6/lib folder though. I >> searched for it, but I couldn't find it. >> On Nov 19, 2008, at 3:10 PM, Joshua Lippai wrote: >> It appears that matplotlib is having trouble finding the freetype >> dynamic lib in your /usr/X11R6/lib folder when it references it. I'd >> check that folder to see if the dylib is there. If it isn't, reinstall >> the X11 dev tools. If it is, something is wrong with the dynamic lib >> opening, so I'd recommend removing matplotlib from your >> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages >> folder and doing a fresh build/install. >> Josh >> On Wed, Nov 19, 2008 at 9:25 AM, Yang Zhang <yan...@gm...> wrote: >> Hi, does anybody know why I'm getting this error importing pylab? >> Thanks in advance! >> Traceback (most recent call last): >> File "/Users/Kates/Documents/ps11.py", line 9, in <module> >> from pylab import * >> File >> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pylab.py", >> line 1, in <module> >> from matplotlib.pylab import * >> File >> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pylab.py", >> line 208, in <module> >> from matplotlib import mpl # pulls in most modules >> File >> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mpl.py", >> line 3, in <module> >> from matplotlib import axis >> File >> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axis.py", >> line 20, in <module> >> from font_manager import FontProperties >> File >> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/font_manager.py", >> line 40, in <module> >> from matplotlib import ft2font >> ImportError: >> dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so, >> 2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib >> Referenced from: >> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/ft2font.so >> Reason: image not found >> -- >> Yang Zhang >> http://www.mit.edu/~y_z/ >> ------------------------------------------------------------------------- >> 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 >> -- >> Katie Thomas >> Department of Biology >> Massachusetts Institute of Technology | Class of 2010 >> >> >> >> >> -- >> Katie Thomas >> Department of Biology >> Massachusetts Institute of Technology | Class of 2010 >> >> >> >> > |
|
From: Katie T. <th...@MI...> - 2008-11-19 21:06:40
|
Oh, I figured it out. It's not there. How do I reinstall the X11 dev tools? On Nov 19, 2008, at 3:57 PM, Joshua Lippai wrote: > Could you try just typing "cd /usr", then "ls" and checking what > folders are in there? Is there an X11 folder in there at all? > > Josh > > On Wed, Nov 19, 2008 at 12:53 PM, Katie Thomas <th...@mi...> > wrote: >> So I have downloaded matplotlib I'm sure, but when I type "cd >> /usr/X11R6/lib" into the terminal is says "no such file or >> directory." >> Do you know what this means? >> Thanks for all your help, >> Katie >> On Nov 19, 2008, at 3:49 PM, Joshua Lippai wrote: >> >> The sensitive root folders (like /usr) are hidden from the Finder so >> that it's hard for someone that doesn't know about them to >> accidentally delete/move something sensitive that's supposed to stay >> put. You can get around this easily either with Terminal or Finder >> itself. >> If you're comfortable with Terminal: >> -Open Terminal >> -Type "cd /usr/X11R6/lib" (without quotes) and then push ENTER >> -Type "ls libfreetype.6.dylib" (without quotes) and push ENTER >> -Look at the output. It should spit back "libfreetype.6.dylib" at >> you. >> If it spits back nothing, the file is missing. >> If you're not comfortable with Terminal: >> -Open a Finder window >> -From the menubar, click Go -> Go to Folder... >> -Type "/usr/X11R6/lib" (without quotes) and push ENTER >> -Look in the list of files yourself to see if the file >> libfreeype.6.dylib is there. >> Also, for future reference, when getting help on a mailing list, make >> sure to hit "Reply-all" instead of just "Reply" so that the >> conversation stays on the mailing list and doesn't turn into a >> private >> email correspondence between just you and one other person. >> Josh >> On Wed, Nov 19, 2008 at 12:25 PM, Katie Thomas <th...@mi...> >> wrote: >> >> Thanks! I don't know how to find the /usr/X11R6/lib folder >> though. I >> searched for it, but I couldn't find it. >> On Nov 19, 2008, at 3:10 PM, Joshua Lippai wrote: >> It appears that matplotlib is having trouble finding the freetype >> dynamic lib in your /usr/X11R6/lib folder when it references it. I'd >> check that folder to see if the dylib is there. If it isn't, >> reinstall >> the X11 dev tools. If it is, something is wrong with the dynamic lib >> opening, so I'd recommend removing matplotlib from your >> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ >> site-packages >> folder and doing a fresh build/install. >> Josh >> On Wed, Nov 19, 2008 at 9:25 AM, Yang Zhang >> <yan...@gm...> wrote: >> Hi, does anybody know why I'm getting this error importing pylab? >> Thanks in advance! >> Traceback (most recent call last): >> File "/Users/Kates/Documents/ps11.py", line 9, in <module> >> from pylab import * >> File >> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ >> site-packages/pylab.py", >> line 1, in <module> >> from matplotlib.pylab import * >> File >> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ >> site-packages/matplotlib/pylab.py", >> line 208, in <module> >> from matplotlib import mpl # pulls in most modules >> File >> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ >> site-packages/matplotlib/mpl.py", >> line 3, in <module> >> from matplotlib import axis >> File >> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ >> site-packages/matplotlib/axis.py", >> line 20, in <module> >> from font_manager import FontProperties >> File >> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ >> site-packages/matplotlib/font_manager.py", >> line 40, in <module> >> from matplotlib import ft2font >> ImportError: >> dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/ >> python2.5/site-packages/matplotlib/ft2font.so, >> 2): Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib >> Referenced from: >> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ >> site-packages/matplotlib/ft2font.so >> Reason: image not found >> -- >> Yang Zhang >> http://www.mit.edu/~y_z/ >> --------------------------------------------------------------------- >> ---- >> 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 >> -- >> Katie Thomas >> Department of Biology >> Massachusetts Institute of Technology | Class of 2010 >> >> >> >> >> -- >> Katie Thomas >> Department of Biology >> Massachusetts Institute of Technology | Class of 2010 >> >> >> >> -- Katie Thomas Department of Biology Massachusetts Institute of Technology | Class of 2010 |
|
From: Christopher B. <Chr...@no...> - 2008-11-19 21:05:23
|
Joshua Lippai wrote: > If you're not comfortable with Terminal: > > -Open a Finder window > -From the menubar, click Go -> Go to Folder... You can also re-set finder to show you the hidden dirs -- I always have mine set up that way. The easiest way is to use a utility called "TinkerTool", but you can also change the finder setting with the command line: http://lifehacker.com/software/command-line/show-hidden-files-in-finder-188892.php -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no... |