You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(33) |
Dec
(20) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(7) |
Feb
(44) |
Mar
(51) |
Apr
(43) |
May
(43) |
Jun
(36) |
Jul
(61) |
Aug
(44) |
Sep
(25) |
Oct
(82) |
Nov
(97) |
Dec
(47) |
2005 |
Jan
(77) |
Feb
(143) |
Mar
(42) |
Apr
(31) |
May
(93) |
Jun
(93) |
Jul
(35) |
Aug
(78) |
Sep
(56) |
Oct
(44) |
Nov
(72) |
Dec
(75) |
2006 |
Jan
(116) |
Feb
(99) |
Mar
(181) |
Apr
(171) |
May
(112) |
Jun
(86) |
Jul
(91) |
Aug
(111) |
Sep
(77) |
Oct
(72) |
Nov
(57) |
Dec
(51) |
2007 |
Jan
(64) |
Feb
(116) |
Mar
(70) |
Apr
(74) |
May
(53) |
Jun
(40) |
Jul
(519) |
Aug
(151) |
Sep
(132) |
Oct
(74) |
Nov
(282) |
Dec
(190) |
2008 |
Jan
(141) |
Feb
(67) |
Mar
(69) |
Apr
(96) |
May
(227) |
Jun
(404) |
Jul
(399) |
Aug
(96) |
Sep
(120) |
Oct
(205) |
Nov
(126) |
Dec
(261) |
2009 |
Jan
(136) |
Feb
(136) |
Mar
(119) |
Apr
(124) |
May
(155) |
Jun
(98) |
Jul
(136) |
Aug
(292) |
Sep
(174) |
Oct
(126) |
Nov
(126) |
Dec
(79) |
2010 |
Jan
(109) |
Feb
(83) |
Mar
(139) |
Apr
(91) |
May
(79) |
Jun
(164) |
Jul
(184) |
Aug
(146) |
Sep
(163) |
Oct
(128) |
Nov
(70) |
Dec
(73) |
2011 |
Jan
(235) |
Feb
(165) |
Mar
(147) |
Apr
(86) |
May
(74) |
Jun
(118) |
Jul
(65) |
Aug
(75) |
Sep
(162) |
Oct
(94) |
Nov
(48) |
Dec
(44) |
2012 |
Jan
(49) |
Feb
(40) |
Mar
(88) |
Apr
(35) |
May
(52) |
Jun
(69) |
Jul
(90) |
Aug
(123) |
Sep
(112) |
Oct
(120) |
Nov
(105) |
Dec
(116) |
2013 |
Jan
(76) |
Feb
(26) |
Mar
(78) |
Apr
(43) |
May
(61) |
Jun
(53) |
Jul
(147) |
Aug
(85) |
Sep
(83) |
Oct
(122) |
Nov
(18) |
Dec
(27) |
2014 |
Jan
(58) |
Feb
(25) |
Mar
(49) |
Apr
(17) |
May
(29) |
Jun
(39) |
Jul
(53) |
Aug
(52) |
Sep
(35) |
Oct
(47) |
Nov
(110) |
Dec
(27) |
2015 |
Jan
(50) |
Feb
(93) |
Mar
(96) |
Apr
(30) |
May
(55) |
Jun
(83) |
Jul
(44) |
Aug
(8) |
Sep
(5) |
Oct
|
Nov
(1) |
Dec
(1) |
2016 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(3) |
Sep
(1) |
Oct
(3) |
Nov
|
Dec
|
2017 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(3) |
Aug
|
Sep
(7) |
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
1
(10) |
2
(4) |
3
(11) |
4
(4) |
5
(6) |
6
(8) |
7
(7) |
8
(9) |
9
(6) |
10
|
11
|
12
(7) |
13
(6) |
14
(18) |
15
(13) |
16
(7) |
17
(15) |
18
(1) |
19
|
20
(1) |
21
(2) |
22
(5) |
23
(3) |
24
(4) |
25
(1) |
26
|
27
(8) |
28
(2) |
29
(5) |
30
|
|
|
From: Tony S Yu <ts...@gm...> - 2010-09-29 18:19:07
|
On Sep 29, 2010, at 2:00 PM, Jeremy Lounds wrote: > On Wed, Sep 29, 2010 at 1:21 PM, Tony S Yu <ts...@gm...> wrote: >> >> On Sep 29, 2010, at 1:06 PM, Jeremy Lounds wrote: >> >>> I am attempting to turn the border (frame?) off altogether. Here is >>> the script, with some sections kept out for brevity: >> >> >> I'm assuming you're talking about turning off the frame around each axes (but maybe you're talking about something else?). The "frameon" attribute in your example code alters the background of the figure canvas, not the borders surrounding each axes. >> >> There's probably a shorter way, but I have a small function that I use to turn off the frame or border around an axes. >> >> def clear_frame(ax=None): >> if ax is None: >> ax = plt.gca() >> ax.xaxis.set_visible(False) >> ax.yaxis.set_visible(False) >> for spine in ax.spines.itervalues(): >> spine.set_visible(False) >> >> Best, >> -T > > Hi Tony, > > Thanks, that works pretty good! > > However... it seems that "drawcoastlines" creates a border if I am not > "zoomed out" far enough. (i.e., the coastline is out of bounds). > > Do you know how I could turn that off? > > Thanks again! > > ~ Jeremy I'm glad that worked for you. Unfortunately, I don't use basemap, so I can't really help with this additional complication. I'm sure someone else on the list will be able to help you out, though. Best, -Tony |
From: Jeremy L. <lo...@gm...> - 2010-09-29 18:00:57
|
On Wed, Sep 29, 2010 at 1:21 PM, Tony S Yu <ts...@gm...> wrote: > > On Sep 29, 2010, at 1:06 PM, Jeremy Lounds wrote: > >> I am attempting to turn the border (frame?) off altogether. Here is >> the script, with some sections kept out for brevity: > > > I'm assuming you're talking about turning off the frame around each axes (but maybe you're talking about something else?). The "frameon" attribute in your example code alters the background of the figure canvas, not the borders surrounding each axes. > > There's probably a shorter way, but I have a small function that I use to turn off the frame or border around an axes. > > def clear_frame(ax=None): > if ax is None: > ax = plt.gca() > ax.xaxis.set_visible(False) > ax.yaxis.set_visible(False) > for spine in ax.spines.itervalues(): > spine.set_visible(False) > > Best, > -T Hi Tony, Thanks, that works pretty good! However... it seems that "drawcoastlines" creates a border if I am not "zoomed out" far enough. (i.e., the coastline is out of bounds). Do you know how I could turn that off? Thanks again! ~ Jeremy |
From: Tony S Yu <ts...@gm...> - 2010-09-29 17:21:36
|
On Sep 29, 2010, at 1:06 PM, Jeremy Lounds wrote: > Hello again, > > I am not sure if this is a matplotlib question, or a basemap one. The > sample code I found on Google for this either broke my script or > didn't change the end result. > > I am attempting to turn the border (frame?) off altogether. Here is > the script, with some sections kept out for brevity: I'm assuming you're talking about turning off the frame around each axes (but maybe you're talking about something else?). The "frameon" attribute in your example code alters the background of the figure canvas, not the borders surrounding each axes. There's probably a shorter way, but I have a small function that I use to turn off the frame or border around an axes. def clear_frame(ax=None): if ax is None: ax = plt.gca() ax.xaxis.set_visible(False) ax.yaxis.set_visible(False) for spine in ax.spines.itervalues(): spine.set_visible(False) Best, -T |
From: Jeremy L. <lo...@gm...> - 2010-09-29 17:06:45
|
Hello again, I am not sure if this is a matplotlib question, or a basemap one. The sample code I found on Google for this either broke my script or didn't change the end result. I am attempting to turn the border (frame?) off altogether. Here is the script, with some sections kept out for brevity: ---- import sys import matplotlib matplotlib.use('agg') from mpl_toolkits.basemap import Basemap import numpy as np import matplotlib.pyplot as plt fig = plt.figure(figsize=(2.56,2.56),dpi=70,frameon=False,linewidth=0) fig.set_frameon(False) # as you can see, above are some of attempts at turning the border off plt.subplots_adjust(left=0, bottom=0, right=1, top=1, wspace=None, hspace=None) m = Basemap(....) m.drawcoastlines() fig.savefig("test.png") ----- Thank you in advance once again! ~ Jeremy |
From: Stan W. <sta...@nr...> - 2010-09-29 15:28:44
|
I'm setting up an axes in which I configure the axis objects with my desired tick locators and formatters and later configure the spines, setting their bounds, visibility, and positions. I was surprised that setting the spine position wiped my axis formatting by calling axis.cla(). Is it necessary that the spine must clear the registered axis when its position is changed? (The same clearing occurs in Spine.register_axis(), but in my case that occurs at axes creation and doesn't cause me any trouble.) |
From: John H. <jd...@gm...> - 2010-09-28 16:09:19
|
> Here are my reasons to add the button, just to add to the discussion: > I've written two applications so far that embed matplotlib, and in both > I felt that the relimit button was missing: In one, there are always > lines added and removed and I often need to reset the plot limits, and > in the second one I do in fact change the line's data so that I want to > relimit occasionally. For that last application it is also important > that the zoom level remains the same, unless I really want to change it, > therefore the button and no automatic relimiting when lines are removed > or data are changed. In both applications the toolbar is most useful for > navigation in the plots, so please don't forget the people who embed > matplotlib when you design the toolbar... :-) If you are embedding mpl, it is easy to design a custom toolbar. Eg, see http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_wx4.html JDH |
From: Dieter W. <di...@ue...> - 2010-09-28 07:54:44
|
Am Montag, den 27.09.2010, 15:42 -0700 schrieb butterw: > a few comments: > > One possible limitation of the proposed relim code is that it doesn't take > into account whether the lines are set visible or not. But otherwise it is > a useful function for interactive use, which incidentally is the way I use > matplotlib the most. > > Is there any reason why matplotlib doesn't have an optional additional > menubar ? You could fit far more commands than in a toolbar. > > btw as demonstrated by the qt4_editor it is not difficult to implement a > line properties dialog in matplotlib. > > > A feature-set that MATLAB has and is missing from matplotlib is editing the > plot via the GUI. You can actually remove lines from the plot without typing > anything in the interpreter. I think it is via a line properties menu, but > maybe you can also get there by right-clicking the line and choosing delete > (can't recall, I'll have to check). > If/when we add support for such things in mpl, the relimit button would > become much more useful. > > Until we have that, I think JDH's idea for cross-GUI configurable toolbars > is a better target to aim for. > > AA Here are my reasons to add the button, just to add to the discussion: I've written two applications so far that embed matplotlib, and in both I felt that the relimit button was missing: In one, there are always lines added and removed and I often need to reset the plot limits, and in the second one I do in fact change the line's data so that I want to relimit occasionally. For that last application it is also important that the zoom level remains the same, unless I really want to change it, therefore the button and no automatic relimiting when lines are removed or data are changed. In both applications the toolbar is most useful for navigation in the plots, so please don't forget the people who embed matplotlib when you design the toolbar... :-) A menu would be great, it could for example be used in cases where the toolbar would be out of place. For embedding, it would not be so important to have a cross-platform interface for customization: After all, you're stuck with one toolkit anyway... As far as I can tell about wxpython, it is no problem to add anything to the toolbar afterwards. Maybe one could implement a "feature bitmap" in the constructor to turn specific buttons on or off. I'm just wondering if there are use cases for customization during interactive use, where it should definitely be cross-platform. Greetings, Dieter |
From: butterw <bu...@gm...> - 2010-09-27 22:42:17
|
a few comments: One possible limitation of the proposed relim code is that it doesn't take into account whether the lines are set visible or not. But otherwise it is a useful function for interactive use, which incidentally is the way I use matplotlib the most. Is there any reason why matplotlib doesn't have an optional additional menubar ? You could fit far more commands than in a toolbar. btw as demonstrated by the qt4_editor it is not difficult to implement a line properties dialog in matplotlib. A feature-set that MATLAB has and is missing from matplotlib is editing the plot via the GUI. You can actually remove lines from the plot without typing anything in the interpreter. I think it is via a line properties menu, but maybe you can also get there by right-clicking the line and choosing delete (can't recall, I'll have to check). If/when we add support for such things in mpl, the relimit button would become much more useful. Until we have that, I think JDH's idea for cross-GUI configurable toolbars is a better target to aim for. AA -- View this message in context: http://old.nabble.com/Toolbar-button-for-relimiting-tp29819182p29823872.html Sent from the matplotlib - devel mailing list archive at Nabble.com. |
From: Amit A. <aro...@gm...> - 2010-09-27 19:38:00
|
On Mon, Sep 27, 2010 at 8:57 PM, Benjamin Root <ben...@ou...> wrote: > On Mon, Sep 27, 2010 at 1:47 PM, Eric Firing <ef...@ha...> wrote: > >> On 09/27/2010 08:35 AM, Benjamin Root wrote: >> > On Mon, Sep 27, 2010 at 1:27 PM, Eric Firing <ef...@ha... >> > <mailto:ef...@ha...>> wrote: >> > >> > On 09/27/2010 03:46 AM, Dieter Weber wrote: >> > > Hi, >> > > I'm using matplotlib embedded in my wxpython application and >> > needed to >> > > give users a quick way to relimit a figure, for example after >> > removing a >> > > line from a plot. Therefore I added a button to the toolbar. Do >> you >> > > think it would make sense to include this in matplotlib by >> default? >> > >> > I don't think it would. The standard toolbar is for typical >> interactive >> > use, where I don't think the relimit functionality is needed often >> > enough to justify having its own button--if at all. Better to keep >> that >> > toolbar simple. >> > >> > Eric >> > >> > >> > Just playing devil's advocate here... >> > >> > Considering how we can now have multiple show() calls and with the >> > upcoming ipython looking more and more spiffy, could there be a future >> > use case for this toolbar button? >> > >> > On the other hand, how would the inclusion of this button impact users >> > of other interactive scripts that have added their own buttons? I mean, >> > planning for the future, can it be definitively said that matplotlib >> > will never add anymore toolbar buttons? Could developers rely on that >> > real estate not being taken over by rule of "eminent domain", if you >> will? >> > >> > Ben Root >> > >> >> Ben, >> >> I don't understand either of your questions. What's the point? >> >> Eric >> >> > First, I am asking if there are no use-cases for this button in the future > with the advent of an improved ipython environment? In other words, more > people may use matplotlib+ipython like a regular MATLAB environment. Could > this button be a useful feature later? > > Second, irregardless of whether this button is included or not, there have > been app developers who have added buttons to the toolbar for their own > use. Can these developers count on that real estate to always be free? Can > we definitively say that matplotlib will never have more buttons added to > its default toolbar? > > Does that make more sense? > > A feature-set that MATLAB has and is missing from matplotlib is editing the plot via the GUI. You can actually remove lines from the plot without typing anything in the interpreter. I think it is via a line properties menu, but maybe you can also get there by right-clicking the line and choosing delete (can't recall, I'll have to check). If/when we add support for such things in mpl, the relimit button would become much more useful. Until we have that, I think JDH's idea for cross-GUI configurable toolbars is a better target to aim for. AA |
From: John H. <jd...@gm...> - 2010-09-27 19:05:51
|
On Mon, Sep 27, 2010 at 1:57 PM, Benjamin Root <ben...@ou...> wrote: > Second, irregardless of whether this button is included or not, there have > been app developers who have added buttons to the toolbar for their own > use. Can these developers count on that real estate to always be free? Can > we definitively say that matplotlib will never have more buttons added to > its default toolbar? On a different but related topic, I think it would definitely be desirable to support customizable toolbars, so users could easily add their own buttons, remove buttons, connect them to their own callbacks, etc... That would take a bit of work to handle this across GUIS and platforms with icon specifications, etc, but would certainly be useful. Adding one more button for a somewhat specialized use case is definitely not a good idea, as only a tiny faction of users actually modify data in objects in place. A related button to autoscale y after zoom based on current x limits would be somewhat handy in my own experience, but again, I'd rather have customizable toolbars with a stock functionality that we could add or remove as desired. JDH |
From: Benjamin R. <ben...@ou...> - 2010-09-27 18:58:39
|
On Mon, Sep 27, 2010 at 1:47 PM, Eric Firing <ef...@ha...> wrote: > On 09/27/2010 08:35 AM, Benjamin Root wrote: > > On Mon, Sep 27, 2010 at 1:27 PM, Eric Firing <ef...@ha... > > <mailto:ef...@ha...>> wrote: > > > > On 09/27/2010 03:46 AM, Dieter Weber wrote: > > > Hi, > > > I'm using matplotlib embedded in my wxpython application and > > needed to > > > give users a quick way to relimit a figure, for example after > > removing a > > > line from a plot. Therefore I added a button to the toolbar. Do > you > > > think it would make sense to include this in matplotlib by > default? > > > > I don't think it would. The standard toolbar is for typical > interactive > > use, where I don't think the relimit functionality is needed often > > enough to justify having its own button--if at all. Better to keep > that > > toolbar simple. > > > > Eric > > > > > > Just playing devil's advocate here... > > > > Considering how we can now have multiple show() calls and with the > > upcoming ipython looking more and more spiffy, could there be a future > > use case for this toolbar button? > > > > On the other hand, how would the inclusion of this button impact users > > of other interactive scripts that have added their own buttons? I mean, > > planning for the future, can it be definitively said that matplotlib > > will never add anymore toolbar buttons? Could developers rely on that > > real estate not being taken over by rule of "eminent domain", if you > will? > > > > Ben Root > > > > Ben, > > I don't understand either of your questions. What's the point? > > Eric > > First, I am asking if there are no use-cases for this button in the future with the advent of an improved ipython environment? In other words, more people may use matplotlib+ipython like a regular MATLAB environment. Could this button be a useful feature later? Second, irregardless of whether this button is included or not, there have been app developers who have added buttons to the toolbar for their own use. Can these developers count on that real estate to always be free? Can we definitively say that matplotlib will never have more buttons added to its default toolbar? Does that make more sense? Ben Root |
From: Eric F. <ef...@ha...> - 2010-09-27 18:48:22
|
On 09/27/2010 08:35 AM, Benjamin Root wrote: > On Mon, Sep 27, 2010 at 1:27 PM, Eric Firing <ef...@ha... > <mailto:ef...@ha...>> wrote: > > On 09/27/2010 03:46 AM, Dieter Weber wrote: > > Hi, > > I'm using matplotlib embedded in my wxpython application and > needed to > > give users a quick way to relimit a figure, for example after > removing a > > line from a plot. Therefore I added a button to the toolbar. Do you > > think it would make sense to include this in matplotlib by default? > > I don't think it would. The standard toolbar is for typical interactive > use, where I don't think the relimit functionality is needed often > enough to justify having its own button--if at all. Better to keep that > toolbar simple. > > Eric > > > Just playing devil's advocate here... > > Considering how we can now have multiple show() calls and with the > upcoming ipython looking more and more spiffy, could there be a future > use case for this toolbar button? > > On the other hand, how would the inclusion of this button impact users > of other interactive scripts that have added their own buttons? I mean, > planning for the future, can it be definitively said that matplotlib > will never add anymore toolbar buttons? Could developers rely on that > real estate not being taken over by rule of "eminent domain", if you will? > > Ben Root > Ben, I don't understand either of your questions. What's the point? Eric |
From: Benjamin R. <ben...@ou...> - 2010-09-27 18:36:12
|
On Mon, Sep 27, 2010 at 1:27 PM, Eric Firing <ef...@ha...> wrote: > On 09/27/2010 03:46 AM, Dieter Weber wrote: > > Hi, > > I'm using matplotlib embedded in my wxpython application and needed to > > give users a quick way to relimit a figure, for example after removing a > > line from a plot. Therefore I added a button to the toolbar. Do you > > think it would make sense to include this in matplotlib by default? > > I don't think it would. The standard toolbar is for typical interactive > use, where I don't think the relimit functionality is needed often > enough to justify having its own button--if at all. Better to keep that > toolbar simple. > > Eric > > Just playing devil's advocate here... Considering how we can now have multiple show() calls and with the upcoming ipython looking more and more spiffy, could there be a future use case for this toolbar button? On the other hand, how would the inclusion of this button impact users of other interactive scripts that have added their own buttons? I mean, planning for the future, can it be definitively said that matplotlib will never add anymore toolbar buttons? Could developers rely on that real estate not being taken over by rule of "eminent domain", if you will? Ben Root |
From: Eric F. <ef...@ha...> - 2010-09-27 18:28:09
|
On 09/27/2010 03:46 AM, Dieter Weber wrote: > Hi, > I'm using matplotlib embedded in my wxpython application and needed to > give users a quick way to relimit a figure, for example after removing a > line from a plot. Therefore I added a button to the toolbar. Do you > think it would make sense to include this in matplotlib by default? I don't think it would. The standard toolbar is for typical interactive use, where I don't think the relimit functionality is needed often enough to justify having its own button--if at all. Better to keep that toolbar simple. Eric > Appended you find modifications of backend_bases.py and > backends/backend_wx.py as well as a draft for a symbol. > > Greetings, > Dieter > > > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > > > > _______________________________________________ > Matplotlib-devel mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel |
From: Dieter W. <di...@ue...> - 2010-09-27 13:46:52
|
Hi, I'm using matplotlib embedded in my wxpython application and needed to give users a quick way to relimit a figure, for example after removing a line from a plot. Therefore I added a button to the toolbar. Do you think it would make sense to include this in matplotlib by default? Appended you find modifications of backend_bases.py and backends/backend_wx.py as well as a draft for a symbol. Greetings, Dieter |
From: Jeremy L. <lo...@gm...> - 2010-09-25 02:31:38
|
Thanks, I was able to find the files I needed from here: http://www.census.gov/geo/www/cob/co2000.html#shp ~ Jeremy On Fri, Sep 24, 2010 at 6:13 PM, Benjamin Root <ben...@ou...> wrote: > On Fri, Sep 24, 2010 at 4:27 PM, Jeremy Lounds <lo...@gm...> wrote: >> >> Hello, >> >> Sorry, its me again! I am not sure where else to ask this, so please >> bear with me. >> >> Does anyone know of a tutorial or source on how I could get county >> boundaries ready to be plotted on my basemap output? I have >> "drawstates" working wonderfully, and need something like >> "drawcounties" >> >> Thanks in advance! >> >> ~ Jeremy >> > > Jeremy, > > If you have access to the shapefile for county boundaries, you can call > basemap's readshapefile() function to draw the counties. You can specify > line properties just like you would for a call to plotting the state > boundaries. > > As a matter of fact, drawstates() is, essentially, a call to > readshapefile(), but it refers to a file that came packaged with basemap for > convenience. > > I hope that helps, > Ben Root > > |
From: Benjamin R. <ben...@ou...> - 2010-09-24 22:13:35
|
On Fri, Sep 24, 2010 at 4:27 PM, Jeremy Lounds <lo...@gm...> wrote: > Hello, > > Sorry, its me again! I am not sure where else to ask this, so please > bear with me. > > Does anyone know of a tutorial or source on how I could get county > boundaries ready to be plotted on my basemap output? I have > "drawstates" working wonderfully, and need something like > "drawcounties" > > Thanks in advance! > > ~ Jeremy > > Jeremy, If you have access to the shapefile for county boundaries, you can call basemap's readshapefile() function to draw the counties. You can specify line properties just like you would for a call to plotting the state boundaries. As a matter of fact, drawstates() is, essentially, a call to readshapefile(), but it refers to a file that came packaged with basemap for convenience. I hope that helps, Ben Root |
From: Jeremy L. <lo...@gm...> - 2010-09-24 21:27:20
|
Hello, Sorry, its me again! I am not sure where else to ask this, so please bear with me. Does anyone know of a tutorial or source on how I could get county boundaries ready to be plotted on my basemap output? I have "drawstates" working wonderfully, and need something like "drawcounties" Thanks in advance! ~ Jeremy |
From: John H. <jd...@gm...> - 2010-09-24 14:11:58
|
On Wed, Sep 22, 2010 at 2:15 PM, Jeremy Lounds <lo...@gm...> wrote: > I have another question for the group... > > I saw in the archives someone else who was getting the error I am now > running in to now. He said he solved it by recompiling from sources. I > was wondering what version of Python is optimal for matplotlib and > basemap? What platform are you on -- compiling from source is particularly easy on linux. I use the stock python, and then get all the dependencies for all the packages I want t build from source: > sudo apt-get build_dep numpy scipy matplotlib mayavi traits cython sympy Then check out the source from the version control repositories (svn/git/hg) and > python setup.py install --prefix=~/whatever This will almost always work, out of the box, and some version of this is what most of the serious users do. Then if you encounter a runtime problem or a real bug, report it to the mailing list, get the bug fixed, svn up and reinstall. Other platforms (win32, osx) are possible but much harder. JDH |
From: Benjamin R. <ben...@ou...> - 2010-09-24 13:38:54
|
On Fri, Sep 24, 2010 at 7:51 AM, Jeremy Lounds <lo...@gm...> wrote: > Hi Ben, > > I am running 0.98.5.2, so it should be good, right? Do you think I should > try upgrading to 1.0.0? > > Thanks so much, > > Jeremy > > Jeremy, Version 0.98.x is relatively old (in terms of code maturity). I don't know when .get_autoscalex_on() came about, but there have been plenty of other improvements since that version that it would definitely be worth your while to update to version 1.0.0. Ben Root |
From: David T. <dav...@gm...> - 2010-09-23 15:52:22
|
Wonderful ! This does indeed solve my issue. Many many thanks, David Le 23/09/10 17:35, Ryan May a écrit : > On Thu, Sep 23, 2010 at 9:16 AM, David Trémouilles<dav...@gm...> wrote: >> OK, was able to narrow thinks down: >> actually it looks like >> figure.canvas.mpl_connect('pick_event', function) >> does not connect the "function" if it is a class method (...?) >> In attachment you will find two files illustrating this: >> buggy_pick.py and buggy_pick2.py >> Both work nicely with matplotlib 0.93 >> With matplotlib 1.0 buggy_pick.py does not work while buggy_pick2.py does >> work. >> The only difference is in the PickFig class... >> >> Is it really a bug or I'm doing something wrong ? >> >> Any workaround would be welcome. > > Technically, you're doing something sort of wrong, though it's very > subtle. And it just so happens that the way the code for callbacks was > reworked that this even showed up. > In this code: > > class TestFig(MatplotlibFig): > def __init__(self, parent=None): > MatplotlibFig.__init__(self, parent) > PickFig(self.figure) > > You create a PickFig, but since you don't assign it to anything, it > gets garbage collected and (eventually) removed from the callbacks. > Previously, the callback registry would have a reference to the > callbacks, which would have kept PickFig alive. This was changed to > eliminate some resource leaks. The fix is simple, just save the > PickFig as a member of TestFig: > > self.pf = PickFig(self.figure) > > That fixes the problem for me. > > Ryan > |
From: David T. <dav...@gm...> - 2010-09-23 14:43:10
|
OK, was able to narrow thinks down: actually it looks like figure.canvas.mpl_connect('pick_event', function) does not connect the "function" if it is a class method (...?) In attachment you will find two files illustrating this: buggy_pick.py and buggy_pick2.py Both work nicely with matplotlib 0.93 With matplotlib 1.0 buggy_pick.py does not work while buggy_pick2.py does work. The only difference is in the PickFig class... Is it really a bug or I'm doing something wrong ? Any workaround would be welcome. Thx, David PS. Is it better to discuss this on users or devel list ? Le 23/09/10 14:20, David Trémouilles a écrit : > Hello, > > My pyqt4 app use the matplotlib pick event. > Cliking on a point in the graph triggers an event > but with matplotlib 1.0 it does not work anymore > while it was working fine with 0.93. > (Matplotlib version is only what was changed) > > Any one who might be aware of a matplotlib change that could have > induce that issue ? > Any idea/help on where I should look for and how to fix this? > > Thanks in advance, > > David |
From: David T. <dav...@gm...> - 2010-09-23 12:20:56
|
Hello, My pyqt4 app use the matplotlib pick event. Cliking on a point in the graph triggers an event but with matplotlib 1.0 it does not work anymore while it was working fine with 0.93. (Matplotlib version is only what was changed) Any one who might be aware of a matplotlib change that could have induce that issue ? Any idea/help on where I should look for and how to fix this? Thanks in advance, David |
From: Benjamin R. <ben...@ou...> - 2010-09-22 21:57:49
|
On Wed, Sep 22, 2010 at 2:15 PM, Jeremy Lounds <lo...@gm...> wrote: > Hi, > > I have another question for the group... > > I saw in the archives someone else who was getting the error I am now > running in to now. He said he solved it by recompiling from sources. I > was wondering what version of Python is optimal for matplotlib and > basemap? > > Or maybe somebody knows how I can fix this without compiling? I prefer > to use the package management for easier upgrades in the future. > > In case anyone was curious about the error, it is "AttributeError: > 'AxesSubplot' object has no attribute 'get_autoscalex_on'". > > I was attempting to take one of the examples (simpletest.py) and use > "agg" to output to a image file, as outlined in the matplotlib > tutorial here: > > > http://matplotlib.sourceforge.net/faq/howto_faq.html?highlight=web#matplotlib-in-a-web-application-server > > Thanks again, > > ~ Jeremy > > There shouldn't be a need for compiling python from source. mpl supports python 2.4, 2.5, 2.6, 2.7 (and others?). Instead, what probably solved that person's problem was installing a more recent version of matplotlib. Which version do you have right now? Ben Root |
From: Jeremy L. <lo...@gm...> - 2010-09-22 19:15:49
|
Hi, I have another question for the group... I saw in the archives someone else who was getting the error I am now running in to now. He said he solved it by recompiling from sources. I was wondering what version of Python is optimal for matplotlib and basemap? Or maybe somebody knows how I can fix this without compiling? I prefer to use the package management for easier upgrades in the future. In case anyone was curious about the error, it is "AttributeError: 'AxesSubplot' object has no attribute 'get_autoscalex_on'". I was attempting to take one of the examples (simpletest.py) and use "agg" to output to a image file, as outlined in the matplotlib tutorial here: http://matplotlib.sourceforge.net/faq/howto_faq.html?highlight=web#matplotlib-in-a-web-application-server Thanks again, ~ Jeremy |