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 5 results of 5

From: <md...@us...> - 2010年05月10日 20:34:42
Revision: 8306
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8306&view=rev
Author: mdboom
Date: 2010年05月10日 20:34:33 +0000 (2010年5月10日)
Log Message:
-----------
[2998906] OverflowError when xscale='log' for hexbin
Raises ValueError if trying to log-scale non-positive values.
Modified Paths:
--------------
 trunk/matplotlib/lib/matplotlib/axes.py
Modified: trunk/matplotlib/lib/matplotlib/axes.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/axes.py	2010年05月10日 20:17:51 UTC (rev 8305)
+++ trunk/matplotlib/lib/matplotlib/axes.py	2010年05月10日 20:34:33 UTC (rev 8306)
@@ -5778,8 +5778,12 @@
 x = np.array(x, float)
 y = np.array(y, float)
 if xscale=='log':
+ if np.any(x <= 0.0):
+ raise ValueError("x contains non-positive values, so can not be log-scaled")
 x = np.log10(x)
 if yscale=='log':
+ if np.any(y <= 0.0):
+ raise ValueError("y contains non-positive values, so can not be log-scaled")
 y = np.log10(y)
 if extent is not None:
 xmin, xmax, ymin, ymax = extent
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <md...@us...> - 2010年05月10日 20:17:58
Revision: 8305
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8305&view=rev
Author: mdboom
Date: 2010年05月10日 20:17:51 +0000 (2010年5月10日)
Log Message:
-----------
Fix minus signs in Ps output.
Modified Paths:
--------------
 trunk/matplotlib/ttconv/pprdrv_tt.cpp
Modified: trunk/matplotlib/ttconv/pprdrv_tt.cpp
===================================================================
--- trunk/matplotlib/ttconv/pprdrv_tt.cpp	2010年05月10日 18:58:07 UTC (rev 8304)
+++ trunk/matplotlib/ttconv/pprdrv_tt.cpp	2010年05月10日 20:17:51 UTC (rev 8305)
@@ -420,7 +420,7 @@
 -------------------------------------------------------------*/
 void ttfont_encoding(TTStreamWriter& stream, struct TTFONT *font, std::vector<int>& glyph_ids, font_type_enum target_type)
 {
- stream.putline("/Encoding ISOLatin1Encoding def");
+ stream.putline("/Encoding StandardEncoding def");
 
 // if (target_type == PS_TYPE_3) {
 // stream.printf("/Encoding [ ");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <md...@us...> - 2010年05月10日 18:58:13
Revision: 8304
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8304&view=rev
Author: mdboom
Date: 2010年05月10日 18:58:07 +0000 (2010年5月10日)
Log Message:
-----------
Use a different strategy for the LogLocator for radial lines on polar plots.
Modified Paths:
--------------
 trunk/matplotlib/lib/matplotlib/ticker.py
Modified: trunk/matplotlib/lib/matplotlib/ticker.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/ticker.py	2010年05月10日 18:20:19 UTC (rev 8303)
+++ trunk/matplotlib/lib/matplotlib/ticker.py	2010年05月10日 18:58:07 UTC (rev 8304)
@@ -1196,13 +1196,14 @@
 Determine the tick locations for log axes
 """
 
- def __init__(self, base=10.0, subs=[1.0]):
+ def __init__(self, base=10.0, subs=[1.0], numdecs=4):
 """
 place ticks on the location= base**i*subs[j]
 """
 self.base(base)
 self.subs(subs)
 self.numticks = 15
+ self.numdecs = numdecs
 
 def base(self,base):
 """
@@ -1227,6 +1228,14 @@
 b=self._base
 
 vmin, vmax = self.axis.get_view_interval()
+
+ if self.axis.axes.name == 'polar':
+ vmax = math.ceil(math.log(vmax) / math.log(b))
+ decades = np.arange(vmax - self.numdecs, vmax)
+ ticklocs = b ** decades
+
+ return ticklocs
+
 if vmin <= 0.0:
 vmin = self.axis.get_minpos()
 if vmin <= 0.0:
@@ -1265,10 +1274,16 @@
 
 def view_limits(self, vmin, vmax):
 'Try to choose the view limits intelligently'
+ b = self._base
 
 if vmax<vmin:
 vmin, vmax = vmax, vmin
 
+ if self.axis.axes.name == 'polar':
+ vmax = math.ceil(math.log(vmax) / math.log(b))
+ vmin = b ** (vmax - self.numdecs)
+ return vmin, vmax
+
 minpos = self.axis.get_minpos()
 
 if minpos<=0:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 8303
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8303&view=rev
Author: mdboom
Date: 2010年05月10日 18:20:19 +0000 (2010年5月10日)
Log Message:
-----------
Remove auto-bumping of radial tick labels on polar plots, since it breaks for log scaling.
Modified Paths:
--------------
 trunk/matplotlib/lib/matplotlib/projections/polar.py
Modified: trunk/matplotlib/lib/matplotlib/projections/polar.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/projections/polar.py	2010年05月10日 18:06:45 UTC (rev 8302)
+++ trunk/matplotlib/lib/matplotlib/projections/polar.py	2010年05月10日 18:20:19 UTC (rev 8303)
@@ -301,10 +301,6 @@
 self.viewLim.y0 = 0
 self.viewLim.y1 = rmax
 angle = self._r_label1_position.to_values()[4]
- self._r_label1_position.clear().translate(
- angle, rmax * self._rpad)
- self._r_label2_position.clear().translate(
- angle, -rmax * self._rpad)
 
 def get_rmax(self):
 return self.viewLim.ymax
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <md...@us...> - 2010年05月10日 18:06:51
Revision: 8302
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8302&view=rev
Author: mdboom
Date: 2010年05月10日 18:06:45 +0000 (2010年5月10日)
Log Message:
-----------
Fix aspect ratio calculation for polar plots.
Modified Paths:
--------------
 trunk/matplotlib/lib/matplotlib/axes.py
Modified: trunk/matplotlib/lib/matplotlib/axes.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/axes.py	2010年05月09日 02:59:29 UTC (rev 8301)
+++ trunk/matplotlib/lib/matplotlib/axes.py	2010年05月10日 18:06:45 UTC (rev 8302)
@@ -1084,20 +1084,23 @@
 
 aspect = self.get_aspect()
 
- xscale, yscale = self.get_xscale(), self.get_yscale()
- if xscale == "linear" and yscale == "linear":
+ if self.name != 'polar':
+ xscale, yscale = self.get_xscale(), self.get_yscale()
+ if xscale == "linear" and yscale == "linear":
+ aspect_scale_mode = "linear"
+ elif xscale == "log" and yscale == "log":
+ aspect_scale_mode = "log"
+ elif (xscale == "linear" and yscale == "log") or \
+ (xscale == "log" and yscale == "linear"):
+ if aspect is not "auto":
+ warnings.warn(
+ 'aspect is not supported for Axes with xscale=%s, yscale=%s' \
+ % (xscale, yscale))
+ aspect = "auto"
+ else: # some custom projections have their own scales.
+ pass
+ else:
 aspect_scale_mode = "linear"
- elif xscale == "log" and yscale == "log":
- aspect_scale_mode = "log"
- elif (xscale == "linear" and yscale == "log") or \
- (xscale == "log" and yscale == "linear"):
- if aspect is not "auto":
- warnings.warn(
- 'aspect is not supported for Axes with xscale=%s, yscale=%s' \
- % (xscale, yscale))
- aspect = "auto"
- else: # some custom projections have their own scales.
- pass
 
 if aspect == 'auto':
 self.set_position( position , which='active')
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

Showing 5 results of 5

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 によって変換されたページ (->オリジナル) /