You can subscribe to this list here.
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(115) |
Aug
(120) |
Sep
(137) |
Oct
(170) |
Nov
(461) |
Dec
(263) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
(120) |
Feb
(74) |
Mar
(35) |
Apr
(74) |
May
(245) |
Jun
(356) |
Jul
(240) |
Aug
(115) |
Sep
(78) |
Oct
(225) |
Nov
(98) |
Dec
(271) |
2009 |
Jan
(132) |
Feb
(84) |
Mar
(74) |
Apr
(56) |
May
(90) |
Jun
(79) |
Jul
(83) |
Aug
(296) |
Sep
(214) |
Oct
(76) |
Nov
(82) |
Dec
(66) |
2010 |
Jan
(46) |
Feb
(58) |
Mar
(51) |
Apr
(77) |
May
(58) |
Jun
(126) |
Jul
(128) |
Aug
(64) |
Sep
(50) |
Oct
(44) |
Nov
(48) |
Dec
(54) |
2011 |
Jan
(68) |
Feb
(52) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
1
(2) |
2
(2) |
3
(2) |
4
|
5
(2) |
6
(4) |
7
|
8
|
9
|
10
|
11
|
12
|
13
(1) |
14
(2) |
15
(3) |
16
(7) |
17
(1) |
18
(1) |
19
(3) |
20
(16) |
21
(3) |
22
(4) |
23
(2) |
24
|
25
|
26
(6) |
27
(3) |
28
(9) |
29
(2) |
30
(2) |
|
Revision: 8222 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8222&view=rev Author: efiring Date: 2010年04月05日 18:46:18 +0000 (2010年4月05日) Log Message: ----------- Don't import pytz unless and until it is needed Modified Paths: -------------- trunk/matplotlib/CHANGELOG trunk/matplotlib/examples/pylab_examples/finance_demo.py trunk/matplotlib/lib/matplotlib/config/cutils.py trunk/matplotlib/lib/matplotlib/dates.py Modified: trunk/matplotlib/CHANGELOG =================================================================== --- trunk/matplotlib/CHANGELOG 2010年04月05日 01:06:57 UTC (rev 8221) +++ trunk/matplotlib/CHANGELOG 2010年04月05日 18:46:18 UTC (rev 8222) @@ -1,3 +1,6 @@ +2010年04月05日 Speed up import: import pytz only if and when it is + needed. It is not needed if the rc timezone is UTC. - EF + 2010年04月03日 Added color kwarg to Axes.hist(), based on work by Jeff Klukas. - EF Modified: trunk/matplotlib/examples/pylab_examples/finance_demo.py =================================================================== --- trunk/matplotlib/examples/pylab_examples/finance_demo.py 2010年04月05日 01:06:57 UTC (rev 8221) +++ trunk/matplotlib/examples/pylab_examples/finance_demo.py 2010年04月05日 18:46:18 UTC (rev 8222) @@ -1,7 +1,7 @@ #!/usr/bin/env python from pylab import * from matplotlib.dates import DateFormatter, WeekdayLocator, HourLocator, \ - DayLocator, MONDAY, timezone + DayLocator, MONDAY from matplotlib.finance import quotes_historical_yahoo, candlestick,\ plot_day_summary, candlestick2 Modified: trunk/matplotlib/lib/matplotlib/config/cutils.py =================================================================== --- trunk/matplotlib/lib/matplotlib/config/cutils.py 2010年04月05日 01:06:57 UTC (rev 8221) +++ trunk/matplotlib/lib/matplotlib/config/cutils.py 2010年04月05日 18:46:18 UTC (rev 8222) @@ -4,7 +4,6 @@ # Stdlib imports import os -import pytz import sys import tempfile import warnings Modified: trunk/matplotlib/lib/matplotlib/dates.py =================================================================== --- trunk/matplotlib/lib/matplotlib/dates.py 2010年04月05日 01:06:57 UTC (rev 8221) +++ trunk/matplotlib/lib/matplotlib/dates.py 2010年04月05日 18:46:18 UTC (rev 8222) @@ -92,15 +92,6 @@ """ import re, time, math, datetime -import pytz - -# compatability for 2008c and older versions -try: - import pytz.zoneinfo -except ImportError: - pytz.zoneinfo = pytz.tzinfo - pytz.zoneinfo.UTC = pytz.UTC - import matplotlib import numpy as np @@ -108,7 +99,6 @@ import matplotlib.cbook as cbook import matplotlib.ticker as ticker -from pytz import timezone from dateutil.rrule import rrule, MO, TU, WE, TH, FR, SA, SU, YEARLY, \ MONTHLY, WEEKLY, DAILY, HOURLY, MINUTELY, SECONDLY from dateutil.relativedelta import relativedelta @@ -127,11 +117,28 @@ 'seconds', 'minutes', 'hours', 'weeks') +# Make a simple UTC instance so we don't always have to import +# pytz. From the python datetime library docs: -UTC = pytz.timezone('UTC') +class _UTC(datetime.tzinfo): + """UTC""" + def utcoffset(self, dt): + return datetime.timedelta(0) + + def tzname(self, dt): + return "UTC" + + def dst(self, dt): + return datetime.timedelta(0) + +UTC = _UTC() + def _get_rc_timezone(): s = matplotlib.rcParams['timezone'] + if s == 'UTC': + return UTC + import pytz return pytz.timezone(s) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 8221 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8221&view=rev Author: efiring Date: 2010年04月05日 01:06:57 +0000 (2010年4月05日) Log Message: ----------- Axes.hist: make 'label' an explicit kwarg, like 'color' Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/axes.py Modified: trunk/matplotlib/lib/matplotlib/axes.py =================================================================== --- trunk/matplotlib/lib/matplotlib/axes.py 2010年04月03日 23:22:48 UTC (rev 8220) +++ trunk/matplotlib/lib/matplotlib/axes.py 2010年04月05日 01:06:57 UTC (rev 8221) @@ -6989,7 +6989,7 @@ def hist(self, x, bins=10, range=None, normed=False, weights=None, cumulative=False, bottom=None, histtype='bar', align='mid', orientation='vertical', rwidth=None, log=False, - color=None, + color=None, label=None, **kwargs): """ call signature:: @@ -7101,24 +7101,21 @@ dataset. Default (*None*) uses the standard line color sequence. - kwargs are used to update the properties of the hist - :class:`~matplotlib.patches.Rectangle` instances: + *label*: + String, or sequence of strings to match multiple + datasets. Bar charts yield multiple patches per + dataset, but only the first gets the label, so + that the legend command will work as expected:: - %(Rectangle)s + ax.hist(10+2*np.random.randn(1000), label='men') + ax.hist(12+3*np.random.randn(1000), label='women', alpha=0.5) + ax.legend() - You can use labels for your histogram, and only the first - :class:`~matplotlib.patches.Rectangle` gets the label (the - others get the magic string '_nolegend_'. This will make the - histograms work in the intuitive way for bar charts:: + kwargs are used to update the properties of the + :class:`~matplotlib.patches.Patch` instances returned by *hist*: - ax.hist(10+2*np.random.randn(1000), label='men') - ax.hist(12+3*np.random.randn(1000), label='women', alpha=0.5) - ax.legend() + %(Patch)s - label can also be a sequence of strings. If multiple data is - provided in *x*, the labels are asigned sequentially to the - histograms. - **Example:** .. plot:: mpl_examples/pylab_examples/histogram_demo.py @@ -7315,9 +7312,9 @@ self.dataLim.intervaly = (ymin, ymax) self.autoscale_view() - label = kwargs.pop('label', '_nolegend_') - - if is_string_like(label): + if label is None: + labels = ['_nolegend_'] + elif is_string_like(label): labels = [label] elif is_sequence_of_strings(label): labels = list(label) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.