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

Showing 2 results of 2

From: <ef...@us...> - 2010年07月03日 05:09:56
Revision: 8491
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8491&view=rev
Author: efiring
Date: 2010年07月03日 05:09:49 +0000 (2010年7月03日)
Log Message:
-----------
fix new bugs in handling of xlim, ylim, margins
Modified Paths:
--------------
 trunk/matplotlib/lib/matplotlib/axes.py
Modified: trunk/matplotlib/lib/matplotlib/axes.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/axes.py	2010年07月03日 01:20:53 UTC (rev 8490)
+++ trunk/matplotlib/lib/matplotlib/axes.py	2010年07月03日 05:09:49 UTC (rev 8491)
@@ -830,7 +830,7 @@
 self.xaxis.major = self._sharex.xaxis.major
 self.xaxis.minor = self._sharex.xaxis.minor
 x0, x1 = self._sharex.get_xlim()
- self.set_xlim(x0, x1, emit=False)
+ self.set_xlim(x0, x1, emit=False, auto=None)
 self.xaxis.set_scale(self._sharex.xaxis.get_scale())
 else:
 self.xaxis.set_scale('linear')
@@ -839,7 +839,7 @@
 self.yaxis.major = self._sharey.yaxis.major
 self.yaxis.minor = self._sharey.yaxis.minor
 y0, y1 = self._sharey.get_ylim()
- self.set_ylim(y0, y1, emit=False)
+ self.set_ylim(y0, y1, emit=False, auto=None)
 self.yaxis.set_scale(self._sharey.yaxis.get_scale())
 else:
 self.yaxis.set_scale('linear')
@@ -1678,7 +1678,7 @@
 *tight* to *None* will preserve the previous setting.
 
 Specifying any margin changes only the autoscaling; for example,
- if *xmargin* is not zero, then *xmargin* times the X data
+ if *xmargin* is not None, then *xmargin* times the X data
 interval will be added to each end of that interval before
 it is used in autoscaling.
 
@@ -1700,9 +1700,12 @@
 if my is not None:
 self.set_ymargin(my)
 
- self.autoscale_view(tight=tight, scalex=bool(mx), scaley=bool(my))
+ scalex = (mx is not None)
+ scaley = (my is not None)
 
+ self.autoscale_view(tight=tight, scalex=scalex, scaley=scaley)
 
+
 def set_rasterization_zorder(self, z):
 """
 Set zorder value below which artists will be rasterized
@@ -2368,7 +2371,8 @@
 # Call all of the other x-axes that are shared with this one
 for other in self._shared_x_axes.get_siblings(self):
 if other is not self:
- other.set_xlim(self.viewLim.intervalx, emit=False)
+ other.set_xlim(self.viewLim.intervalx,
+ emit=False, auto=auto)
 if (other.figure != self.figure and
 other.figure.canvas is not None):
 other.figure.canvas.draw_idle()
@@ -2561,7 +2565,8 @@
 # Call all of the other y-axes that are shared with this one
 for other in self._shared_y_axes.get_siblings(self):
 if other is not self:
- other.set_ylim(self.viewLim.intervaly, emit=False)
+ other.set_ylim(self.viewLim.intervaly,
+ emit=False, auto=auto)
 if (other.figure != self.figure and
 other.figure.canvas is not None):
 other.figure.canvas.draw_idle()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <ef...@us...> - 2010年07月03日 01:20:59
Revision: 8490
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8490&view=rev
Author: efiring
Date: 2010年07月03日 01:20:53 +0000 (2010年7月03日)
Log Message:
-----------
colorbar: use pcolormesh instead of pcolor, to reduce artifacts
Modified Paths:
--------------
 trunk/matplotlib/lib/matplotlib/colorbar.py
Modified: trunk/matplotlib/lib/matplotlib/colorbar.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/colorbar.py	2010年07月02日 23:03:44 UTC (rev 8489)
+++ trunk/matplotlib/lib/matplotlib/colorbar.py	2010年07月03日 01:20:53 UTC (rev 8490)
@@ -397,19 +397,18 @@
 Draw the colors using :meth:`~matplotlib.axes.Axes.pcolor`;
 optionally add separators.
 '''
- ## Change to pcolorfast after fixing bugs in some backends...
 if self.orientation == 'vertical':
 args = (X, Y, C)
 else:
 args = (np.transpose(Y), np.transpose(X), np.transpose(C))
 kw = {'cmap':self.cmap, 'norm':self.norm,
- 'shading':'flat', 'alpha':self.alpha}
+ 'alpha':self.alpha,}
 # Save, set, and restore hold state to keep pcolor from
 # clearing the axes. Ordinarily this will not be needed,
 # since the axes object should already have hold set.
 _hold = self.ax.ishold()
 self.ax.hold(True)
- col = self.ax.pcolor(*args, **kw)
+ col = self.ax.pcolormesh(*args, **kw)
 self.ax.hold(_hold)
 #self.add_observer(col) # We should observe, not be observed...
 
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

Showing 2 results of 2

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