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
(20) |
2
(19) |
3
(15) |
4
(7) |
5
(19) |
6
(14) |
7
(3) |
8
(10) |
9
(30) |
10
(10) |
11
(28) |
12
(47) |
13
(26) |
14
(6) |
15
(2) |
16
(3) |
17
(8) |
18
(7) |
19
(11) |
20
(18) |
21
(8) |
22
(15) |
23
(12) |
24
(18) |
25
(16) |
26
(5) |
27
(10) |
28
(5) |
29
(1) |
30
(11) |
|
|
|
|
|
The old "classic" toolbar is out of sync with some API updates. This is what I get when running embedding_in_gtk2.py (after tweaking to use the classic toolbar) Traceback (most recent call last): File "embedding_in_gtk2.py", line 39, in <module> toolbar = NavigationToolbar(canvas, win) File "c:\python25\lib\site-packages\matplotlib\backends\backend_gtk.py", line 746, in __init__ default_type=self.canvas.get_default_filetype()) TypeError: __init__() got an unexpected keyword argument 'default_type' and the diffs, after what seemed like the appropriate fixing: for 0.91.2 0 % diff be_gtk_912.py be_gtk_912-fixd.py 738,739c738,739 < formats=self.canvas.get_supported_filetypes(), < default_type=self.canvas.get_default_filetype()) --- > filetypes=self.canvas.get_supported_filetypes(), > default_filetype=self.canvas.get_default_filetype()) for 0.98.0 0 % diff be_gtk_980.py be_gtk_980-fixd.py 745,746c745,746 < formats=self.canvas.get_supported_filetypes(), < default_type=self.canvas.get_default_filetype()) --- > filetypes=self.canvas.get_supported_filetypes(), > default_filetype=self.canvas.get_default_filetype()) Cheers Chris Fuller University of Minnesota
I was able to fix this without too much trouble, so I have committed it on the trunk. Cheers, Mike Jörgen Stenarson wrote: > Michael Droettboom skrev: >> I see that this isn't a LaTeX error, but I think Tony's comment is >> still somewhat valid. Since mathtext's parser is a direct subset of >> LaTeX's, and since $$ is a syntax error in LaTeX, it also is in >> mathtext. (This is really a side effect of make such a direct copy >> of the parser, rather than a deliberate choice). We can probably add >> a workaround to the parser, but I personally don't have a problem >> with it raising an exception. It doesn't seem to be a very useful >> thing to be able to do. What's your use case? >> > > There is an exception for $ $ which is valid LaTeX. I have no > particular usecase, I was just surprised by the exception. However I > imagine that there could be instances when you want to interpolate an > expression into a string but sometimes leave it empty, not that > compelling perhaps. > > /Jörgen -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
On Wed, Jun 4, 2008 at 12:01 PM, Ted Drain <ted...@jp...> wrote: > Sorry - I don't think I was very clear in my email. Try this: > > import pylab as p > p.plot( [] () > p.gca().xaxis_date() > p.show() I did understand that in your first post, but I was focusing more on your comments about a better date class than this specific bug, but I see how the a better class would solve this bug too. But we can work around this -- I committed some changes to the branch and trunk which checks to see if the datalim have been updated on the call to xaxis date and if not it will choose a valid default date range for the date and view lim, but leave the "ignore" setting in place so it won't affect the autoscaling when you actually do add data. Hit it with your standard battery of tests and let me know how it works. Michael, in the process of adding support for this, I added a check to the Axes.update_datalim to ignore empty lists def update_datalim(self, xys): if len(xys): return but when I ran backend driver, I found a bug on contour_demo.py where a non-iterable was being passed in for xys. I added a debug print statement to update_datalim to print type(xys), and here is what I got, along with the traceback johnh@flag:svn> python ~/mpl/examples/pylab_examples/contour_demo.py <type 'list'> <type 'list'> <type 'list'> <type 'list'> <type 'tuple'> <type 'list'> <type 'numpy.ndarray'> <class 'matplotlib.transforms.Bbox'> Traceback (most recent call last): File "/home/titan/johnh/mpl/examples/pylab_examples/contour_demo.py", line 83, in ? CB = colorbar(CS, shrink=0.8, extend='both') File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyplot.py", line 1179, in colorbar ret = gcf().colorbar(mappable, cax = cax, ax=ax, **kw) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/figure.py", line 965, in colorbar cb = cbar.Colorbar(cax, mappable, **kw) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/colorbar.py", line 591, in __init__ self.add_lines(CS) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/colorbar.py", line 612, in add_lines ColorbarBase.add_lines(self, CS.levels, tcolors, tlinewidths) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/colorbar.py", line 329, in add_lines self.ax.add_collection(col) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/axes.py", line 1242, in add_collection self.update_datalim(collection.get_datalim(self.transData)) File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/axes.py", line 1313, in update_datalim if not len(xys): return TypeError: len() of unsized object So the collection.get_datalim is returning a transformed bbox and passing this off to update_datalim. This is easy to work around by adding an iterable(xys) check, which I did on the branch and the trunk, but to be sure I am not masking a bug, I wanted to make sure that this is what should be happening here. I would think we would call update_datalim_bounds for a bbox.... Thanks, JDH JDH
Sorry - I don't think I was very clear in my email. Try this: import pylab as p p.plot( [] () p.gca().xaxis_date() p.show() While this is a silly example, we do a lot of embedding of plots in GUI's and this does come up. Normal MPL mode is something like: - get data - plot data - configure and format plot But in an embedded GUI, it's much easier to write code like this: - configure and format plot - wait for data - get data and plot So we want to be able to create a plot widget and set all the options and formatting we want to use on it. Then wait for data to arrive or be input and plot it. The problem is that it turns out there are a lot of places where autoscaling or other algorithms cause date formatting to fail w/ a similar message about not being able to handle zero or negative numbers. You can work around them if you know they're going to show up but it's frustrating. It would be nice if date formatting could be applied to any plot range and have it work. I'll make some more concrete examples later - I think it's something we can fix. I'd like to get a suite of examples that illustrate some of the problems before I/we start thinking about possible solutions. Ted > -----Original Message----- > From: mat...@li... > [mailto:mat...@li...] On Behalf Of > John Hunter > Sent: Tuesday, June 03, 2008 1:51 PM > To: Ted Drain > Cc: Matplotlib > Subject: Re: [matplotlib-devel] date2num/num2date and ordinal date > > On Tue, Jun 3, 2008 at 3:41 PM, Ted Drain <ted...@jp...> > wrote: > > > At some point in the future, I'll put a little test case together to > show > > how the problems w/ not supporting a zero date show up in embedded > plots. > > Actually, when you pass in python datetime objects to mpl, we use the > units converter infrastructure to convert these under the hood using > date2num. This is fairly easy to override in the units registry. If > you provide a registry to do conversions, locators and formatters for > julian dates, I can easily include it with an rc setting to make a > configurable default. > > The date interface is setup in the matplotlib.dates module with the > following code -- all you have to do is provide a different converter > and we can provide a hook > > class DateConverter(units.ConversionInterface): > > def axisinfo(unit): > 'return the unit AxisInfo' > if unit=='date': > majloc = AutoDateLocator() > majfmt = AutoDateFormatter(majloc) > return units.AxisInfo( > majloc = majloc, > majfmt = majfmt, > label='', > ) > else: return None > axisinfo = staticmethod(axisinfo) > > def convert(value, unit): > if units.ConversionInterface.is_numlike(value): return > value > return date2num(value) > convert = staticmethod(convert) > > def default_units(x): > 'return the default unit for x or None' > return 'date' > default_units = staticmethod(default_units) > > > units.registry[datetime.date] = DateConverter() > units.registry[datetime.datetime] = DateConverter() > > ----------------------------------------------------------------------- > -- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Matplotlib-devel mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Hi, Some more thoughts about hist(): A "range" parameter should be added and used in histogram() A new histogram should get a new colour, just like plot() does The "step" type should default to fill=False Actually, personally I hardly ever use bar histograms at all, so if step-mode (unfilled) was made default I wouldn't complain... And not directly related to hist(): I think the pan/zoom tool should be on by default when a new figure opens. As it is now, we always need to press some button no matter what we want to do. pan/zoom is a good guess (at least for me)! Thanks all developers for creating what has become my default plotting tool! I will never leave the python shell again. (from kitchen import coffee) Cheers, Olle
I see that this isn't a LaTeX error, but I think Tony's comment is still somewhat valid. Since mathtext's parser is a direct subset of LaTeX's, and since $$ is a syntax error in LaTeX, it also is in mathtext. (This is really a side effect of make such a direct copy of the parser, rather than a deliberate choice). We can probably add a workaround to the parser, but I personally don't have a problem with it raising an exception. It doesn't seem to be a very useful thing to be able to do. What's your use case? Cheers, Mike Jörgen Stenarson wrote: > Tony Yu skrev: > >> On Jun 3, 2008, at 4:18 PM, Jörgen Stenarson wrote: >> >>> using an empty mathtext "$$" in labels generates an exception. See >>> example and traceback below. >>> >> My guess is that this is a LaTeX error. If you enter $$ in a normal >> LaTeX document, you will get: >> >> >> > I don't think so. I'm using mathtext i.e. matplotlibs own latex > interpreter. And I get the same error with $$ $$. > > /Jörgen > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Matplotlib-devel mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
Hi, On Tue, Jun 3, 2008 at 10:59 PM, Jeff Whitaker <js...@fa...> wrote: > > There are alternate versions num2date and a date2num in basemap that handle > arbitrary calendars (not just 'proleptic gregorian') and arbitrary reference > times (not just 'days since 0001年01月01日 00:00:00'). The docstrings are at > http://matplotlib.sourceforge.net/mpl_toolkits.basemap.basemap.html, down > near the bottom of the page. > > I don't know if this addresses the problem you're talking about though... I agree with you Jeff: your version of date2num (and num2date) perfectly does the job. Maybe the 'units' argument should defaults to 'days since 0001年01月01日' for backward compatibility. And maybe, as for the DateConverter, the 'unit' argument in axis_info() and convert() should follow the CF conventions (http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.2/cf-conventions.html#time-coordinate) as Jeff's functions, and default_units() should return 'days since 0001年01月01日'. > > -Jeff > > -- > Jeffrey S. Whitaker Phone : (303)497-6313 > Meteorologist FAX : (303)497-6449 > NOAA/OAR/PSD R/PSD1 Email : Jef...@no... > 325 Broadway Office : Skaggs Research Cntr 1D-113 > Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg > > -- Stephane Raynaud