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


Showing 2 results of 2

From: <js...@us...> - 2010年09月09日 12:03:15
Revision: 8694
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8694&view=rev
Author: jswhit
Date: 2010年09月09日 12:03:09 +0000 (2010年9月09日)
Log Message:
-----------
update
Modified Paths:
--------------
 trunk/toolkits/basemap/Changelog
Modified: trunk/toolkits/basemap/Changelog
===================================================================
--- trunk/toolkits/basemap/Changelog	2010年09月09日 00:35:12 UTC (rev 8693)
+++ trunk/toolkits/basemap/Changelog	2010年09月09日 12:03:09 UTC (rev 8694)
@@ -6,7 +6,6 @@
 associated labels) from the plot.
 * add a remove method to the tuples that are returned in
 	 the dicts returned by drawparallels and drawmeridians.
- * add removeparallels and removemeridians convenience methods.
 version 1.0 (svn revision 8531)
 	 * don't force adjustable='box' so Basemap is compatible
 with AxesGrid. Added fcstmaps_axesgrid.py example.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
From: <ef...@us...> - 2010年09月09日 00:35:18
Revision: 8693
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8693&view=rev
Author: efiring
Date: 2010年09月09日 00:35:12 +0000 (2010年9月09日)
Log Message:
-----------
figure.py: preserve the order in which Axes were added to the figure
Modified Paths:
--------------
 trunk/matplotlib/lib/matplotlib/figure.py
Modified: trunk/matplotlib/lib/matplotlib/figure.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/figure.py	2010年09月08日 15:53:27 UTC (rev 8692)
+++ trunk/matplotlib/lib/matplotlib/figure.py	2010年09月09日 00:35:12 UTC (rev 8693)
@@ -41,25 +41,35 @@
 """
 Specialization of the Stack to handle all
 tracking of Axes in a Figure. This requires storing
- key, axes pairs. The key is based on the args and kwargs
- used in generating the Axes.
+ key, (ind, axes) pairs. The key is based on the args and kwargs
+ used in generating the Axes. ind is a serial number for tracking
+ the order in which axes were added.
 """
+ def __init__(self):
+ Stack.__init__(self)
+ self._ind = 0
+
 def as_list(self):
 """
 Return a list of the Axes instances that have been added to the figure
 """
- return [a for k, a in self._elements]
+ ia_list = [a for k, a in self._elements]
+ ia_list.sort()
+ return [a for i, a in ia_list]
 
 def get(self, key):
 """
 Return the Axes instance that was added with *key*.
 If it is not present, return None.
 """
- return dict(self._elements).get(key)
+ item = dict(self._elements).get(key)
+ if item is None:
+ return None
+ return item[1]
 
 def _entry_from_axes(self, e):
- k = dict([(a, k) for (k, a) in self._elements])[e]
- return k, e
+ ind, k = dict([(a, (ind, k)) for (k, (ind, a)) in self._elements])[e]
+ return (k, (ind, e))
 
 def remove(self, a):
 Stack.remove(self, self._entry_from_axes(a))
@@ -92,13 +102,14 @@
 
 if a in self:
 return None
- return Stack.push(self, (key, a))
+ self._ind += 1
+ return Stack.push(self, (key, (self._ind, a)))
 
 def __call__(self):
 if not len(self._elements):
 return self._default
 else:
- return self._elements[self._pos][1]
+ return self._elements[self._pos][1][1]
 
 def __contains__(self, a):
 return a in self.as_list()
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 によって変換されたページ (->オリジナル) /