SourceForge logo
SourceForge logo
Menu

matplotlib-checkins — Commit notification. DO NOT POST to this list, just subscribe to it.

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
3
(1)
4
(3)
5
6
7
8
9
(1)
10
(5)
11
(2)
12
(7)
13
(1)
14
15
16
17
(1)
18
(2)
19
(6)
20
(5)
21
(1)
22
23
(2)
24
(2)
25
26
(2)
27
(2)
28
(3)
29
30
(6)
31
(6)





Showing 1 results of 1

From: <ef...@us...> - 2010年05月21日 18:26:19
Revision: 8331
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8331&view=rev
Author: efiring
Date: 2010年05月21日 18:26:12 +0000 (2010年5月21日)
Log Message:
-----------
Fix bug introduced in 8308: allow vmin == vmax
Modified Paths:
--------------
 trunk/matplotlib/lib/matplotlib/colors.py
 trunk/matplotlib/lib/matplotlib/dates.py
Modified: trunk/matplotlib/lib/matplotlib/colors.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/colors.py	2010年05月20日 17:22:54 UTC (rev 8330)
+++ trunk/matplotlib/lib/matplotlib/colors.py	2010年05月21日 18:26:12 UTC (rev 8331)
@@ -810,11 +810,8 @@
 def inverse(self, value):
 if not self.scaled():
 raise ValueError("Not invertible until scaled")
- vmin, vmax = self.vmin, self.vmax
- if vmin >= vmax:
- raise ValueError("Inversion requires valid vmax > vmin")
- vmin = float(vmin)
- vmax = float(vmax)
+ vmin = float(self.vmin)
+ vmax = float(self.vmax)
 
 if cbook.iterable(value):
 val = ma.asarray(value)
Modified: trunk/matplotlib/lib/matplotlib/dates.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/dates.py	2010年05月20日 17:22:54 UTC (rev 8330)
+++ trunk/matplotlib/lib/matplotlib/dates.py	2010年05月21日 18:26:12 UTC (rev 8331)
@@ -512,7 +512,7 @@
 Return the number of units for each tick.
 """
 return 1
- 
+
 def nonsingular(self, vmin, vmax):
 unit = self._get_unit()
 interval = self._get_interval()
@@ -561,7 +561,7 @@
 if estimate > self.MAXTICKS * 2:
 raise RuntimeError(
 'RRuleLocator estimated to generate %d ticks from %s to %s: exceeds Locator.MAXTICKS * 2 (%d) ' % (estimate, dmin, dmax, self.MAXTICKS * 2))
- 
+
 dates = self.rule.between(dmin, dmax, True)
 if len(dates) == 0:
 return date2num([dmin, dmax])
@@ -597,7 +597,7 @@
 
 def _get_interval(self):
 return self.rule._rrule._interval
- 
+
 def autoscale(self):
 """
 Set the view limits to include the data range.
@@ -868,7 +868,7 @@
 vmax = date2num(vmax)
 return self.nonsingular(vmin, vmax)
 
- 
+
 class MonthLocator(RRuleLocator):
 """
 Make ticks on occurances of each month month, eg 1, 3, 12.
@@ -925,7 +925,7 @@
 interval=interval, **self.hms0d)
 RRuleLocator.__init__(self, o, tz)
 
- 
+
 class HourLocator(RRuleLocator):
 """
 Make ticks on occurances of each hour.
@@ -943,7 +943,7 @@
 byminute=0, bysecond=0)
 RRuleLocator.__init__(self, rule, tz)
 
- 
+
 class MinuteLocator(RRuleLocator):
 """
 Make ticks on occurances of each minute.
@@ -961,7 +961,7 @@
 bysecond=0)
 RRuleLocator.__init__(self, rule, tz)
 
- 
+
 class SecondLocator(RRuleLocator):
 """
 Make ticks on occurances of each second.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

Showing 1 results of 1

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /