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
|
|
From: <jd...@us...> - 2008-05-28 15:33:11
|
Revision: 5286
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5286&view=rev
Author: jdh2358
Date: 2008-05-28 08:33:03 -0700 (Wed, 28 May 2008)
Log Message:
-----------
fixed an and/or bug in patch limits
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/axes.py
Modified: trunk/matplotlib/lib/matplotlib/axes.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/axes.py 2008-05-28 14:39:23 UTC (rev 5285)
+++ trunk/matplotlib/lib/matplotlib/axes.py 2008-05-28 15:33:03 UTC (rev 5286)
@@ -1234,7 +1234,7 @@
# the bins, counts and patches lined up, but it throws off log
# scaling. We'll ignore rects with zero height or width in
# the auto-scaling
- if isinstance(p, mpatches.Rectangle) and p.get_width()==0. or p.get_height()==0.:
+ if isinstance(p, mpatches.Rectangle) and p.get_width()==0. and p.get_height()==0.:
return
vertices = p.get_patch_transform().transform(p.get_path().vertices)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jd...@us...> - 2008-05-28 14:39:25
|
Revision: 5285
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5285&view=rev
Author: jdh2358
Date: 2008-05-28 07:39:23 -0700 (Wed, 28 May 2008)
Log Message:
-----------
zero area rects no longer influence auto-scaling
Modified Paths:
--------------
trunk/matplotlib/API_CHANGES
trunk/matplotlib/CHANGELOG
trunk/matplotlib/lib/matplotlib/axes.py
Modified: trunk/matplotlib/API_CHANGES
===================================================================
--- trunk/matplotlib/API_CHANGES 2008-05-28 13:36:50 UTC (rev 5284)
+++ trunk/matplotlib/API_CHANGES 2008-05-28 14:39:23 UTC (rev 5285)
@@ -1,3 +1,4 @@
+
Rewrote the cm.ScalarMappable callback infrastructure to use
cbook.CallbackRegistry rather than custom callback handling. Amy
users of add_observer/notify of the cm.ScalarMappable should uae
Modified: trunk/matplotlib/CHANGELOG
===================================================================
--- trunk/matplotlib/CHANGELOG 2008-05-28 13:36:50 UTC (rev 5284)
+++ trunk/matplotlib/CHANGELOG 2008-05-28 14:39:23 UTC (rev 5285)
@@ -1,3 +1,7 @@
+2008-05-28 zero width/height Rectangles no longer influence the
+ autoscaler. Useful for log histograms with empty bins -
+ JDH
+
2008-05-28 Fix rendering of composite glyphs in Type 3 conversion
(particularly as evidenced in the Eunjin.ttf Korean font)
Thanks Jae-Joon Lee for finding this!
Modified: trunk/matplotlib/lib/matplotlib/axes.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/axes.py 2008-05-28 13:36:50 UTC (rev 5284)
+++ trunk/matplotlib/lib/matplotlib/axes.py 2008-05-28 14:39:23 UTC (rev 5285)
@@ -1230,10 +1230,18 @@
def _update_patch_limits(self, p):
'update the datalimits for patch p'
+ # hist can add zero height Rectangles, which is useful to keep
+ # the bins, counts and patches lined up, but it throws off log
+ # scaling. We'll ignore rects with zero height or width in
+ # the auto-scaling
+ if isinstance(p, mpatches.Rectangle) and p.get_width()==0. or p.get_height()==0.:
+ return
+
vertices = p.get_patch_transform().transform(p.get_path().vertices)
if p.get_data_transform() != self.transData:
transform = p.get_data_transform() + self.transData.inverted()
xys = transform.transform(vertices)
+
self.update_datalim(vertices)
def add_table(self, tab):
@@ -3509,14 +3517,15 @@
if adjust_xlim:
xmin, xmax = self.dataLim.intervalx
- xmin = np.amin(width)
+ xmin = np.amin(width[width!=0]) # filter out the 0 width rects
if xerr is not None:
xmin = xmin - np.amax(xerr)
xmin = max(xmin*0.9, 1e-100)
self.dataLim.intervalx = (xmin, xmax)
+
if adjust_ylim:
ymin, ymax = self.dataLim.intervaly
- ymin = np.amin(height)
+ ymin = np.amin(height[height!=0]) # filter out the 0 height rects
if yerr is not None:
ymin = ymin - np.amax(yerr)
ymin = max(ymin*0.9, 1e-100)
@@ -5501,7 +5510,10 @@
width. If None, automatically compute the width. Ignored
for 'step' histtype.
- log: if True, the histogram axis will be set to a log scale
+ log: if True, the histogram axis will be set to a log scale.
+ If log is true and x is a 1D array, empty bins will be
+ filtered out and only the non-empty n, bins, patches will be
+ returned.
kwargs are used to update the properties of the
hist Rectangles:
@@ -5587,6 +5599,7 @@
ccount += 1
elif orientation == 'vertical':
for m in n:
+
color = colors[ccount % len(colors)]
patch = self.bar(bins[:-1]+boffset, m, width=width,
bottom=bottom, align='center', log=log,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <md...@us...> - 2008-05-28 13:36:53
|
Revision: 5284
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5284&view=rev
Author: mdboom
Date: 2008-05-28 06:36:50 -0700 (Wed, 28 May 2008)
Log Message:
-----------
Merged revisions 5276-5283 via svnmerge from
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v0_91_maint
........
r5283 | mdboom | 2008-05-28 09:31:39 -0400 (Wed, 28 May 2008) | 4 lines
Fix rendering of composite glyphs in Type 3 conversion (particularly
as evidenced in the Eunjin.ttf Korean font) Thanks Jae-Joon Lee for
finding this!
........
Modified Paths:
--------------
trunk/matplotlib/CHANGELOG
trunk/matplotlib/ttconv/pprdrv_tt2.cpp
Property Changed:
----------------
trunk/matplotlib/
Property changes on: trunk/matplotlib
___________________________________________________________________
Name: svnmerge-integrated
- /branches/v0_91_maint:1-5275
+ /branches/v0_91_maint:1-5283
Modified: trunk/matplotlib/CHANGELOG
===================================================================
--- trunk/matplotlib/CHANGELOG 2008-05-28 13:31:39 UTC (rev 5283)
+++ trunk/matplotlib/CHANGELOG 2008-05-28 13:36:50 UTC (rev 5284)
@@ -1,3 +1,7 @@
+2008-05-28 Fix rendering of composite glyphs in Type 3 conversion
+ (particularly as evidenced in the Eunjin.ttf Korean font)
+ Thanks Jae-Joon Lee for finding this!
+
2008-05-27 Rewrote the cm.ScalarMappable callback infrastructure to
use cbook.CallbackRegistry rather than custom callback
handling. Amy users of add_observer/notify of the
Modified: trunk/matplotlib/ttconv/pprdrv_tt2.cpp
===================================================================
--- trunk/matplotlib/ttconv/pprdrv_tt2.cpp 2008-05-28 13:31:39 UTC (rev 5283)
+++ trunk/matplotlib/ttconv/pprdrv_tt2.cpp 2008-05-28 13:36:50 UTC (rev 5284)
@@ -531,8 +531,8 @@
}
else /* The tt spec. does not clearly indicate */
{ /* whether these values are signed or not. */
- arg1 = *(glyph++);
- arg2 = *(glyph++);
+ arg1 = *(signed char *)(glyph++);
+ arg2 = *(signed char *)(glyph++);
}
if(flags & WE_HAVE_A_SCALE)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <md...@us...> - 2008-05-28 13:31:42
|
Revision: 5283
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5283&view=rev
Author: mdboom
Date: 2008-05-28 06:31:39 -0700 (Wed, 28 May 2008)
Log Message:
-----------
Fix rendering of composite glyphs in Type 3 conversion (particularly
as evidenced in the Eunjin.ttf Korean font) Thanks Jae-Joon Lee for
finding this!
Modified Paths:
--------------
branches/v0_91_maint/CHANGELOG
branches/v0_91_maint/ttconv/pprdrv_tt2.cpp
Modified: branches/v0_91_maint/CHANGELOG
===================================================================
--- branches/v0_91_maint/CHANGELOG 2008-05-28 03:16:35 UTC (rev 5282)
+++ branches/v0_91_maint/CHANGELOG 2008-05-28 13:31:39 UTC (rev 5283)
@@ -1,3 +1,7 @@
+2008-05-28 Fix rendering of composite glyphs in Type 3 conversion
+ (particularly as evidenced in the Eunjin.ttf Korean font)
+ Thanks Jae-Joon Lee for finding this!
+
2008-05-21 Fix segfault in TkAgg backend - MGD
2008-05-21 Fix a "local variable unreferenced" bug in plotfile - MM
Modified: branches/v0_91_maint/ttconv/pprdrv_tt2.cpp
===================================================================
--- branches/v0_91_maint/ttconv/pprdrv_tt2.cpp 2008-05-28 03:16:35 UTC (rev 5282)
+++ branches/v0_91_maint/ttconv/pprdrv_tt2.cpp 2008-05-28 13:31:39 UTC (rev 5283)
@@ -531,8 +531,8 @@
}
else /* The tt spec. does not clearly indicate */
{ /* whether these values are signed or not. */
- arg1 = *(glyph++);
- arg2 = *(glyph++);
+ arg1 = *(signed char *)(glyph++);
+ arg2 = *(signed char *)(glyph++);
}
if(flags & WE_HAVE_A_SCALE)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jd...@us...> - 2008-05-28 03:16:36
|
Revision: 5282
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5282&view=rev
Author: jdh2358
Date: 2008-05-27 20:16:35 -0700 (Tue, 27 May 2008)
Log Message:
-----------
reworked callback api for cm.ScalarMappable
Modified Paths:
--------------
trunk/matplotlib/API_CHANGES
trunk/matplotlib/CHANGELOG
trunk/matplotlib/examples/pylab/image_demo2.py
trunk/matplotlib/lib/matplotlib/cm.py
trunk/matplotlib/lib/matplotlib/colorbar.py
trunk/matplotlib/lib/matplotlib/figure.py
trunk/matplotlib/lib/matplotlib/pyplot.py
Removed Paths:
-------------
trunk/matplotlib/lib/matplotlib/agg.py
Modified: trunk/matplotlib/API_CHANGES
===================================================================
--- trunk/matplotlib/API_CHANGES 2008-05-28 02:04:26 UTC (rev 5281)
+++ trunk/matplotlib/API_CHANGES 2008-05-28 03:16:35 UTC (rev 5282)
@@ -1,3 +1,8 @@
+ Rewrote the cm.ScalarMappable callback infrastructure to use
+ cbook.CallbackRegistry rather than custom callback handling. Amy
+ users of add_observer/notify of the cm.ScalarMappable should uae
+ the cm.ScalarMappable.callbacksSM CallbackRegistry instead.
+
New axes function and Axes method provide control over the plot
color cycle: axes.set_default_color_cycle(clist) and
Axes.set_color_cycle(clist).
Modified: trunk/matplotlib/CHANGELOG
===================================================================
--- trunk/matplotlib/CHANGELOG 2008-05-28 02:04:26 UTC (rev 5281)
+++ trunk/matplotlib/CHANGELOG 2008-05-28 03:16:35 UTC (rev 5282)
@@ -1,3 +1,9 @@
+2008-05-27 Rewrote the cm.ScalarMappable callback infrastructure to
+ use cbook.CallbackRegistry rather than custom callback
+ handling. Amy users of add_observer/notify of the
+ cm.ScalarMappable should uae the
+ cm.ScalarMappable.callbacksSM CallbackRegistry instead. JDH
+
2008-05-27 Fix TkAgg build on Ubuntu 8.04 (and hopefully a more
general solution for other platforms, too.)
Modified: trunk/matplotlib/examples/pylab/image_demo2.py
===================================================================
--- trunk/matplotlib/examples/pylab/image_demo2.py 2008-05-28 02:04:26 UTC (rev 5281)
+++ trunk/matplotlib/examples/pylab/image_demo2.py 2008-05-28 03:16:35 UTC (rev 5282)
@@ -8,7 +8,7 @@
A.shape = w, h
extent = (0, 25, 0, 25)
-im = imshow(A, cmap=cm.jet, origin='upper', extent=extent)
+im = imshow(A, cmap=cm.hot, origin='upper', extent=extent)
markers = [(15.9, 14.5), (16.8, 15)]
x,y = zip(*markers)
Deleted: trunk/matplotlib/lib/matplotlib/agg.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/agg.py 2008-05-28 02:04:26 UTC (rev 5281)
+++ trunk/matplotlib/lib/matplotlib/agg.py 2008-05-28 03:16:35 UTC (rev 5282)
@@ -1,1322 +0,0 @@
-# This file was automatically generated by SWIG (http://www.swig.org).
-# Version 1.3.31
-#
-# Don't modify this file, modify the SWIG interface instead.
-# This file is compatible with both classic and new-style classes.
-
-import _agg
-import new
-new_instancemethod = new.instancemethod
-try:
- _swig_property = property
-except NameError:
- pass # Python < 2.2 doesn't have 'property'.
-def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
- if (name == "thisown"): return self.this.own(value)
- if (name == "this"):
- if type(value).__name__ == 'PySwigObject':
- self.__dict__[name] = value
- return
- method = class_type.__swig_setmethods__.get(name,None)
- if method: return method(self,value)
- if (not static) or hasattr(self,name):
- self.__dict__[name] = value
- else:
- raise AttributeError("You cannot add attributes to %s" % self)
-
-def _swig_setattr(self,class_type,name,value):
- return _swig_setattr_nondynamic(self,class_type,name,value,0)
-
-def _swig_getattr(self,class_type,name):
- if (name == "thisown"): return self.this.own()
- method = class_type.__swig_getmethods__.get(name,None)
- if method: return method(self)
- raise AttributeError,name
-
-def _swig_repr(self):
- try: strthis = "proxy of " + self.this.__repr__()
- except: strthis = ""
- return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
-
-import types
-try:
- _object = types.ObjectType
- _newclass = 1
-except AttributeError:
- class _object : pass
- _newclass = 0
-del types
-
-
-cover_shift = _agg.cover_shift
-cover_size = _agg.cover_size
-cover_mask = _agg.cover_mask
-cover_none = _agg.cover_none
-cover_full = _agg.cover_full
-deg2rad = _agg.deg2rad
-rad2deg = _agg.rad2deg
-path_cmd_stop = _agg.path_cmd_stop
-path_cmd_move_to = _agg.path_cmd_move_to
-path_cmd_line_to = _agg.path_cmd_line_to
-path_cmd_curve3 = _agg.path_cmd_curve3
-path_cmd_curve4 = _agg.path_cmd_curve4
-path_cmd_curveN = _agg.path_cmd_curveN
-path_cmd_catrom = _agg.path_cmd_catrom
-path_cmd_ubspline = _agg.path_cmd_ubspline
-path_cmd_end_poly = _agg.path_cmd_end_poly
-path_cmd_mask = _agg.path_cmd_mask
-path_flags_none = _agg.path_flags_none
-path_flags_ccw = _agg.path_flags_ccw
-path_flags_cw = _agg.path_flags_cw
-path_flags_close = _agg.path_flags_close
-path_flags_mask = _agg.path_flags_mask
-is_vertex = _agg.is_vertex
-is_stop = _agg.is_stop
-is_move_to = _agg.is_move_to
-is_line_to = _agg.is_line_to
-is_curve = _agg.is_curve
-is_curve3 = _agg.is_curve3
-is_curve4 = _agg.is_curve4
-is_end_poly = _agg.is_end_poly
-is_close = _agg.is_close
-is_next_poly = _agg.is_next_poly
-is_cw = _agg.is_cw
-is_ccw = _agg.is_ccw
-is_oriented = _agg.is_oriented
-is_closed = _agg.is_closed
-get_close_flag = _agg.get_close_flag
-clear_orientation = _agg.clear_orientation
-get_orientation = _agg.get_orientation
-set_orientation = _agg.set_orientation
-class point_type(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, point_type, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, point_type, name)
- __repr__ = _swig_repr
- __swig_setmethods__["x"] = _agg.point_type_x_set
- __swig_getmethods__["x"] = _agg.point_type_x_get
- if _newclass:x = _swig_property(_agg.point_type_x_get, _agg.point_type_x_set)
- __swig_setmethods__["y"] = _agg.point_type_y_set
- __swig_getmethods__["y"] = _agg.point_type_y_get
- if _newclass:y = _swig_property(_agg.point_type_y_get, _agg.point_type_y_set)
- def __init__(self, *args):
- this = _agg.new_point_type(*args)
- try: self.this.append(this)
- except: self.this = this
- __swig_destroy__ = _agg.delete_point_type
- __del__ = lambda self : None;
-point_type_swigregister = _agg.point_type_swigregister
-point_type_swigregister(point_type)
-cvar = _agg.cvar
-pi = cvar.pi
-
-class vertex_type(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, vertex_type, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, vertex_type, name)
- __repr__ = _swig_repr
- __swig_setmethods__["x"] = _agg.vertex_type_x_set
- __swig_getmethods__["x"] = _agg.vertex_type_x_get
- if _newclass:x = _swig_property(_agg.vertex_type_x_get, _agg.vertex_type_x_set)
- __swig_setmethods__["y"] = _agg.vertex_type_y_set
- __swig_getmethods__["y"] = _agg.vertex_type_y_get
- if _newclass:y = _swig_property(_agg.vertex_type_y_get, _agg.vertex_type_y_set)
- __swig_setmethods__["cmd"] = _agg.vertex_type_cmd_set
- __swig_getmethods__["cmd"] = _agg.vertex_type_cmd_get
- if _newclass:cmd = _swig_property(_agg.vertex_type_cmd_get, _agg.vertex_type_cmd_set)
- def __init__(self, *args):
- this = _agg.new_vertex_type(*args)
- try: self.this.append(this)
- except: self.this = this
- __swig_destroy__ = _agg.delete_vertex_type
- __del__ = lambda self : None;
-vertex_type_swigregister = _agg.vertex_type_swigregister
-vertex_type_swigregister(vertex_type)
-
-class rect(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, rect, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, rect, name)
- __repr__ = _swig_repr
- __swig_setmethods__["x1"] = _agg.rect_x1_set
- __swig_getmethods__["x1"] = _agg.rect_x1_get
- if _newclass:x1 = _swig_property(_agg.rect_x1_get, _agg.rect_x1_set)
- __swig_setmethods__["y1"] = _agg.rect_y1_set
- __swig_getmethods__["y1"] = _agg.rect_y1_get
- if _newclass:y1 = _swig_property(_agg.rect_y1_get, _agg.rect_y1_set)
- __swig_setmethods__["x2"] = _agg.rect_x2_set
- __swig_getmethods__["x2"] = _agg.rect_x2_get
- if _newclass:x2 = _swig_property(_agg.rect_x2_get, _agg.rect_x2_set)
- __swig_setmethods__["y2"] = _agg.rect_y2_set
- __swig_getmethods__["y2"] = _agg.rect_y2_get
- if _newclass:y2 = _swig_property(_agg.rect_y2_get, _agg.rect_y2_set)
- def __init__(self, *args):
- this = _agg.new_rect(*args)
- try: self.this.append(this)
- except: self.this = this
- def normalize(*args): return _agg.rect_normalize(*args)
- def clip(*args): return _agg.rect_clip(*args)
- def is_valid(*args): return _agg.rect_is_valid(*args)
- __swig_destroy__ = _agg.delete_rect
- __del__ = lambda self : None;
-rect_swigregister = _agg.rect_swigregister
-rect_swigregister(rect)
-
-class rect_d(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, rect_d, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, rect_d, name)
- __repr__ = _swig_repr
- __swig_setmethods__["x1"] = _agg.rect_d_x1_set
- __swig_getmethods__["x1"] = _agg.rect_d_x1_get
- if _newclass:x1 = _swig_property(_agg.rect_d_x1_get, _agg.rect_d_x1_set)
- __swig_setmethods__["y1"] = _agg.rect_d_y1_set
- __swig_getmethods__["y1"] = _agg.rect_d_y1_get
- if _newclass:y1 = _swig_property(_agg.rect_d_y1_get, _agg.rect_d_y1_set)
- __swig_setmethods__["x2"] = _agg.rect_d_x2_set
- __swig_getmethods__["x2"] = _agg.rect_d_x2_get
- if _newclass:x2 = _swig_property(_agg.rect_d_x2_get, _agg.rect_d_x2_set)
- __swig_setmethods__["y2"] = _agg.rect_d_y2_set
- __swig_getmethods__["y2"] = _agg.rect_d_y2_get
- if _newclass:y2 = _swig_property(_agg.rect_d_y2_get, _agg.rect_d_y2_set)
- def __init__(self, *args):
- this = _agg.new_rect_d(*args)
- try: self.this.append(this)
- except: self.this = this
- def normalize(*args): return _agg.rect_d_normalize(*args)
- def clip(*args): return _agg.rect_d_clip(*args)
- def is_valid(*args): return _agg.rect_d_is_valid(*args)
- __swig_destroy__ = _agg.delete_rect_d
- __del__ = lambda self : None;
-rect_d_swigregister = _agg.rect_d_swigregister
-rect_d_swigregister(rect_d)
-
-unite_rectangles = _agg.unite_rectangles
-unite_rectangles_d = _agg.unite_rectangles_d
-intersect_rectangles = _agg.intersect_rectangles
-intersect_rectangles_d = _agg.intersect_rectangles_d
-class binary_data(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, binary_data, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, binary_data, name)
- __repr__ = _swig_repr
- __swig_setmethods__["size"] = _agg.binary_data_size_set
- __swig_getmethods__["size"] = _agg.binary_data_size_get
- if _newclass:size = _swig_property(_agg.binary_data_size_get, _agg.binary_data_size_set)
- __swig_setmethods__["data"] = _agg.binary_data_data_set
- __swig_getmethods__["data"] = _agg.binary_data_data_get
- if _newclass:data = _swig_property(_agg.binary_data_data_get, _agg.binary_data_data_set)
- def __init__(self, *args):
- this = _agg.new_binary_data(*args)
- try: self.this.append(this)
- except: self.this = this
- __swig_destroy__ = _agg.delete_binary_data
- __del__ = lambda self : None;
-binary_data_swigregister = _agg.binary_data_swigregister
-binary_data_swigregister(binary_data)
-
-class buffer(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, buffer, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, buffer, name)
- __repr__ = _swig_repr
- def __init__(self, *args):
- this = _agg.new_buffer(*args)
- try: self.this.append(this)
- except: self.this = this
- __swig_destroy__ = _agg.delete_buffer
- __del__ = lambda self : None;
- def to_string(*args): return _agg.buffer_to_string(*args)
- __swig_getmethods__["width"] = _agg.buffer_width_get
- if _newclass:width = _swig_property(_agg.buffer_width_get)
- __swig_getmethods__["height"] = _agg.buffer_height_get
- if _newclass:height = _swig_property(_agg.buffer_height_get)
- __swig_getmethods__["stride"] = _agg.buffer_stride_get
- if _newclass:stride = _swig_property(_agg.buffer_stride_get)
- __swig_setmethods__["data"] = _agg.buffer_data_set
- __swig_getmethods__["data"] = _agg.buffer_data_get
- if _newclass:data = _swig_property(_agg.buffer_data_get, _agg.buffer_data_set)
- __swig_setmethods__["freemem"] = _agg.buffer_freemem_set
- __swig_getmethods__["freemem"] = _agg.buffer_freemem_get
- if _newclass:freemem = _swig_property(_agg.buffer_freemem_get, _agg.buffer_freemem_set)
-buffer_swigregister = _agg.buffer_swigregister
-buffer_swigregister(buffer)
-
-class order_rgb(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, order_rgb, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, order_rgb, name)
- __repr__ = _swig_repr
- R = _agg.order_rgb_R
- G = _agg.order_rgb_G
- B = _agg.order_rgb_B
- rgb_tag = _agg.order_rgb_rgb_tag
- def __init__(self, *args):
- this = _agg.new_order_rgb(*args)
- try: self.this.append(this)
- except: self.this = this
- __swig_destroy__ = _agg.delete_order_rgb
- __del__ = lambda self : None;
-order_rgb_swigregister = _agg.order_rgb_swigregister
-order_rgb_swigregister(order_rgb)
-
-class order_bgr(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, order_bgr, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, order_bgr, name)
- __repr__ = _swig_repr
- B = _agg.order_bgr_B
- G = _agg.order_bgr_G
- R = _agg.order_bgr_R
- rgb_tag = _agg.order_bgr_rgb_tag
- def __init__(self, *args):
- this = _agg.new_order_bgr(*args)
- try: self.this.append(this)
- except: self.this = this
- __swig_destroy__ = _agg.delete_order_bgr
- __del__ = lambda self : None;
-order_bgr_swigregister = _agg.order_bgr_swigregister
-order_bgr_swigregister(order_bgr)
-
-class order_rgba(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, order_rgba, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, order_rgba, name)
- __repr__ = _swig_repr
- R = _agg.order_rgba_R
- G = _agg.order_rgba_G
- B = _agg.order_rgba_B
- A = _agg.order_rgba_A
- rgba_tag = _agg.order_rgba_rgba_tag
- def __init__(self, *args):
- this = _agg.new_order_rgba(*args)
- try: self.this.append(this)
- except: self.this = this
- __swig_destroy__ = _agg.delete_order_rgba
- __del__ = lambda self : None;
-order_rgba_swigregister = _agg.order_rgba_swigregister
-order_rgba_swigregister(order_rgba)
-
-class order_argb(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, order_argb, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, order_argb, name)
- __repr__ = _swig_repr
- A = _agg.order_argb_A
- R = _agg.order_argb_R
- G = _agg.order_argb_G
- B = _agg.order_argb_B
- rgba_tag = _agg.order_argb_rgba_tag
- def __init__(self, *args):
- this = _agg.new_order_argb(*args)
- try: self.this.append(this)
- except: self.this = this
- __swig_destroy__ = _agg.delete_order_argb
- __del__ = lambda self : None;
-order_argb_swigregister = _agg.order_argb_swigregister
-order_argb_swigregister(order_argb)
-
-class order_abgr(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, order_abgr, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, order_abgr, name)
- __repr__ = _swig_repr
- A = _agg.order_abgr_A
- B = _agg.order_abgr_B
- G = _agg.order_abgr_G
- R = _agg.order_abgr_R
- rgba_tag = _agg.order_abgr_rgba_tag
- def __init__(self, *args):
- this = _agg.new_order_abgr(*args)
- try: self.this.append(this)
- except: self.this = this
- __swig_destroy__ = _agg.delete_order_abgr
- __del__ = lambda self : None;
-order_abgr_swigregister = _agg.order_abgr_swigregister
-order_abgr_swigregister(order_abgr)
-
-class order_bgra(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, order_bgra, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, order_bgra, name)
- __repr__ = _swig_repr
- B = _agg.order_bgra_B
- G = _agg.order_bgra_G
- R = _agg.order_bgra_R
- A = _agg.order_bgra_A
- rgba_tag = _agg.order_bgra_rgba_tag
- def __init__(self, *args):
- this = _agg.new_order_bgra(*args)
- try: self.this.append(this)
- except: self.this = this
- __swig_destroy__ = _agg.delete_order_bgra
- __del__ = lambda self : None;
-order_bgra_swigregister = _agg.order_bgra_swigregister
-order_bgra_swigregister(order_bgra)
-
-class rgba(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, rgba, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, rgba, name)
- __repr__ = _swig_repr
- __swig_setmethods__["r"] = _agg.rgba_r_set
- __swig_getmethods__["r"] = _agg.rgba_r_get
- if _newclass:r = _swig_property(_agg.rgba_r_get, _agg.rgba_r_set)
- __swig_setmethods__["g"] = _agg.rgba_g_set
- __swig_getmethods__["g"] = _agg.rgba_g_get
- if _newclass:g = _swig_property(_agg.rgba_g_get, _agg.rgba_g_set)
- __swig_setmethods__["b"] = _agg.rgba_b_set
- __swig_getmethods__["b"] = _agg.rgba_b_get
- if _newclass:b = _swig_property(_agg.rgba_b_get, _agg.rgba_b_set)
- __swig_setmethods__["a"] = _agg.rgba_a_set
- __swig_getmethods__["a"] = _agg.rgba_a_get
- if _newclass:a = _swig_property(_agg.rgba_a_get, _agg.rgba_a_set)
- def clear(*args): return _agg.rgba_clear(*args)
- def transparent(*args): return _agg.rgba_transparent(*args)
- def opacity(*args): return _agg.rgba_opacity(*args)
- def premultiply(*args): return _agg.rgba_premultiply(*args)
- def demultiply(*args): return _agg.rgba_demultiply(*args)
- def gradient(*args): return _agg.rgba_gradient(*args)
- __swig_getmethods__["no_color"] = lambda x: _agg.rgba_no_color
- if _newclass:no_color = staticmethod(_agg.rgba_no_color)
- __swig_getmethods__["from_wavelength"] = lambda x: _agg.rgba_from_wavelength
- if _newclass:from_wavelength = staticmethod(_agg.rgba_from_wavelength)
- def __init__(self, *args):
- this = _agg.new_rgba(*args)
- try: self.this.append(this)
- except: self.this = this
- __swig_destroy__ = _agg.delete_rgba
- __del__ = lambda self : None;
-rgba_swigregister = _agg.rgba_swigregister
-rgba_swigregister(rgba)
-rgba_no_color = _agg.rgba_no_color
-rgba_from_wavelength = _agg.rgba_from_wavelength
-
-class rgba8(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, rgba8, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, rgba8, name)
- __repr__ = _swig_repr
- base_shift = _agg.rgba8_base_shift
- base_size = _agg.rgba8_base_size
- base_mask = _agg.rgba8_base_mask
- __swig_setmethods__["r"] = _agg.rgba8_r_set
- __swig_getmethods__["r"] = _agg.rgba8_r_get
- if _newclass:r = _swig_property(_agg.rgba8_r_get, _agg.rgba8_r_set)
- __swig_setmethods__["g"] = _agg.rgba8_g_set
- __swig_getmethods__["g"] = _agg.rgba8_g_get
- if _newclass:g = _swig_property(_agg.rgba8_g_get, _agg.rgba8_g_set)
- __swig_setmethods__["b"] = _agg.rgba8_b_set
- __swig_getmethods__["b"] = _agg.rgba8_b_get
- if _newclass:b = _swig_property(_agg.rgba8_b_get, _agg.rgba8_b_set)
- __swig_setmethods__["a"] = _agg.rgba8_a_set
- __swig_getmethods__["a"] = _agg.rgba8_a_get
- if _newclass:a = _swig_property(_agg.rgba8_a_get, _agg.rgba8_a_set)
- def __init__(self, *args):
- this = _agg.new_rgba8(*args)
- try: self.this.append(this)
- except: self.this = this
- def clear(*args): return _agg.rgba8_clear(*args)
- def transparent(*args): return _agg.rgba8_transparent(*args)
- def opacity(*args): return _agg.rgba8_opacity(*args)
- def premultiply(*args): return _agg.rgba8_premultiply(*args)
- def demultiply(*args): return _agg.rgba8_demultiply(*args)
- def gradient(*args): return _agg.rgba8_gradient(*args)
- __swig_getmethods__["no_color"] = lambda x: _agg.rgba8_no_color
- if _newclass:no_color = staticmethod(_agg.rgba8_no_color)
- __swig_getmethods__["from_wavelength"] = lambda x: _agg.rgba8_from_wavelength
- if _newclass:from_wavelength = staticmethod(_agg.rgba8_from_wavelength)
- __swig_destroy__ = _agg.delete_rgba8
- __del__ = lambda self : None;
-rgba8_swigregister = _agg.rgba8_swigregister
-rgba8_swigregister(rgba8)
-rgba_pre = _agg.rgba_pre
-rgba8_no_color = _agg.rgba8_no_color
-rgba8_from_wavelength = _agg.rgba8_from_wavelength
-
-rgb8_packed = _agg.rgb8_packed
-bgr8_packed = _agg.bgr8_packed
-argb8_packed = _agg.argb8_packed
-class rgba16(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, rgba16, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, rgba16, name)
- __repr__ = _swig_repr
- base_shift = _agg.rgba16_base_shift
- base_size = _agg.rgba16_base_size
- base_mask = _agg.rgba16_base_mask
- __swig_setmethods__["r"] = _agg.rgba16_r_set
- __swig_getmethods__["r"] = _agg.rgba16_r_get
- if _newclass:r = _swig_property(_agg.rgba16_r_get, _agg.rgba16_r_set)
- __swig_setmethods__["g"] = _agg.rgba16_g_set
- __swig_getmethods__["g"] = _agg.rgba16_g_get
- if _newclass:g = _swig_property(_agg.rgba16_g_get, _agg.rgba16_g_set)
- __swig_setmethods__["b"] = _agg.rgba16_b_set
- __swig_getmethods__["b"] = _agg.rgba16_b_get
- if _newclass:b = _swig_property(_agg.rgba16_b_get, _agg.rgba16_b_set)
- __swig_setmethods__["a"] = _agg.rgba16_a_set
- __swig_getmethods__["a"] = _agg.rgba16_a_get
- if _newclass:a = _swig_property(_agg.rgba16_a_get, _agg.rgba16_a_set)
- def __init__(self, *args):
- this = _agg.new_rgba16(*args)
- try: self.this.append(this)
- except: self.this = this
- def clear(*args): return _agg.rgba16_clear(*args)
- def transparent(*args): return _agg.rgba16_transparent(*args)
- def opacity(*args): return _agg.rgba16_opacity(*args)
- def premultiply(*args): return _agg.rgba16_premultiply(*args)
- def demultiply(*args): return _agg.rgba16_demultiply(*args)
- def gradient(*args): return _agg.rgba16_gradient(*args)
- __swig_getmethods__["no_color"] = lambda x: _agg.rgba16_no_color
- if _newclass:no_color = staticmethod(_agg.rgba16_no_color)
- __swig_getmethods__["from_wavelength"] = lambda x: _agg.rgba16_from_wavelength
- if _newclass:from_wavelength = staticmethod(_agg.rgba16_from_wavelength)
- __swig_destroy__ = _agg.delete_rgba16
- __del__ = lambda self : None;
-rgba16_swigregister = _agg.rgba16_swigregister
-rgba16_swigregister(rgba16)
-rgba8_pre = _agg.rgba8_pre
-rgba16_no_color = _agg.rgba16_no_color
-rgba16_from_wavelength = _agg.rgba16_from_wavelength
-
-class trans_affine(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, trans_affine, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, trans_affine, name)
- __repr__ = _swig_repr
- def __init__(self, *args):
- this = _agg.new_trans_affine(*args)
- try: self.this.append(this)
- except: self.this = this
- def parl_to_parl(*args): return _agg.trans_affine_parl_to_parl(*args)
- def rect_to_parl(*args): return _agg.trans_affine_rect_to_parl(*args)
- def parl_to_rect(*args): return _agg.trans_affine_parl_to_rect(*args)
- def reset(*args): return _agg.trans_affine_reset(*args)
- def multiply(*args): return _agg.trans_affine_multiply(*args)
- def premultiply(*args): return _agg.trans_affine_premultiply(*args)
- def invert(*args): return _agg.trans_affine_invert(*args)
- def flip_x(*args): return _agg.trans_affine_flip_x(*args)
- def flip_y(*args): return _agg.trans_affine_flip_y(*args)
- def as_vec6(*args): return _agg.trans_affine_as_vec6(*args)
- def load_from(*args): return _agg.trans_affine_load_from(*args)
- def __imul__(*args): return _agg.trans_affine___imul__(*args)
- def __mul__(*args): return _agg.trans_affine___mul__(*args)
- def __invert__(*args): return _agg.trans_affine___invert__(*args)
- def __eq__(*args): return _agg.trans_affine___eq__(*args)
- def __ne__(*args): return _agg.trans_affine___ne__(*args)
- def transform(*args): return _agg.trans_affine_transform(*args)
- def inverse_transform(*args): return _agg.trans_affine_inverse_transform(*args)
- def determinant(*args): return _agg.trans_affine_determinant(*args)
- def scale(*args): return _agg.trans_affine_scale(*args)
- def is_identity(*args): return _agg.trans_affine_is_identity(*args)
- def is_equal(*args): return _agg.trans_affine_is_equal(*args)
- def get_rotation(*args): return _agg.trans_affine_get_rotation(*args)
- def get_translation(*args): return _agg.trans_affine_get_translation(*args)
- def get_scaling(*args): return _agg.trans_affine_get_scaling(*args)
- __swig_destroy__ = _agg.delete_trans_affine
- __del__ = lambda self : None;
-trans_affine_swigregister = _agg.trans_affine_swigregister
-trans_affine_swigregister(trans_affine)
-rgba16_pre = _agg.rgba16_pre
-
-class trans_affine_rotation(trans_affine):
- __swig_setmethods__ = {}
- for _s in [trans_affine]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
- __setattr__ = lambda self, name, value: _swig_setattr(self, trans_affine_rotation, name, value)
- __swig_getmethods__ = {}
- for _s in [trans_affine]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
- __getattr__ = lambda self, name: _swig_getattr(self, trans_affine_rotation, name)
- __repr__ = _swig_repr
- def __init__(self, *args):
- this = _agg.new_trans_affine_rotation(*args)
- try: self.this.append(this)
- except: self.this = this
- __swig_destroy__ = _agg.delete_trans_affine_rotation
- __del__ = lambda self : None;
-trans_affine_rotation_swigregister = _agg.trans_affine_rotation_swigregister
-trans_affine_rotation_swigregister(trans_affine_rotation)
-
-class trans_affine_scaling(trans_affine):
- __swig_setmethods__ = {}
- for _s in [trans_affine]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
- __setattr__ = lambda self, name, value: _swig_setattr(self, trans_affine_scaling, name, value)
- __swig_getmethods__ = {}
- for _s in [trans_affine]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
- __getattr__ = lambda self, name: _swig_getattr(self, trans_affine_scaling, name)
- __repr__ = _swig_repr
- def __init__(self, *args):
- this = _agg.new_trans_affine_scaling(*args)
- try: self.this.append(this)
- except: self.this = this
- __swig_destroy__ = _agg.delete_trans_affine_scaling
- __del__ = lambda self : None;
-trans_affine_scaling_swigregister = _agg.trans_affine_scaling_swigregister
-trans_affine_scaling_swigregister(trans_affine_scaling)
-
-class trans_affine_translation(trans_affine):
- __swig_setmethods__ = {}
- for _s in [trans_affine]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
- __setattr__ = lambda self, name, value: _swig_setattr(self, trans_affine_translation, name, value)
- __swig_getmethods__ = {}
- for _s in [trans_affine]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
- __getattr__ = lambda self, name: _swig_getattr(self, trans_affine_translation, name)
- __repr__ = _swig_repr
- def __init__(self, *args):
- this = _agg.new_trans_affine_translation(*args)
- try: self.this.append(this)
- except: self.this = this
- __swig_destroy__ = _agg.delete_trans_affine_translation
- __del__ = lambda self : None;
-trans_affine_translation_swigregister = _agg.trans_affine_translation_swigregister
-trans_affine_translation_swigregister(trans_affine_translation)
-
-class trans_affine_skewing(trans_affine):
- __swig_setmethods__ = {}
- for _s in [trans_affine]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
- __setattr__ = lambda self, name, value: _swig_setattr(self, trans_affine_skewing, name, value)
- __swig_getmethods__ = {}
- for _s in [trans_affine]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
- __getattr__ = lambda self, name: _swig_getattr(self, trans_affine_skewing, name)
- __repr__ = _swig_repr
- def __init__(self, *args):
- this = _agg.new_trans_affine_skewing(*args)
- try: self.this.append(this)
- except: self.this = this
- __swig_destroy__ = _agg.delete_trans_affine_skewing
- __del__ = lambda self : None;
-trans_affine_skewing_swigregister = _agg.trans_affine_skewing_swigregister
-trans_affine_skewing_swigregister(trans_affine_skewing)
-
-class path_storage(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, path_storage, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, path_storage, name)
- __repr__ = _swig_repr
- __swig_destroy__ = _agg.delete_path_storage
- __del__ = lambda self : None;
- def __init__(self, *args):
- this = _agg.new_path_storage(*args)
- try: self.this.append(this)
- except: self.this = this
- def remove_all(*args): return _agg.path_storage_remove_all(*args)
- def last_vertex(*args): return _agg.path_storage_last_vertex(*args)
- def prev_vertex(*args): return _agg.path_storage_prev_vertex(*args)
- def rel_to_abs(*args): return _agg.path_storage_rel_to_abs(*args)
- def move_to(*args): return _agg.path_storage_move_to(*args)
- def move_rel(*args): return _agg.path_storage_move_rel(*args)
- def line_to(*args): return _agg.path_storage_line_to(*args)
- def line_rel(*args): return _agg.path_storage_line_rel(*args)
- def arc_to(*args): return _agg.path_storage_arc_to(*args)
- def arc_rel(*args): return _agg.path_storage_arc_rel(*args)
- def curve3(*args): return _agg.path_storage_curve3(*args)
- def curve3_rel(*args): return _agg.path_storage_curve3_rel(*args)
- def curve4(*args): return _agg.path_storage_curve4(*args)
- def curve4_rel(*args): return _agg.path_storage_curve4_rel(*args)
- def end_poly(*args): return _agg.path_storage_end_poly(*args)
- def close_polygon(*args): return _agg.path_storage_close_polygon(*args)
- def add_poly(*args): return _agg.path_storage_add_poly(*args)
- def start_new_path(*args): return _agg.path_storage_start_new_path(*args)
- def copy_from(*args): return _agg.path_storage_copy_from(*args)
- def total_vertices(*args): return _agg.path_storage_total_vertices(*args)
- def command(*args): return _agg.path_storage_command(*args)
- def rewind(*args): return _agg.path_storage_rewind(*args)
- def vertex(*args): return _agg.path_storage_vertex(*args)
- def arrange_orientations(*args): return _agg.path_storage_arrange_orientations(*args)
- def arrange_orientations_all_paths(*args): return _agg.path_storage_arrange_orientations_all_paths(*args)
- def flip_x(*args): return _agg.path_storage_flip_x(*args)
- def flip_y(*args): return _agg.path_storage_flip_y(*args)
- def add_vertex(*args): return _agg.path_storage_add_vertex(*args)
- def modify_vertex(*args): return _agg.path_storage_modify_vertex(*args)
- def modify_command(*args): return _agg.path_storage_modify_command(*args)
-path_storage_swigregister = _agg.path_storage_swigregister
-path_storage_swigregister(path_storage)
-
-butt_cap = _agg.butt_cap
-square_cap = _agg.square_cap
-round_cap = _agg.round_cap
-miter_join = _agg.miter_join
-miter_join_revert = _agg.miter_join_revert
-round_join = _agg.round_join
-bevel_join = _agg.bevel_join
-class rendering_buffer(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, rendering_buffer, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, rendering_buffer, name)
- __repr__ = _swig_repr
- __swig_destroy__ = _agg.delete_rendering_buffer
- __del__ = lambda self : None;
- def __init__(self, *args):
- this = _agg.new_rendering_buffer(*args)
- try: self.this.append(this)
- except: self.this = this
- def attach(*args): return _agg.rendering_buffer_attach(*args)
- def buf(*args): return _agg.rendering_buffer_buf(*args)
- def width(*args): return _agg.rendering_buffer_width(*args)
- def height(*args): return _agg.rendering_buffer_height(*args)
- def stride(*args): return _agg.rendering_buffer_stride(*args)
- def stride_abs(*args): return _agg.rendering_buffer_stride_abs(*args)
- def row(*args): return _agg.rendering_buffer_row(*args)
- def next_row(*args): return _agg.rendering_buffer_next_row(*args)
- def rows(*args): return _agg.rendering_buffer_rows(*args)
- def copy_from(*args): return _agg.rendering_buffer_copy_from(*args)
- def clear(*args): return _agg.rendering_buffer_clear(*args)
- def attachb(*args): return _agg.rendering_buffer_attachb(*args)
-rendering_buffer_swigregister = _agg.rendering_buffer_swigregister
-rendering_buffer_swigregister(rendering_buffer)
-stroke_theta = cvar.stroke_theta
-
-comp_op_clear = _agg.comp_op_clear
-comp_op_src = _agg.comp_op_src
-comp_op_dst = _agg.comp_op_dst
-comp_op_src_over = _agg.comp_op_src_over
-comp_op_dst_over = _agg.comp_op_dst_over
-comp_op_src_in = _agg.comp_op_src_in
-comp_op_dst_in = _agg.comp_op_dst_in
-comp_op_src_out = _agg.comp_op_src_out
-comp_op_dst_out = _agg.comp_op_dst_out
-comp_op_src_atop = _agg.comp_op_src_atop
-comp_op_dst_atop = _agg.comp_op_dst_atop
-comp_op_xor = _agg.comp_op_xor
-comp_op_plus = _agg.comp_op_plus
-comp_op_minus = _agg.comp_op_minus
-comp_op_multiply = _agg.comp_op_multiply
-comp_op_screen = _agg.comp_op_screen
-comp_op_overlay = _agg.comp_op_overlay
-comp_op_darken = _agg.comp_op_darken
-comp_op_lighten = _agg.comp_op_lighten
-comp_op_color_dodge = _agg.comp_op_color_dodge
-comp_op_color_burn = _agg.comp_op_color_burn
-comp_op_hard_light = _agg.comp_op_hard_light
-comp_op_soft_light = _agg.comp_op_soft_light
-comp_op_difference = _agg.comp_op_difference
-comp_op_exclusion = _agg.comp_op_exclusion
-comp_op_contrast = _agg.comp_op_contrast
-end_of_comp_op_e = _agg.end_of_comp_op_e
-class pixel64_type(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, pixel64_type, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, pixel64_type, name)
- __repr__ = _swig_repr
- __swig_setmethods__["c"] = _agg.pixel64_type_c_set
- __swig_getmethods__["c"] = _agg.pixel64_type_c_get
- if _newclass:c = _swig_property(_agg.pixel64_type_c_get, _agg.pixel64_type_c_set)
- def __init__(self, *args):
- this = _agg.new_pixel64_type(*args)
- try: self.this.append(this)
- except: self.this = this
- __swig_destroy__ = _agg.delete_pixel64_type
- __del__ = lambda self : None;
-pixel64_type_swigregister = _agg.pixel64_type_swigregister
-pixel64_type_swigregister(pixel64_type)
-
-class pixel_format_rgba(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, pixel_format_rgba, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, pixel_format_rgba, name)
- __repr__ = _swig_repr
- base_shift = _agg.pixel_format_rgba_base_shift
- base_size = _agg.pixel_format_rgba_base_size
- base_mask = _agg.pixel_format_rgba_base_mask
- def __init__(self, *args):
- this = _agg.new_pixel_format_rgba(*args)
- try: self.this.append(this)
- except: self.this = this
- def attach(*args): return _agg.pixel_format_rgba_attach(*args)
- def width(*args): return _agg.pixel_format_rgba_width(*args)
- def height(*args): return _agg.pixel_format_rgba_height(*args)
- def pixel(*args): return _agg.pixel_format_rgba_pixel(*args)
- def row(*args): return _agg.pixel_format_rgba_row(*args)
- def span(*args): return _agg.pixel_format_rgba_span(*args)
- def copy_pixel(*args): return _agg.pixel_format_rgba_copy_pixel(*args)
- def blend_pixel(*args): return _agg.pixel_format_rgba_blend_pixel(*args)
- def copy_hline(*args): return _agg.pixel_format_rgba_copy_hline(*args)
- def copy_vline(*args): return _agg.pixel_format_rgba_copy_vline(*args)
- def blend_hline(*args): return _agg.pixel_format_rgba_blend_hline(*args)
- def blend_vline(*args): return _agg.pixel_format_rgba_blend_vline(*args)
- def blend_solid_hspan(*args): return _agg.pixel_format_rgba_blend_solid_hspan(*args)
- def blend_solid_vspan(*args): return _agg.pixel_format_rgba_blend_solid_vspan(*args)
- def copy_color_hspan(*args): return _agg.pixel_format_rgba_copy_color_hspan(*args)
- def blend_color_hspan(*args): return _agg.pixel_format_rgba_blend_color_hspan(*args)
- def blend_color_vspan(*args): return _agg.pixel_format_rgba_blend_color_vspan(*args)
- def premultiply(*args): return _agg.pixel_format_rgba_premultiply(*args)
- def demultiply(*args): return _agg.pixel_format_rgba_demultiply(*args)
- def copy_from(*args): return _agg.pixel_format_rgba_copy_from(*args)
- __swig_destroy__ = _agg.delete_pixel_format_rgba
- __del__ = lambda self : None;
-pixel_format_rgba_swigregister = _agg.pixel_format_rgba_swigregister
-pixel_format_rgba_swigregister(pixel_format_rgba)
-
-class renderer_base_rgba(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, renderer_base_rgba, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, renderer_base_rgba, name)
- __repr__ = _swig_repr
- def __init__(self, *args):
- this = _agg.new_renderer_base_rgba(*args)
- try: self.this.append(this)
- except: self.this = this
- def attach(*args): return _agg.renderer_base_rgba_attach(*args)
- def ren(*args): return _agg.renderer_base_rgba_ren(*args)
- def width(*args): return _agg.renderer_base_rgba_width(*args)
- def height(*args): return _agg.renderer_base_rgba_height(*args)
- def reset_clipping(*args): return _agg.renderer_base_rgba_reset_clipping(*args)
- def clip_box_naked(*args): return _agg.renderer_base_rgba_clip_box_naked(*args)
- def inbox(*args): return _agg.renderer_base_rgba_inbox(*args)
- def first_clip_box(*args): return _agg.renderer_base_rgba_first_clip_box(*args)
- def next_clip_box(*args): return _agg.renderer_base_rgba_next_clip_box(*args)
- def clip_box(*args): return _agg.renderer_base_rgba_clip_box(*args)
- def xmin(*args): return _agg.renderer_base_rgba_xmin(*args)
- def ymin(*args): return _agg.renderer_base_rgba_ymin(*args)
- def xmax(*args): return _agg.renderer_base_rgba_xmax(*args)
- def ymax(*args): return _agg.renderer_base_rgba_ymax(*args)
- def bounding_clip_box(*args): return _agg.renderer_base_rgba_bounding_clip_box(*args)
- def bounding_xmin(*args): return _agg.renderer_base_rgba_bounding_xmin(*args)
- def bounding_ymin(*args): return _agg.renderer_base_rgba_bounding_ymin(*args)
- def bounding_xmax(*args): return _agg.renderer_base_rgba_bounding_xmax(*args)
- def bounding_ymax(*args): return _agg.renderer_base_rgba_bounding_ymax(*args)
- def clear(*args): return _agg.renderer_base_rgba_clear(*args)
- def copy_pixel(*args): return _agg.renderer_base_rgba_copy_pixel(*args)
- def blend_pixel(*args): return _agg.renderer_base_rgba_blend_pixel(*args)
- def pixel(*args): return _agg.renderer_base_rgba_pixel(*args)
- def copy_hline(*args): return _agg.renderer_base_rgba_copy_hline(*args)
- def copy_vline(*args): return _agg.renderer_base_rgba_copy_vline(*args)
- def blend_hline(*args): return _agg.renderer_base_rgba_blend_hline(*args)
- def blend_vline(*args): return _agg.renderer_base_rgba_blend_vline(*args)
- def copy_bar(*args): return _agg.renderer_base_rgba_copy_bar(*args)
- def blend_bar(*args): return _agg.renderer_base_rgba_blend_bar(*args)
- def span(*args): return _agg.renderer_base_rgba_span(*args)
- def blend_solid_hspan(*args): return _agg.renderer_base_rgba_blend_solid_hspan(*args)
- def blend_solid_vspan(*args): return _agg.renderer_base_rgba_blend_solid_vspan(*args)
- def copy_color_hspan(*args): return _agg.renderer_base_rgba_copy_color_hspan(*args)
- def blend_color_hspan(*args): return _agg.renderer_base_rgba_blend_color_hspan(*args)
- def blend_color_vspan(*args): return _agg.renderer_base_rgba_blend_color_vspan(*args)
- def copy_color_hspan_no_clip(*args): return _agg.renderer_base_rgba_copy_color_hspan_no_clip(*args)
- def blend_color_hspan_no_clip(*args): return _agg.renderer_base_rgba_blend_color_hspan_no_clip(*args)
- def blend_color_vspan_no_clip(*args): return _agg.renderer_base_rgba_blend_color_vspan_no_clip(*args)
- def clip_rect_area(*args): return _agg.renderer_base_rgba_clip_rect_area(*args)
- def copy_from(*args): return _agg.renderer_base_rgba_copy_from(*args)
- def clear_rgba8(*args): return _agg.renderer_base_rgba_clear_rgba8(*args)
- def clear_rgba(*args): return _agg.renderer_base_rgba_clear_rgba(*args)
- __swig_destroy__ = _agg.delete_renderer_base_rgba
- __del__ = lambda self : None;
-renderer_base_rgba_swigregister = _agg.renderer_base_rgba_swigregister
-renderer_base_rgba_swigregister(renderer_base_rgba)
-
-class conv_curve_path(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, conv_curve_path, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, conv_curve_path, name)
- __repr__ = _swig_repr
- def __init__(self, *args):
- this = _agg.new_conv_curve_path(*args)
- try: self.this.append(this)
- except: self.this = this
- def set_source(*args): return _agg.conv_curve_path_set_source(*args)
- def approximation_scale(*args): return _agg.conv_curve_path_approximation_scale(*args)
- def rewind(*args): return _agg.conv_curve_path_rewind(*args)
- def vertex(*args): return _agg.conv_curve_path_vertex(*args)
- __swig_destroy__ = _agg.delete_conv_curve_path
- __del__ = lambda self : None;
-conv_curve_path_swigregister = _agg.conv_curve_path_swigregister
-conv_curve_path_swigregister(conv_curve_path)
-
-class conv_curve_trans(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, conv_curve_trans, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, conv_curve_trans, name)
- __repr__ = _swig_repr
- def __init__(self, *args):
- this = _agg.new_conv_curve_trans(*args)
- try: self.this.append(this)
- except: self.this = this
- def set_source(*args): return _agg.conv_curve_trans_set_source(*args)
- def approximation_scale(*args): return _agg.conv_curve_trans_approximation_scale(*args)
- def rewind(*args): return _agg.conv_curve_trans_rewind(*args)
- def vertex(*args): return _agg.conv_curve_trans_vertex(*args)
- __swig_destroy__ = _agg.delete_conv_curve_trans
- __del__ = lambda self : None;
-conv_curve_trans_swigregister = _agg.conv_curve_trans_swigregister
-conv_curve_trans_swigregister(conv_curve_trans)
-
-class conv_transform_path(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, conv_transform_path, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, conv_transform_path, name)
- __repr__ = _swig_repr
- def __init__(self, *args):
- this = _agg.new_conv_transform_path(*args)
- try: self.this.append(this)
- except: self.this = this
- def set_source(*args): return _agg.conv_transform_path_set_source(*args)
- def rewind(*args): return _agg.conv_transform_path_rewind(*args)
- def vertex(*args): return _agg.conv_transform_path_vertex(*args)
- def transformer(*args): return _agg.conv_transform_path_transformer(*args)
- __swig_destroy__ = _agg.delete_conv_transform_path
- __del__ = lambda self : None;
-conv_transform_path_swigregister = _agg.conv_transform_path_swigregister
-conv_transform_path_swigregister(conv_transform_path)
-
-class conv_transform_curve(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, conv_transform_curve, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, conv_transform_curve, name)
- __repr__ = _swig_repr
- def __init__(self, *args):
- this = _agg.new_conv_transform_curve(*args)
- try: self.this.append(this)
- except: self.this = this
- def set_source(*args): return _agg.conv_transform_curve_set_source(*args)
- def rewind(*args): return _agg.conv_transform_curve_rewind(*args)
- def vertex(*args): return _agg.conv_transform_curve_vertex(*args)
- def transformer(*args): return _agg.conv_transform_curve_transformer(*args)
- __swig_destroy__ = _agg.delete_conv_transform_curve
- __del__ = lambda self : None;
-conv_transform_curve_swigregister = _agg.conv_transform_curve_swigregister
-conv_transform_curve_swigregister(conv_transform_curve)
-
-class vcgen_stroke(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, vcgen_stroke, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, vcgen_stroke, name)
- __repr__ = _swig_repr
- def __init__(self, *args):
- this = _agg.new_vcgen_stroke(*args)
- try: self.this.append(this)
- except: self.this = this
- def line_cap(*args): return _agg.vcgen_stroke_line_cap(*args)
- def line_join(*args): return _agg.vcgen_stroke_line_join(*args)
- def inner_line_join(*args): return _agg.vcgen_stroke_inner_line_join(*args)
- def miter_limit_theta(*args): return _agg.vcgen_stroke_miter_limit_theta(*args)
- def width(*args): return _agg.vcgen_stroke_width(*args)
- def miter_limit(*args): return _agg.vcgen_stroke_miter_limit(*args)
- def inner_miter_limit(*args): return _agg.vcgen_stroke_inner_miter_limit(*args)
- def approximation_scale(*args): return _agg.vcgen_stroke_approximation_scale(*args)
- def shorten(*args): return _agg.vcgen_stroke_shorten(*args)
- def remove_all(*args): return _agg.vcgen_stroke_remove_all(*args)
- def add_vertex(*args): return _agg.vcgen_stroke_add_vertex(*args)
- def rewind(*args): return _agg.vcgen_stroke_rewind(*args)
- def vertex(*args): return _agg.vcgen_stroke_vertex(*args)
- __swig_destroy__ = _agg.delete_vcgen_stroke
- __del__ = lambda self : None;
-vcgen_stroke_swigregister = _agg.vcgen_stroke_swigregister
-vcgen_stroke_swigregister(vcgen_stroke)
-
-class null_markers(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, null_markers, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, null_markers, name)
- __repr__ = _swig_repr
- def remove_all(*args): return _agg.null_markers_remove_all(*args)
- def add_vertex(*args): return _agg.null_markers_add_vertex(*args)
- def prepare_src(*args): return _agg.null_markers_prepare_src(*args)
- def rewind(*args): return _agg.null_markers_rewind(*args)
- def vertex(*args): return _agg.null_markers_vertex(*args)
- def __init__(self, *args):
- this = _agg.new_null_markers(*args)
- try: self.this.append(this)
- except: self.this = this
- __swig_destroy__ = _agg.delete_null_markers
- __del__ = lambda self : None;
-null_markers_swigregister = _agg.null_markers_swigregister
-null_markers_swigregister(null_markers)
-
-class conv_adaptor_vcgen_path(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, conv_adaptor_vcgen_path, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, conv_adaptor_vcgen_path, name)
- __repr__ = _swig_repr
- def __init__(self, *args):
- this = _agg.new_conv_adaptor_vcgen_path(*args)
- try: self.this.append(this)
- except: self.this = this
- def set_source(*args): return _agg.conv_adaptor_vcgen_path_set_source(*args)
- def generator(*args): return _agg.conv_adaptor_vcgen_path_generator(*args)
- def markers(*args): return _agg.conv_adaptor_vcgen_path_markers(*args)
- def rewind(*args): return _agg.conv_adaptor_vcgen_path_rewind(*args)
- def vertex(*args): return _agg.conv_adaptor_vcgen_path_vertex(*args)
- __swig_destroy__ = _agg.delete_conv_adaptor_vcgen_path
- __del__ = lambda self : None;
-conv_adaptor_vcgen_path_swigregister = _agg.conv_adaptor_vcgen_path_swigregister
-conv_adaptor_vcgen_path_swigregister(conv_adaptor_vcgen_path)
-
-class conv_adaptor_vcgen_transpath(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, conv_adaptor_vcgen_transpath, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, conv_adaptor_vcgen_transpath, name)
- __repr__ = _swig_repr
- def __init__(self, *args):
- this = _agg.new_conv_adaptor_vcgen_transpath(*args)
- try: self.this.append(this)
- except: self.this = this
- def set_source(*args): return _agg.conv_adaptor_vcgen_transpath_set_source(*args)
- def generator(*args): return _agg.conv_adaptor_vcgen_transpath_generator(*args)
- def markers(*args): return _agg.conv_adaptor_vcgen_transpath_markers(*args)
- def rewind(*args): return _agg.conv_adaptor_vcgen_transpath_rewind(*args)
- def vertex(*args): return _agg.conv_adaptor_vcgen_transpath_vertex(*args)
- __swig_destroy__ = _agg.delete_conv_adaptor_vcgen_transpath
- __del__ = lambda self : None;
-conv_adaptor_vcgen_transpath_swigregister = _agg.conv_adaptor_vcgen_transpath_swigregister
-conv_adaptor_vcgen_transpath_swigregister(conv_adaptor_vcgen_transpath)
-
-class conv_adaptor_vcgen_curve(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, conv_adaptor_vcgen_curve, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, conv_adaptor_vcgen_curve, name)
- __repr__ = _swig_repr
- def __init__(self, *args):
- this = _agg.new_conv_adaptor_vcgen_curve(*args)
- try: self.this.append(this)
- except: self.this = this
- def set_source(*args): return _agg.conv_adaptor_vcgen_curve_set_source(*args)
- def generator(*args): return _agg.conv_adaptor_vcgen_curve_generator(*args)
- def markers(*args): return _agg.conv_adaptor_vcgen_curve_markers(*args)
- def rewind(*args): return _agg.conv_adaptor_vcgen_curve_rewind(*args)
- def vertex(*args): return _agg.conv_adaptor_vcgen_curve_vertex(*args)
- __swig_destroy__ = _agg.delete_conv_adaptor_vcgen_curve
- __del__ = lambda self : None;
-conv_adaptor_vcgen_curve_swigregister = _agg.conv_adaptor_vcgen_curve_swigregister
-conv_adaptor_vcgen_curve_swigregister(conv_adaptor_vcgen_curve)
-
-class conv_adaptor_vcgen_transcurve(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, conv_adaptor_vcgen_transcurve, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, conv_adaptor_vcgen_transcurve, name)
- __repr__ = _swig_repr
- def __init__(self, *args):
- this = _agg.new_conv_adaptor_vcgen_transcurve(*args)
- try: self.this.append(this)
- except: self.this = this
- def set_source(*args): return _agg.conv_adaptor_vcgen_transcurve_set_source(*args)
- def generator(*args): return _agg.conv_adaptor_vcgen_transcurve_generator(*args)
- def markers(*args): return _agg.conv_adaptor_vcgen_transcurve_markers(*args)
- def rewind(*args): return _agg.conv_adaptor_vcgen_transcurve_rewind(*args)
- def vertex(*args): return _agg.conv_adaptor_vcgen_transcurve_vertex(*args)
- __swig_destroy__ = _agg.delete_conv_adaptor_vcgen_transcurve
- __del__ = lambda self : None;
-conv_adaptor_vcgen_transcurve_swigregister = _agg.conv_adaptor_vcgen_transcurve_swigregister
-conv_adaptor_vcgen_transcurve_swigregister(conv_adaptor_vcgen_transcurve)
-
-class conv_adaptor_vcgen_curvetrans(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, conv_adaptor_vcgen_curvetrans, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, conv_adaptor_vcgen_curvetrans, name)
- __repr__ = _swig_repr
- def __init__(self, *args):
- this = _agg.new_conv_adaptor_vcgen_curvetrans(*args)
- try: self.this.append(this)
- except: self.this = this
- def set_source(*args): return _agg.conv_adaptor_vcgen_curvetrans_set_source(*args)
- def generator(*args): return _agg.conv_adaptor_vcgen_curvetrans_generator(*args)
- def markers(*args): return _agg.conv_adaptor_vcgen_curvetrans_markers(*args)
- def rewind(*args): return _agg.conv_adaptor_vcgen_curvetrans_rewind(*args)
- def vertex(*args): return _agg.conv_adaptor_vcgen_curvetrans_vertex(*args)
- __swig_destroy__ = _agg.delete_conv_adaptor_vcgen_curvetrans
- __del__ = lambda self : None;
-conv_adaptor_vcgen_curvetrans_swigregister = _agg.conv_adaptor_vcgen_curvetrans_swigregister
-conv_adaptor_vcgen_curvetrans_swigregister(conv_adaptor_vcgen_curvetrans)
-
-class conv_stroke_path(conv_adaptor_vcgen_path):
- __swig_setmethods__ = {}
- for _s in [conv_adaptor_vcgen_path]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
- __setattr__ = lambda self, name, value: _swig_setattr(self, conv_stroke_path, name, value)
- __swig_getmethods__ = {}
- for _s in [conv_adaptor_vcgen_path]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
- __getattr__ = lambda self, name: _swig_getattr(self, conv_stroke_path, name)
- __repr__ = _swig_repr
- def __init__(self, *args):
- this = _agg.new_conv_stroke_path(*args)
- try: self.this.append(this)
- except: self.this = this
- def line_cap(*args): return _agg.conv_stroke_path_line_cap(*args)
- def line_join(*args): return _agg.conv_stroke_path_line_join(*args)
- def inner_line_join(*args): return _agg.conv_stroke_path_inner_line_join(*args)
- def miter_limit_theta(*args): return _agg.conv_stroke_path_miter_limit_theta(*args)
- def width(*args): return _agg.conv_stroke_path_width(*args)
- def miter_limit(*args): return _agg.conv_stroke_path_miter_limit(*args)
- def inner_miter_limit(*args): return _agg.conv_stroke_path_inner_miter_limit(*args)
- def approximation_scale(*args): return _agg.conv_stroke_path_approximation_scale(*args)
- def shorten(*args): return _agg.conv_stroke_path_shorten(*args)
- __swig_destroy__ = _agg.delete_conv_stroke_path
- __del__ = lambda self : None;
-conv_stroke_path_swigregister = _agg.conv_stroke_path_swigregister
-conv_stroke_path_swigregister(conv_stroke_path)
-
-class conv_stroke_transpath(conv_adaptor_vcgen_transpath):
- __swig_setmethods__ = {}
- for _s in [conv_adaptor_vcgen_transpath]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
- __setattr__ = lambda self, name, value: _swig_setattr(self, conv_stroke_transpath, name, value)
- __swig_getmethods__ = {}
- for _s in [conv_adaptor_vcgen_transpath]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
- __getattr__ = lambda self, name: _swig_getattr(self, conv_stroke_transpath, name)
- __repr__ = _swig_repr
- def __init__(self, *args):
- this = _agg.new_conv_stroke_transpath(*args)
- try: self.this.append(this)
- except: self.this = this
- def line_cap(*args): return _agg.conv_stroke_transpath_line_cap(*args)
- def line_join(*args): return _agg.conv_stroke_transpath_line_join(*args)
- def inner_line_join(*args): return _agg.conv_stroke_transpath_inner_line_join(*args)
- def miter_limit_theta(*args): return _agg.conv_stroke_transpath_miter_limit_theta(*args)
- def width(*args): return _agg.conv_stroke_transpath_width(*args)
- def miter_limit(*args): return _agg.conv_stroke_transpath_miter_limit(*args)
- def inner_miter_limit(*args): return _agg.conv_stroke_transpath_inner_miter_limit(*args)
- def approximation_scale(*args): return _agg.conv_stroke_transpath_approximation_scale(*args)
- def shorten(*args): return _agg.conv_stroke_transpath_shorten(*args)
- __swig_destroy__ = _agg.delete_conv_stroke_transpath
- __del__ = lambda self : None;
-conv_stroke_transpath_swigregister = _agg.conv_stroke_transpath_swigregister
-conv_stroke_transpath_swigregister(conv_stroke_transpath)
-
-class conv_stroke_curve(conv_adaptor_vcgen_curve):
- __swig_setmethods__ = {}
- for _s in [conv_adaptor_vcgen_curve]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
- __setattr__ = lambda self, name, value: _swig_setattr(self, conv_stroke_curve, name, value)
- __swig_getmethods__ = {}
- for _s in [conv_adaptor_vcgen_curve]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
- __getattr__ = lambda self, name: _swig_getattr(self, conv_stroke_curve, name)
- __repr__ = _swig_repr
- def __init__(self, *args):
- this = _agg.new_conv_stroke_curve(*args)
- try: self.this.append(this)
- except: self.this = this
- def line_cap(*args): return _agg.conv_stroke_curve_line_cap(*args)
- def line_join(*args): return _agg.conv_stroke_curve_line_join(*args)
- def inner_line_join(*args): return _agg.conv_stroke_curve_inner_line_join(*args)
- def miter_limit_theta(*args): return _agg.conv_stroke_curve_miter_limit_theta(*args)
- def width(*args): return _agg.conv_stroke_curve_width(*args)
- def miter_limit(*args): return _agg.conv_stroke_curve_miter_limit(*args)
- def inner_miter_limit(*args): return _agg.conv_stroke_curve_inner_miter_limit(*args)
- def approximation_scale(*args): return _agg.conv_stroke_curve_approximation_scale(*args)
- def shorten(*args): return _agg.conv_stroke_curve_shorten(*args)
- __swig_destroy__ = _agg.delete_conv_stroke_curve
- __del__ = lambda self : None;
-conv_stroke_curve_swigregister = _agg.conv_stroke_curve_swigregister
-conv_stroke_curve_swigregister(conv_stroke_curve)
-
-class conv_stroke_transcurve(_object):
- __swig_setmethods__ = {}
- __setattr__ = lambda self, name, value: _swig_setattr(self, conv_stroke_transcurve, name, value)
- __swig_getmethods__ = {}
- __getattr__ = lambda self, name: _swig_getattr(self, conv_stroke_transcurve, name)
- __repr__ = _swig_repr
- def __init__(self, *args):
- this = _agg.new_conv_stroke_transcurve(*args)
- try: self.this.append(this)
- except: self....
[truncated message content] |
|
From: <jd...@us...> - 2008-05-28 02:04:28
|
Revision: 5281
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5281&view=rev
Author: jdh2358
Date: 2008-05-27 19:04:26 -0700 (Tue, 27 May 2008)
Log Message:
-----------
fixed rgbacache bug which broke clim and clam in interactive use
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/image.py
Modified: trunk/matplotlib/lib/matplotlib/image.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/image.py 2008-05-27 21:21:32 UTC (rev 5280)
+++ trunk/matplotlib/lib/matplotlib/image.py 2008-05-28 02:04:26 UTC (rev 5281)
@@ -116,6 +116,7 @@
update state
"""
self._imcache = None
+ self._rgbacache = None
cm.ScalarMappable.changed(self)
@@ -424,7 +425,6 @@
raise NotImplementedError('Method not supported')
def set_interpolation(self, s):
- print s
if s != None and s != 'nearest':
raise NotImplementedError('Only nearest neighbor supported')
AxesImage.set_interpolation(self, s)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jd...@us...> - 2008-05-27 21:21:34
|
Revision: 5280
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5280&view=rev
Author: jdh2358
Date: 2008-05-27 14:21:32 -0700 (Tue, 27 May 2008)
Log Message:
-----------
added an isinit check in LinearSegmentedColormap.is_gray
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/colors.py
Modified: trunk/matplotlib/lib/matplotlib/colors.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/colors.py 2008-05-27 17:42:33 UTC (rev 5279)
+++ trunk/matplotlib/lib/matplotlib/colors.py 2008-05-27 21:21:32 UTC (rev 5280)
@@ -501,6 +501,7 @@
raise NotImplementedError("Abstract class only")
def is_gray(self):
+ if not self._isinit: self._init()
return (np.alltrue(self._lut[:,0] == self._lut[:,1])
and np.alltrue(self._lut[:,0] == self._lut[:,2]))
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <md...@us...> - 2008-05-27 17:42:36
|
Revision: 5279
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5279&view=rev
Author: mdboom
Date: 2008-05-27 10:42:33 -0700 (Tue, 27 May 2008)
Log Message:
-----------
Removing obsolete PASSED_DEMOS file
Removed Paths:
-------------
trunk/matplotlib/PASSED_DEMOS
Deleted: trunk/matplotlib/PASSED_DEMOS
===================================================================
--- trunk/matplotlib/PASSED_DEMOS 2008-05-27 16:25:28 UTC (rev 5278)
+++ trunk/matplotlib/PASSED_DEMOS 2008-05-27 17:42:33 UTC (rev 5279)
@@ -1,228 +0,0 @@
-accented_text.py O
-agg_buffer_to_array.py O
-agg_oo.py O
-agg_resize.py [BROKEN IN TRUNK]
-agg_test.py ???
-alignment_test.py O
-animation_blit_fltk.py [terminate called after throwing an instance of 'Swig::DirectorMethodException']
-animation_blit.py O
-animation_blit_qt4.py O
-animation_blit_qt.py O
-animation_blit_tk.py O
-animation_blit_wx.py O
-anim.py O [BUT SLOWER]
-annotation_demo.py O
-anscombe.py O
-arctest.py O
-arrow_demo.py O
-axes_demo.py O
-axes_props.py O
-axhspan_demo.py O
-axis_equal_demo.py O
-backend_driver.py [N/A]
-barchart_demo.py O
-barcode_demo.py O
-barh_demo.py O
-bar_stacked.py O
-boxplot_demo.py O
-break.py O
-broken_barh.py O
-clippath_test.py O
-clippedline.py O
-collections_demo.py O
-colorbar_only.py O
-color_by_yvalue.py O
-color_demo.py O
-colours.py [???]
-contour_demo.py O
-contourf_demo.py O
-contour_image.py O
-coords_demo.py O
-coords_report.py O
-csd_demo.py O
-cursor_demo.py O
-custom_figure_class.py O
-customize_rc.py
-custom_ticker1.py O
-dannys_example.py [REQUIRES NUMERIC]
-dash_control.py O
-dashpointlabel.py O
-dashtick.py O
-data_browser.py O
-data_helper.py [N/A]
-date_demo1.py O
-date_demo2.py O
-date_demo_convert.py O
-date_demo_rrule.py O
-date_index_formatter.py O
-dynamic_collection.py O
-dynamic_demo.py O
-dynamic_demo_wx.py [REQUIRES NON-AGG WX RENDERER, WHICH IS NOT YET IMPLEMENTED]
-dynamic_image_gtkagg.py O
-dynamic_image_wxagg2.py O
-dynamic_image_wxagg.py [REQUIRES NON-AGG WX RENDERER, WHICH IS NOT YET IMPLEMENTED]
-ellipse_demo.py O
-ellipse_rotated.py O
-embedding_in_gtk2.py [REQUIRES NON-AGG GDK RENDERER, WHICH IS NOT YET IMPLEMENTED]
-embedding_in_gtk3.py O
-embedding_in_gtk.py [REQUIRES NON-AGG GDK RENDERER, WHICH IS NOT YET IMPLEMENTED]
-embedding_in_qt4.py O
-embedding_in_qt.py O
-embedding_in_tk2.py O
-embedding_in_tk.py O
-embedding_in_wx2.py [IDENTICAL BUG IN TRUNK -- Y-AXIS VALUES ARE TRUNCATED]
-embedding_in_wx3.py O
-embedding_in_wx4.py O
-embedding_in_wx.py [REQUIRES NON-AGG WX RENDERER, WHICH IS NOT YET IMPLEMENTED]
-errorbar_demo.py O
-errorbar_limits.py O
-figimage_demo.py O
-figlegend_demo.py O
-figtext.py O
-fill_between_posneg.py O
-fill_between.py O
-fill_demo2.py O
-fill_demo.py O
-fill_spiral.py O
-finance_demo.py O
-font_indexing.py O
-fonts_demo_kw.py O
-fonts_demo.py O
-font_table_ttf.py [N/A]
-ftface_props.py [N/A]
-ganged_plots.py O
-glyph_to_path.py O
-gradient_bar.py O
-gtk_spreadsheet.py [REQUIRES NON-AGG GDK RENDERER, WHICH IS NOT YET IMPLEMENTED]
-hatch_demo.py O
-histogram_demo_canvasagg.py [???]
-histogram_demo.py O
-image_demo2.py O
-image_demo3.py O
-image_demo.py O
-image_interp.py O
-image_masked.py O [Whew!]
-image_origin.py O
-image_slices_viewer.py [BROKEN ON TRUNK]
-__init__.py [N/A]
-integral_demo.py O
-interactive2.py [N/A]
-interactive.py [N/A]
-interp_demo.py O
-invert_axes.py O
-keypress_demo.py [BROKEN IN TRUNK]
-lasso_demo.py O
-layer_images.py O
-legend_auto.py [WEIRD z-order problem in figure 10]
-legend_demo2.py O
-legend_demo.py O
-legend_scatter.py O
-line_collection2.py O
-line_collection.py O
-lineprops_dialog_gtk.py O
-line_styles.py O
-load_converter.py O
-loadrec.py O
-log_bar.py O
-log_demo.py O
-logo.py O
-log_test.py O
-major_minor_demo1.py O
-major_minor_demo2.py O
-masked_demo.py O
-mathtext_demo.py O
-mathtext_examples.py O
-mathtext_wx.py O
-matplotlib_icon.py [N/A]
-matshow.py O
-movie_demo.py O
-mpl_with_glade.py [N/A]
-mri_demo.py O
-mri_with_eeg.py
-multi_image.py O
-multiline.py O
-multiple_figs_demo.py O
-newscalarformatter_demo.py O
-pcolor_demo2.py O
-pcolor_demo.py O
-pcolor_log.py O
-pcolor_nonuniform.py O
-pcolor_small.py O
-pick_event_demo2.py O
-pick_event_demo.py O
-pie_demo.py O
-plotfile_demo.py O
-polar_bar.py O
-polar_demo.py O
-polar_legend.py O
-polar_scatter.py O
-poly_editor.py O
-poormans_contour.py O
-printing_in_wx.py [REQUIRES NON-AGG WX RENDERER, WHICH IS NOT YET IMPLEMENTED]
-print_stdout.py [BROKEN?]
-psd_demo.py O
-pstest.py O
-pylab_with_gtk.py O
-pythonic_matplotlib.py O
-quadmesh_demo.py O [MASKED VALUES ARE SHOWN DUE TO A BUG IN TRUNK]
-quiver_demo.py O
-rc_traits.py [N/A]
-scatter_custom_symbol.py O
-scatter_demo2.py O
-scatter_demo.py O
-scatter_masked.py O
-scatter_profile.py O
-scatter_star_poly.py O [SOME BUGS IN TRUNK -- FIXED ON BRANCH]
-set_and_get.py O
-shared_axis_across_figures.py O
-shared_axis_demo.py O
-simple3d_oo.py [PUNTING ON 3D FOR NOW]
-simple3d.py [PUNTING ON 3D FOR NOW]
-simple_plot_fps.py O
-simple_plot.py O
-specgram_demo.py O
-spy_demos.py O
-stem_plot.py O
-step_demo.py O
-stock_demo.py O
-strip_chart_demo.py [REQUIRES GTK]
-subplot_demo.py O
-subplots_adjust.py O
-subplot_toolbar.py O
-system_monitor.py O
-table_demo.py O
-tex_demo.py O
-text_handles.py O
-text_rotation.py O
-text_themes.py O
-tex_unicode_demo.py O
-toggle_images.py [???]
-to_numeric.py [REQUIRES PIL]
-transoffset.py
-two_scales.py O
-unicode_demo.py O
-vertical_ticklabels.py O
-vline_demo.py O
-webapp_demo.py
-wxcursor_demo.py O
-xcorr_demo.py O
-zoom_window.py O
-zorder_demo.py O
-
-
-units directory -----
-
-annotate_with_units.py O
-artist_tests.py O
-bar_demo2.py O
-bar_unit_demo.py [BROKEN IN TRUNK]
-basic_units.py [N/A]
-date_converter.py O
-date_support.py [N/A]
-ellipse_with_units.py [BROKEN IN TRUNK]
-evans_test2.py O
-evans_test.py O
-__init__.py [N/A]
-radian_demo.py O
-units_sample.py O
-units_scatter.py
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <md...@us...> - 2008-05-27 16:25:32
|
Revision: 5278
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5278&view=rev
Author: mdboom
Date: 2008-05-27 09:25:28 -0700 (Tue, 27 May 2008)
Log Message:
-----------
Fix log/linear toggle.
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/axes.py
trunk/matplotlib/lib/matplotlib/backend_bases.py
Modified: trunk/matplotlib/lib/matplotlib/axes.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/axes.py 2008-05-27 16:05:57 UTC (rev 5277)
+++ trunk/matplotlib/lib/matplotlib/axes.py 2008-05-27 16:25:28 UTC (rev 5278)
@@ -712,6 +712,9 @@
self.transScale.set(
mtransforms.blended_transform_factory(
self.xaxis.get_transform(), self.yaxis.get_transform()))
+ if hasattr(self, "lines"):
+ for line in self.lines:
+ line._transformed_path.invalidate()
def get_position(self, original=False):
'Return the a copy of the axes rectangle as a Bbox'
Modified: trunk/matplotlib/lib/matplotlib/backend_bases.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/backend_bases.py 2008-05-27 16:05:57 UTC (rev 5277)
+++ trunk/matplotlib/lib/matplotlib/backend_bases.py 2008-05-27 16:25:28 UTC (rev 5278)
@@ -1201,16 +1201,14 @@
event.inaxes.grid()
self.canvas.draw()
elif event.key == 'l':
- warnings.warn('log scale toggling under construction')
- if 0:
- ax = event.inaxes
- scale = ax.get_yscale()
- if scale=='log':
- ax.set_yscale('linear')
- ax.figure.canvas.draw()
- elif scale=='linear':
- ax.set_yscale('log')
- ax.figure.canvas.draw()
+ ax = event.inaxes
+ scale = ax.get_yscale()
+ if scale=='log':
+ ax.set_yscale('linear')
+ ax.figure.canvas.draw()
+ elif scale=='linear':
+ ax.set_yscale('log')
+ ax.figure.canvas.draw()
elif event.key is not None and (event.key.isdigit() and event.key!='0') or event.key=='a':
# 'a' enables all axes
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <md...@us...> - 2008-05-27 16:06:00
|
Revision: 5277
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5277&view=rev
Author: mdboom
Date: 2008-05-27 09:05:57 -0700 (Tue, 27 May 2008)
Log Message:
-----------
Try to fix TkAgg build on Ubuntu 8.04
Modified Paths:
--------------
trunk/matplotlib/CHANGELOG
trunk/matplotlib/setupext.py
Modified: trunk/matplotlib/CHANGELOG
===================================================================
--- trunk/matplotlib/CHANGELOG 2008-05-26 17:12:07 UTC (rev 5276)
+++ trunk/matplotlib/CHANGELOG 2008-05-27 16:05:57 UTC (rev 5277)
@@ -1,3 +1,6 @@
+2008-05-27 Fix TkAgg build on Ubuntu 8.04 (and hopefully a more
+ general solution for other platforms, too.)
+
2008-05-24 Added PIL support for loading images to imread (if PIL is
available) - JDH
Modified: trunk/matplotlib/setupext.py
===================================================================
--- trunk/matplotlib/setupext.py 2008-05-26 17:12:07 UTC (rev 5276)
+++ trunk/matplotlib/setupext.py 2008-05-27 16:05:57 UTC (rev 5277)
@@ -69,6 +69,7 @@
from distutils.core import Extension
import glob
import ConfigParser
+import cStringIO
major, minor1, minor2, s, tmp = sys.version_info
if major<2 or (major==2 and minor1<3):
@@ -888,6 +889,105 @@
TCL_TK_CACHE = tcl_lib_dir, tk_lib_dir, str(Tkinter.TkVersion)[:3]
return TCL_TK_CACHE
+def parse_tcl_config(tcl_lib_dir, tk_lib_dir):
+ # This is where they live on Ubuntu Hardy (at least)
+ tcl_config = os.path.join(tcl_lib_dir, "tclConfig.sh")
+ tk_config = os.path.join(tk_lib_dir, "tkConfig.sh")
+ if not (os.path.exists(tcl_config) and os.path.exists(tk_config)):
+ # This is where they live on RHEL4 (at least)
+ tcl_config = "/usr/lib/tclConfig.sh"
+ tk_config = "/usr/lib/tkConfig.sh"
+ if not (os.path.exists(tcl_config) and os.path.exists(tk_config)):
+ return None
+
+ # These files are shell scripts that set a bunch of
+ # environment variables. To actually get at the
+ # values, we use ConfigParser, which supports almost
+ # the same format, but requires at least one section.
+ # So, we push a "[default]" section to a copy of the
+ # file in a StringIO object.
+ try:
+ tcl_vars_str = cStringIO.StringIO(
+ "[default]\n" + open(tcl_config, "r").read())
+ tk_vars_str = cStringIO.StringIO(
+ "[default]\n" + open(tk_config, "r").read())
+ except IOError:
+ # if we can't read the file, that's ok, we'll try
+ # to guess instead
+ return None
+
+ tcl_vars_str.seek(0)
+ tcl_vars = ConfigParser.RawConfigParser()
+ tk_vars_str.seek(0)
+ tk_vars = ConfigParser.RawConfigParser()
+ try:
+ tcl_vars.readfp(tcl_vars_str)
+ tk_vars.readfp(tk_vars_str)
+ except ConfigParser.ParsingError:
+ # if we can't read the file, that's ok, we'll try
+ # to guess instead
+ return None
+
+ try:
+ tcl_lib = tcl_vars.get("default", "TCL_LIB_SPEC")[1:-1].split()[0][2:]
+ tcl_inc = tcl_vars.get("default", "TCL_INCLUDE_SPEC")[3:-1]
+ tk_lib = tk_vars.get("default", "TK_LIB_SPEC")[1:-1].split()[0][2:]
+ if tk_vars.has_option("default", "TK_INCLUDE_SPEC"):
+ # On Ubuntu 8.04
+ tk_inc = tk_vars.get("default", "TK_INCLUDE_SPEC")[3:-1]
+ else:
+ # On RHEL4
+ tk_inc = tcl_inc
+ except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
+ return None
+
+ if not os.path.exists(os.path.join(tk_inc, 'tk.h')):
+ return None
+
+ return tcl_lib, tcl_inc, tk_lib, tk_inc
+
+def guess_tcl_config(tcl_lib_dir, tk_lib_dir, tk_ver):
+ if not (os.path.exists(tcl_lib_dir) and os.path.exists(tk_lib_dir)):
+ return None
+
+ tcl_lib = os.path.normpath(os.path.join(tcl_lib_dir, '../'))
+ tk_lib = os.path.normpath(os.path.join(tk_lib_dir, '../'))
+
+ tcl_inc = os.path.normpath(os.path.join(tcl_lib_dir,
+ '../../include/tcl' + tk_ver))
+ if not os.path.exists(tcl_inc):
+ tcl_inc = os.path.normpath(os.path.join(tcl_lib_dir,
+ '../../include'))
+
+ tk_inc = os.path.normpath(os.path.join(tk_lib_dir,
+ '../../include/tk' + tk_ver))
+ if not os.path.exists(tk_inc):
+ tk_inc = os.path.normpath(os.path.join(tk_lib_dir,
+ '../../include'))
+
+ if not os.path.exists(os.path.join(tk_inc, 'tk.h')):
+ tk_inc = tcl_inc
+
+ if not os.path.exists(tcl_inc):
+ # this is a hack for suse linux, which is broken
+ if (sys.platform.startswith('linux') and
+ os.path.exists('/usr/include/tcl.h') and
+ os.path.exists('/usr/include/tk.h')):
+ tcl_inc = '/usr/include'
+ tk_inc = '/usr/include'
+
+ if not os.path.exists(os.path.join(tk_inc, 'tk.h')):
+ return None
+
+ return tcl_lib, tcl_inc, tk_lib, tk_inc
+
+def hardcoded_tcl_config():
+ tcl_inc = "/usr/local/include"
+ tk_inc = "/usr/local/include"
+ tcl_lib = "/usr/local/lib"
+ tk_lib = "/usr/local/lib"
+ return tcl_lib, tcl_inc, tk_lib, tk_inc
+
def add_tk_flags(module):
'Add the module flags to build extensions which use tk'
message = None
@@ -951,46 +1051,39 @@
# you're still here? ok we'll try it this way...
else:
+ success = False
+ # There are 3 methods to try, in decreasing order of "smartness"
+ #
+ # 1. Parse the tclConfig.sh and tkConfig.sh files that have
+ # all the information we need
+ #
+ # 2. Guess the include and lib dirs based on the location of
+ # Tkinter's 'tcl_library' and 'tk_library' variables.
+ #
+ # 3. Use some hardcoded locations that seem to work on a lot
+ # of distros.
+
# Query Tcl/Tk system for library paths and version string
- tcl_lib_dir, tk_lib_dir, tk_ver = query_tcltk() # todo: try/except
-
- # Process base directories to obtain include + lib dirs
- if tcl_lib_dir != '' and tk_lib_dir != '':
- tcl_lib = os.path.normpath(os.path.join(tcl_lib_dir, '../'))
- tk_lib = os.path.normpath(os.path.join(tk_lib_dir, '../'))
- tcl_inc = os.path.normpath(os.path.join(tcl_lib_dir,
- '../../include/tcl' + tk_ver))
- if not os.path.exists(tcl_inc):
- tcl_inc = os.path.normpath(os.path.join(tcl_lib_dir,
- '../../include'))
- tk_inc = os.path.normpath(os.path.join(tk_lib_dir,
- '../../include/tk' + tk_ver))
- if not os.path.exists(tk_inc):
- tk_inc = os.path.normpath(os.path.join(tk_lib_dir,
- '../../include'))
-
- if ((not os.path.exists(os.path.join(tk_inc,'tk.h'))) and
- os.path.exists(os.path.join(tcl_inc,'tk.h'))):
- tk_inc = tcl_inc
-
- if not os.path.exists(tcl_inc):
- # this is a hack for suse linux, which is broken
- if (sys.platform.startswith('linux') and
- os.path.exists('/usr/include/tcl.h') and
- os.path.exists('/usr/include/tk.h')):
- tcl_inc = '/usr/include'
- tk_inc = '/usr/include'
+ try:
+ tcl_lib_dir, tk_lib_dir, tk_ver = query_tcltk()
+ except:
+ result = hardcoded_tcl_config()
else:
- message = """\
+ result = parse_tcl_config(tcl_lib_dir, tk_lib_dir)
+ if result is None:
+ message = """\
+Guessing the library and include directories for Tcl and Tk because the
+tclConfig.sh and tkConfig.sh could not be found and/or parsed."""
+ result = guess_tcl_config(tcl_lib_dir, tk_lib_dir, tk_ver)
+ if result is None:
+ message = """\
Using default library and include directories for Tcl and Tk because a
Tk window failed to open. You may need to define DISPLAY for Tk to work
so that setup can determine where your libraries are located."""
- tcl_inc = "/usr/local/include"
- tk_inc = "/usr/local/include"
- tcl_lib = "/usr/local/lib"
- tk_lib = "/usr/local/lib"
- tk_ver = ""
+ result = hardcoded_tcl_config()
+
# Add final versions of directories and libraries to module lists
+ tcl_lib, tcl_inc, tk_lib, tk_inc = result
module.include_dirs.extend([tcl_inc, tk_inc])
module.library_dirs.extend([tcl_lib, tk_lib])
module.libraries.extend(['tk' + tk_ver, 'tcl' + tk_ver])
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jd...@us...> - 2008-05-26 17:12:17
|
Revision: 5276
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5276&view=rev
Author: jdh2358
Date: 2008-05-26 10:12:07 -0700 (Mon, 26 May 2008)
Log Message:
-----------
Merged revisions 5275 via svnmerge from
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v0_91_maint
........
r5275 | jdh2358 | 2008-05-26 12:09:44 -0500 (Mon, 26 May 2008) | 1 line
fixed an empty vertex list bug
........
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/lines.py
Property Changed:
----------------
trunk/matplotlib/
Property changes on: trunk/matplotlib
___________________________________________________________________
Name: svnmerge-integrated
- /branches/v0_91_maint:1-5273
+ /branches/v0_91_maint:1-5275
Modified: trunk/matplotlib/lib/matplotlib/lines.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/lines.py 2008-05-26 17:09:44 UTC (rev 5275)
+++ trunk/matplotlib/lib/matplotlib/lines.py 2008-05-26 17:12:07 UTC (rev 5276)
@@ -1254,7 +1254,6 @@
ind = list(self.ind)
ind.sort()
-
xdata, ydata = self.line.get_data()
self.process_selected(ind, xdata[ind], ydata[ind])
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jd...@us...> - 2008-05-26 17:09:46
|
Revision: 5275
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5275&view=rev
Author: jdh2358
Date: 2008-05-26 10:09:44 -0700 (Mon, 26 May 2008)
Log Message:
-----------
fixed an empty vertex list bug
Modified Paths:
--------------
branches/v0_91_maint/lib/matplotlib/lines.py
Modified: branches/v0_91_maint/lib/matplotlib/lines.py
===================================================================
--- branches/v0_91_maint/lib/matplotlib/lines.py 2008-05-26 17:08:43 UTC (rev 5274)
+++ branches/v0_91_maint/lib/matplotlib/lines.py 2008-05-26 17:09:44 UTC (rev 5275)
@@ -1537,7 +1537,6 @@
ind = list(self.ind)
ind.sort()
- ind = npy.array(ind)
xdata, ydata = self.line.get_data()
self.process_selected(ind, xdata[ind], ydata[ind])
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jd...@us...> - 2008-05-26 17:09:02
|
Revision: 5274
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5274&view=rev
Author: jdh2358
Date: 2008-05-26 10:08:43 -0700 (Mon, 26 May 2008)
Log Message:
-----------
Merged revisions 5271-5272 via svnmerge from
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v0_91_maint
........
r5271 | jdh2358 | 2008-05-26 12:02:46 -0500 (Mon, 26 May 2008) | 1 line
added a line vertex selector widget
........
r5272 | jdh2358 | 2008-05-26 12:04:38 -0500 (Mon, 26 May 2008) | 1 line
added a line vertex selector widget
........
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/lines.py
Property Changed:
----------------
trunk/matplotlib/
Property changes on: trunk/matplotlib
___________________________________________________________________
Name: svnmerge-integrated
- /branches/v0_91_maint:1-5260
+ /branches/v0_91_maint:1-5273
Modified: trunk/matplotlib/lib/matplotlib/lines.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/lines.py 2008-05-26 17:05:50 UTC (rev 5273)
+++ trunk/matplotlib/lib/matplotlib/lines.py 2008-05-26 17:08:43 UTC (rev 5274)
@@ -529,7 +529,11 @@
def get_markersize(self): return self._markersize
+ def get_data(self, orig=True):
+ 'return the xdata, ydata; if orig is True, return the original data'
+ return self.get_xdata(orig=orig), self.get_ydata(orig=orig)
+
def get_xdata(self, orig=True):
"""
return the xdata; if orig is true return the original data,
@@ -1177,7 +1181,83 @@
'return True if line is dashstyle'
return self._linestyle in ('--', '-.', ':')
+class VertexSelector:
+ """
+ manage the callbacks to maintain a list of selected vertices for
+ matplotlib.lines.Line2D. Derived classes should override
+ process_selected to do something with the picks
+ Here is an example which highlights the selected verts with red
+ circles::
+
+ import numpy as np
+ import matplotlib.pyplot as plt
+ import matplotlib.lines as lines
+
+ class HighlightSelected(lines.VertexSelector):
+ def __init__(self, line, fmt='ro', **kwargs):
+ lines.VertexSelector.__init__(self, line)
+ self.markers, = self.axes.plot([], [], fmt, **kwargs)
+
+ def process_selected(self, ind, xs, ys):
+ self.markers.set_data(xs, ys)
+ self.canvas.draw()
+
+ fig = plt.figure()
+ ax = fig.add_subplot(111)
+ x, y = np.random.rand(2, 30)
+ line, = ax.plot(x, y, 'bs-', picker=5)
+
+ selector = HighlightSelected(line)
+ plt.show()
+
+ """
+ def __init__(self, line):
+ """
+ Initialize the class with a matplotlib.lines.Line2D instance.
+ The line should already be added to some matplotlib.axes.Axes
+ instance and should have the picker property set.
+ """
+ if not hasattr(line, 'axes'):
+ raise RuntimeError('You must first add the line to the Axes')
+
+ if line.get_picker() is None:
+ raise RuntimeError('You must first set the picker property of the line')
+
+ self.axes = line.axes
+ self.line = line
+ self.canvas = self.axes.figure.canvas
+ self.cid = self.canvas.mpl_connect('pick_event', self.onpick)
+
+ self.ind = set()
+
+
+ def process_selected(self, ind, xs, ys):
+ """
+ Default do nothing implementation of the process_selected method.
+
+ ind are the indices of the selected vertices. xs and ys are
+ the coordinates of the selected vertices.
+ """
+ pass
+
+ def onpick(self, event):
+ 'when the line is picked, update the set of selected indicies'
+ if event.artist is not self.line: return
+
+ for i in event.ind:
+ if i in self.ind:
+ self.ind.remove(i)
+ else:
+ self.ind.add(i)
+
+
+ ind = list(self.ind)
+ ind.sort()
+
+ xdata, ydata = self.line.get_data()
+ self.process_selected(ind, xdata[ind], ydata[ind])
+
lineStyles = Line2D._lineStyles
lineMarkers = Line2D._markers
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jd...@us...> - 2008-05-26 17:05:54
|
Revision: 5273
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5273&view=rev
Author: jdh2358
Date: 2008-05-26 10:05:50 -0700 (Mon, 26 May 2008)
Log Message:
-----------
changes to doc readme
Modified Paths:
--------------
trunk/matplotlib/doc/README.txt
trunk/matplotlib/examples/api/logo2.py
trunk/matplotlib/lib/matplotlib/lines.py
Modified: trunk/matplotlib/doc/README.txt
===================================================================
--- trunk/matplotlib/doc/README.txt 2008-05-26 17:04:38 UTC (rev 5272)
+++ trunk/matplotlib/doc/README.txt 2008-05-26 17:05:50 UTC (rev 5273)
@@ -3,9 +3,8 @@
This is the top level build directory for the matplotlib
documentation. All of the documentation is written using sphinx, a
-python documentation system built on top of ReST.
+python documentation system built on top of ReST. This directory contains
-If you are looking for plain text documentation, you can read the following
* users - the user documentation, eg plotting tutorials, configuration
tips, etc.
Modified: trunk/matplotlib/examples/api/logo2.py
===================================================================
--- trunk/matplotlib/examples/api/logo2.py 2008-05-26 17:04:38 UTC (rev 5272)
+++ trunk/matplotlib/examples/api/logo2.py 2008-05-26 17:05:50 UTC (rev 5273)
@@ -36,7 +36,7 @@
x = mu + sigma*np.random.randn(10000)
# the histogram of the data
-n, bins, patches = axhist.hist(x, 50, normed=1,
+n, bins, patches = axhist.hist(x, 20, normed=1,
facecolor='green', edgecolor='green', alpha=0.75)
Modified: trunk/matplotlib/lib/matplotlib/lines.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/lines.py 2008-05-26 17:04:38 UTC (rev 5272)
+++ trunk/matplotlib/lib/matplotlib/lines.py 2008-05-26 17:05:50 UTC (rev 5273)
@@ -529,6 +529,7 @@
def get_markersize(self): return self._markersize
+
def get_xdata(self, orig=True):
"""
return the xdata; if orig is true return the original data,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jd...@us...> - 2008-05-26 17:04:52
|
Revision: 5272
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5272&view=rev
Author: jdh2358
Date: 2008-05-26 10:04:38 -0700 (Mon, 26 May 2008)
Log Message:
-----------
added a line vertex selector widget
Modified Paths:
--------------
branches/v0_91_maint/lib/matplotlib/lines.py
Modified: branches/v0_91_maint/lib/matplotlib/lines.py
===================================================================
--- branches/v0_91_maint/lib/matplotlib/lines.py 2008-05-26 17:02:46 UTC (rev 5271)
+++ branches/v0_91_maint/lib/matplotlib/lines.py 2008-05-26 17:04:38 UTC (rev 5272)
@@ -1467,8 +1467,33 @@
class VertexSelector:
"""
manage the callbacks to maintain a list of selected vertices for
- matplotlib.lines.Lin2D. Derived classes should override
+ matplotlib.lines.Line2D. Derived classes should override
process_selected to do something with the picks
+
+ Here is an example which highlights the selected verts with red
+ circles::
+
+ import numpy as np
+ import matplotlib.pyplot as plt
+ import matplotlib.lines as lines
+
+ class HighlightSelected(lines.VertexSelector):
+ def __init__(self, line, fmt='ro', **kwargs):
+ lines.VertexSelector.__init__(self, line)
+ self.markers, = self.axes.plot([], [], fmt, **kwargs)
+
+ def process_selected(self, ind, xs, ys):
+ self.markers.set_data(xs, ys)
+ self.canvas.draw()
+
+ fig = plt.figure()
+ ax = fig.add_subplot(111)
+ x, y = np.random.rand(2, 30)
+ line, = ax.plot(x, y, 'bs-', picker=5)
+
+ selector = HighlightSelected(line)
+ plt.show()
+
"""
def __init__(self, line):
"""
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jd...@us...> - 2008-05-26 17:03:01
|
Revision: 5271
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5271&view=rev
Author: jdh2358
Date: 2008-05-26 10:02:46 -0700 (Mon, 26 May 2008)
Log Message:
-----------
added a line vertex selector widget
Modified Paths:
--------------
branches/v0_91_maint/CODING_GUIDE
branches/v0_91_maint/lib/matplotlib/lines.py
Modified: branches/v0_91_maint/CODING_GUIDE
===================================================================
--- branches/v0_91_maint/CODING_GUIDE 2008-05-25 21:31:43 UTC (rev 5270)
+++ branches/v0_91_maint/CODING_GUIDE 2008-05-26 17:02:46 UTC (rev 5271)
@@ -9,12 +9,6 @@
svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk matplotlib --username=youruser --password=yourpass
-# checking out the main src
-svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib matplotlib --username=youruser --password=yourpass
-
-# branch checkouts, eg the transforms branch
-svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/transforms transbranch
-
== Committing changes ==
When committing changes to matplotlib, there are a few things to bear
Modified: branches/v0_91_maint/lib/matplotlib/lines.py
===================================================================
--- branches/v0_91_maint/lib/matplotlib/lines.py 2008-05-25 21:31:43 UTC (rev 5270)
+++ branches/v0_91_maint/lib/matplotlib/lines.py 2008-05-26 17:02:46 UTC (rev 5271)
@@ -569,6 +569,10 @@
def get_markersize(self): return self._markersize
+ def get_data(self, orig=True):
+ 'return the xdata, ydata; if orig is True, return the original data'
+ return self.get_xdata(orig=orig), self.get_ydata(orig=orig)
+
def get_xdata(self, orig=True):
"""
return the xdata; if orig is true return the original data,
@@ -1460,7 +1464,58 @@
'return True if line is dashstyle'
return self._linestyle in ('--', '-.', ':')
+class VertexSelector:
+ """
+ manage the callbacks to maintain a list of selected vertices for
+ matplotlib.lines.Lin2D. Derived classes should override
+ process_selected to do something with the picks
+ """
+ def __init__(self, line):
+ """
+ Initialize the class with a matplotlib.lines.Line2D instance.
+ The line should already be added to some matplotlib.axes.Axes
+ instance and should have the picker property set.
+ """
+ if not hasattr(line, 'axes'):
+ raise RuntimeError('You must first add the line to the Axes')
+ if line.get_picker() is None:
+ raise RuntimeError('You must first set the picker property of the line')
+
+ self.axes = line.axes
+ self.line = line
+ self.canvas = self.axes.figure.canvas
+ self.cid = self.canvas.mpl_connect('pick_event', self.onpick)
+
+ self.ind = set()
+
+
+ def process_selected(self, ind, xs, ys):
+ """
+ Default do nothing implementation of the process_selected method.
+
+ ind are the indices of the selected vertices. xs and ys are
+ the coordinates of the selected vertices.
+ """
+ pass
+
+ def onpick(self, event):
+ 'when the line is picked, update the set of selected indicies'
+ if event.artist is not self.line: return
+
+ for i in event.ind:
+ if i in self.ind:
+ self.ind.remove(i)
+ else:
+ self.ind.add(i)
+
+
+ ind = list(self.ind)
+ ind.sort()
+ ind = npy.array(ind)
+ xdata, ydata = self.line.get_data()
+ self.process_selected(ind, xdata[ind], ydata[ind])
+
lineStyles = Line2D._lineStyles
lineMarkers = Line2D._markers
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jd...@us...> - 2008-05-25 21:31:44
|
Revision: 5270
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5270&view=rev
Author: jdh2358
Date: 2008-05-25 14:31:43 -0700 (Sun, 25 May 2008)
Log Message:
-----------
added readme to describe doc organization
Modified Paths:
--------------
trunk/matplotlib/doc/conf.py
Added Paths:
-----------
trunk/matplotlib/doc/README.txt
Added: trunk/matplotlib/doc/README.txt
===================================================================
--- trunk/matplotlib/doc/README.txt (rev 0)
+++ trunk/matplotlib/doc/README.txt 2008-05-25 21:31:43 UTC (rev 5270)
@@ -0,0 +1,35 @@
+maptlotlib documentation
+========================
+
+This is the top level build directory for the matplotlib
+documentation. All of the documentation is written using sphinx, a
+python documentation system built on top of ReST.
+
+If you are looking for plain text documentation, you can read the following
+
+* users - the user documentation, eg plotting tutorials, configuration
+ tips, etc.
+
+* devel - documentation for matplotlib developers
+
+* faq - frequently asked questions
+
+* api - placeholders to automatically generate the api documentation
+
+* make.py - the build script to build the html or PDF docs
+
+* index.rst - the top level include document for matplotlib docs
+
+* conf.py - the sphinx configuration
+
+* _static - used by the sphinx build system
+
+* _templates - used by the sphinx build system
+
+* sphinxext - Sphinx extensions for the mpl docs
+
+* mpl_data - a symbolic link to the matplotlib data for reference by
+ sphinx documentation
+
+* mpl_examples - a link to the matplotlib examples in case any
+ documentation wants to literal include them
Modified: trunk/matplotlib/doc/conf.py
===================================================================
--- trunk/matplotlib/doc/conf.py 2008-05-25 21:24:24 UTC (rev 5269)
+++ trunk/matplotlib/doc/conf.py 2008-05-25 21:31:43 UTC (rev 5270)
@@ -141,7 +141,7 @@
# (source start file, target name, title, author, document class [howto/manual]).
latex_documents = [
- ('index', 'Matplotlib.tex', 'Matplotlib', 'John Hunter, Darren Dale, Michael Droettboom', 'manual'),
+ ('index', 'Matplotlib.tex', 'Matplotlib', 'Darren Dale, Michael Droettboom, Eric Firing, John Hunter', 'manual'),
]
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jd...@us...> - 2008-05-25 21:24:27
|
Revision: 5269
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5269&view=rev
Author: jdh2358
Date: 2008-05-25 14:24:24 -0700 (Sun, 25 May 2008)
Log Message:
-----------
added faq placeholder
Modified Paths:
--------------
trunk/matplotlib/doc/index.rst
trunk/matplotlib/doc/make.py
Added Paths:
-----------
trunk/matplotlib/doc/faq/
trunk/matplotlib/doc/faq/index.rst
trunk/matplotlib/doc/faq/installing_faq.rst
trunk/matplotlib/doc/faq/plotting_faq.rst
Added: trunk/matplotlib/doc/faq/index.rst
===================================================================
--- trunk/matplotlib/doc/faq/index.rst (rev 0)
+++ trunk/matplotlib/doc/faq/index.rst 2008-05-25 21:24:24 UTC (rev 5269)
@@ -0,0 +1,16 @@
+.. _api-index:
+
+####################
+ The Matplotlib FAQ
+####################
+
+:Release: |version|
+:Date: |today|
+
+Frequently asked questions about matplotlib
+
+.. toctree::
+
+ installing_faq.rst
+ plotting_faq.rst
+
Added: trunk/matplotlib/doc/faq/installing_faq.rst
===================================================================
--- trunk/matplotlib/doc/faq/installing_faq.rst (rev 0)
+++ trunk/matplotlib/doc/faq/installing_faq.rst 2008-05-25 21:24:24 UTC (rev 5269)
@@ -0,0 +1,7 @@
+****************
+Installation FAQ
+****************
+
+
+
+
Added: trunk/matplotlib/doc/faq/plotting_faq.rst
===================================================================
--- trunk/matplotlib/doc/faq/plotting_faq.rst (rev 0)
+++ trunk/matplotlib/doc/faq/plotting_faq.rst 2008-05-25 21:24:24 UTC (rev 5269)
@@ -0,0 +1,5 @@
+************
+Plotting FAQ
+************
+
+
Modified: trunk/matplotlib/doc/index.rst
===================================================================
--- trunk/matplotlib/doc/index.rst 2008-05-25 21:14:01 UTC (rev 5268)
+++ trunk/matplotlib/doc/index.rst 2008-05-25 21:24:24 UTC (rev 5269)
@@ -11,6 +11,7 @@
:maxdepth: 2
users/index.rst
+ faq/index.rst
devel/index.rst
api/index.rst
Modified: trunk/matplotlib/doc/make.py
===================================================================
--- trunk/matplotlib/doc/make.py 2008-05-25 21:14:01 UTC (rev 5268)
+++ trunk/matplotlib/doc/make.py 2008-05-25 21:24:24 UTC (rev 5269)
@@ -6,7 +6,7 @@
import sys
def check_build():
- build_dirs = ['build', 'build/doctrees', 'build/html', 'build/latex',
+ build_dirs = ['build', 'build/doctrees', 'build/html', 'build/latex',
'_static', '_templates']
for d in build_dirs:
try:
@@ -19,23 +19,26 @@
def html():
check_build()
+ figs()
os.system('sphinx-build -b html -d build/doctrees . build/html')
def latex():
+ check_build()
+ figs()
if sys.platform != 'win32':
# LaTeX format.
os.system('sphinx-build -b latex -d build/doctrees . build/latex')
-
+
# Produce pdf.
os.chdir('build/latex')
-
+
# Copying the makefile produced by sphinx...
os.system('pdflatex Matplotlib.tex')
os.system('pdflatex Matplotlib.tex')
os.system('makeindex -s python.ist Matplotlib.idx')
os.system('makeindex -s python.ist modMatplotlib.idx')
os.system('pdflatex Matplotlib.tex')
-
+
os.chdir('../..')
else:
print 'latex build has not been tested on windows'
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jd...@us...> - 2008-05-25 21:14:08
|
Revision: 5268
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5268&view=rev
Author: jdh2358
Date: 2008-05-25 14:14:01 -0700 (Sun, 25 May 2008)
Log Message:
-----------
rewrote the readme to describe the dir layout
Added Paths:
-----------
trunk/matplotlib/README.txt
Removed Paths:
-------------
trunk/matplotlib/README
trunk/matplotlib/coding_guide.rst
Deleted: trunk/matplotlib/README
===================================================================
--- trunk/matplotlib/README 2008-05-25 20:59:14 UTC (rev 5267)
+++ trunk/matplotlib/README 2008-05-25 21:14:01 UTC (rev 5268)
@@ -1,70 +0,0 @@
-INTRODUCTION:
-
-
- matplotlib is a pure python 2D plotting library with a Matlab(TM)
- syntax which produces publication quality figures using in a
- variety of hardcopy formats (PNG, JPG, TIFF, PS) and interactive
- GUI environments (WX, GTK) across platforms. matplotlib can be used
- in python scripts, interactively from the python shell (ala matlab
- or mathematica), in web application servers generating dynamic
- charts, or embedded in GTK or WX applications; see backends.
-
- matplotlib trys to make easy things easy and hard things
- possible. You can generate plots, histograms, power spectra, bar
- charts, errorcharts, scatterplots, etc, with just a few lines of
- code. For example, to make a histogram of data in x, you simply need
- to type
-
- >>> hist(x, 100) # use 100 bins
-
-
- For the power user, you have full control of line styles, font
- properties, axes properties, etc, via an object oriented interface
- or via a handle graphics interface familiar to matlab users. A
- summary of the goals of matplotlib and the progress so far can be
- found at http://matplotlib.sf.net/goals.html.
-
-REQUIREMENTS:
-
- python 2.3+, and numpy (http://numpy.scipy.org/). Other
- requirements are backend dependent. See
- http://matplotlib.sourceforge.net/backends.html. If you are using
- python2.3, you'll also need to install setuptools; just download
- http://peak.telecommunity.com/dist/ez_setup.py and run it.
-
-INSTALL
-
- The latest installation instructions can be found at
-
- http://matplotlib.sourceforge.net/installing.html
-
- and for backend specific install information see
-
- http://matplotlib.sourceforge.net/backends.html
-
- If you want to use matplotlib interactively from the prompt, see
- http://matplotlib.sourceforge.net/interactive.html
-
-
-EXAMPLES
-
- See the examples in the examples dir. To see examples scripts with
- the outputs they produce, see
- http://matplotlib.sourceforge.net/screenshots.html
-
-AUTHOR
-
- John D. Hunter <jd...@gm...>
- Copyright (c) 2002-2007 John D. Hunter; All Rights Reserved.
-
- Jeremy O'Donoghue wrote the wx backend
-
- See http://matplotlib.sourceforge.net/credits.html for additionaly
- contributors
-
-LICENSE
-
- Based on that of python 2.2. See the LICENSE file that ships with
- the matplotlib source code or
- http://matplotlib.sourceforge.net/license.html
-
Copied: trunk/matplotlib/README.txt (from rev 5265, trunk/matplotlib/README)
===================================================================
--- trunk/matplotlib/README.txt (rev 0)
+++ trunk/matplotlib/README.txt 2008-05-25 21:14:01 UTC (rev 5268)
@@ -0,0 +1,61 @@
+Overview of the matplotlib src tree
+===================================
+
+This is the source directory for matplotlib, which contains the
+following files and directories.
+
+* doc - the matplotlib documentation. See doc/users for the user's
+ documentation and doc/devel for the developers documentation
+
+* examples - a bunch of examples using matplotib. See
+ examples/README.txt for information
+
+* setup.cfg.template - used to configure the matplotlib build process.
+ Copy this file to setup.cfg if you want to override the default
+ build behavior
+
+* matplotlibrc.template - a template file used to generate the
+ matplotlibrc config file at build time. The matplotlibrc file will
+ be installed in matplotlib/mpl-data/matplotlibrc
+
+* lib - the python src code. matplotlib ships several third party
+ packages here. The subdirectory lib/matplotlib contains the python
+ src code for matplotlib
+
+* src - the matplotlib extension code, mostly C++
+
+* ttconv - some truetype font utilities
+
+* license - all the licenses for code included with matplotlib.
+ matplotlib uses only BSD compatible code
+
+* unit - some unit tests
+
+* CHANGELOG - all the significant changes to matplotlib, organized by
+ release. The top of this file will show you the most recent changes
+
+* API_CHANGES - any change that alters the API is listed here. The
+ entries are organized by release, with most recent entries first
+
+* MIGRATION.txt - instructions on moving from the 0.91 code to the
+ 0.98 trunk.
+
+* SEGFAULTS - some tips for how to diagnose and debug segfaults
+
+* setup.py - the matplotlib build script
+
+* setupext.py - some helper code for setup.py to build the matplotlib
+ extensions
+
+* boilerplate.py - some code to automatically generate the pyplot
+ wrappers
+
+* DEVNOTES - deprecated developer notes. TODO: update and move to the
+ doc/devel framework
+
+* FILETYPES - This is a table of the output formats supported by each
+ backend. TODO: move to doc/users
+
+* INTERACTIVE - instructions on using matplotlib interactively, eg
+ from the python shell. TODO: update and move to doc/users.
+
Deleted: trunk/matplotlib/coding_guide.rst
===================================================================
--- trunk/matplotlib/coding_guide.rst 2008-05-25 20:59:14 UTC (rev 5267)
+++ trunk/matplotlib/coding_guide.rst 2008-05-25 21:14:01 UTC (rev 5268)
@@ -1 +0,0 @@
-link doc/devel/coding_guide.rst
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jd...@us...> - 2008-05-25 20:59:28
|
Revision: 5267
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5267&view=rev
Author: jdh2358
Date: 2008-05-25 13:59:14 -0700 (Sun, 25 May 2008)
Log Message:
-----------
made top level coding guide a link
Added Paths:
-----------
trunk/matplotlib/coding_guide.rst
Added: trunk/matplotlib/coding_guide.rst
===================================================================
--- trunk/matplotlib/coding_guide.rst (rev 0)
+++ trunk/matplotlib/coding_guide.rst 2008-05-25 20:59:14 UTC (rev 5267)
@@ -0,0 +1 @@
+link doc/devel/coding_guide.rst
\ No newline at end of file
Property changes on: trunk/matplotlib/coding_guide.rst
___________________________________________________________________
Name: svn:special
+ *
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jd...@us...> - 2008-05-25 20:58:37
|
Revision: 5266
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5266&view=rev
Author: jdh2358
Date: 2008-05-25 13:58:35 -0700 (Sun, 25 May 2008)
Log Message:
-----------
renamed docs dir to doc
Added Paths:
-----------
trunk/matplotlib/doc/
Removed Paths:
-------------
trunk/matplotlib/docs/
Copied: trunk/matplotlib/doc (from rev 5265, trunk/matplotlib/docs)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jd...@us...> - 2008-05-25 20:58:10
|
Revision: 5265
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5265&view=rev
Author: jdh2358
Date: 2008-05-25 13:58:06 -0700 (Sun, 25 May 2008)
Log Message:
-----------
updated default dir names for svn checkouts
Modified Paths:
--------------
trunk/matplotlib/docs/devel/coding_guide.rst
trunk/matplotlib/examples/api/logo2.py
Removed Paths:
-------------
trunk/matplotlib/CODING_GUIDE
Deleted: trunk/matplotlib/CODING_GUIDE
===================================================================
--- trunk/matplotlib/CODING_GUIDE 2008-05-25 16:57:31 UTC (rev 5264)
+++ trunk/matplotlib/CODING_GUIDE 2008-05-25 20:58:06 UTC (rev 5265)
@@ -1,320 +0,0 @@
-= The matplotlib developer's guide =
-
-This is meant to be a guide to developers on the mpl coding practices
-and standards. Please edit and extend this document.
-
-== svn checkouts ==
-
-# checking out everything (toolkits, user's guide, htdocs, etc..)
-svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk matplotlib --username=youruser --password=yourpass
-
-
-# checking out the main src
-svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib matplotlib --username=youruser --password=yourpass
-
-# branch checkouts, eg the transforms branch
-svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/transforms transbranch
-
-== Committing changes ==
-
-When committing changes to matplotlib, there are a few things to bear
-in mind.
-
- * if your changes are non-trivial, please make an entry in the
- CHANGELOG
-
- * if you change the API, please document it in API_CHANGES, and
- consider posting to mpl-devel
-
- * Are your changes python2.3 compatible? We are still trying to
- support 2.3, so avoid 2.4 only features like decorators until we
- remove 2.3 support
-
- * Can you pass examples/backend_driver.py? This is our poor man's
- unit test.
-
- * If you have altered extension code, do you pass
- unit/memleak_hawaii.py?
-
- * if you have added new files or directories, or reorganized
- existing ones, are the new files included in the match patterns in
- MANIFEST.in. This file determines what goes into the src
- distribution of the mpl build.
-
- * Keep the maintenance branch and trunk in sync where it makes sense.
- If there is a bug on both that needs fixing, use svnmerge.py to
- keep them in sync. http://www.orcaware.com/svn/wiki/Svnmerge.py. The
- basic procedure is:
-
- - install svnmerge.py in your PATH:
- wget http://svn.collab.net/repos/svn/trunk/contrib/client-side/svnmerge/svnmerge.py
-
- - get a svn copy of the branch (svn co
- https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v0_91_maint)
- and the trunk (svn co
- https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib)
-
- - Michael advises making the change on the branch and committing
- it. Make sure you svn upped on the trunk and have no local
- modifications, and then from the svn trunk do
-
- # where the NNN are the revision numbers. ranges also acceptable
- > svnmerge.py merge -rNNN1,NNN2
-
- # this file is automatically created by the merge command
- > svn commit -F svnmerge-commit-message.txt
-
-== Importing and name spaces ==
-
-For numpy, use:
-
-
- import numpy as np
- a = np.array([1,2,3])
-
-
-For masked arrays, use:
- from numpy import ma
-
- (The earlier recommendation, 'import matplotlib.numerix.npyma as ma',
- was needed temporarily during the development of the maskedarray
- implementation as a separate package. As of numpy 1.05, it
- replaces the old implementation.
- Note: "from numpy import ma" works with numpy < 1.05 *and* with
- numpy >= 1.05. "import numpy.ma as ma" works *only* with
- numpy >= 1.05, so for now we must not use it.)
-
-For matplotlib main module, use:
-
- import matplotlib as mpl
- mpl.rcParams['xtick.major.pad'] = 6
-
-For matplotlib modules (or any other modules), use:
-
- import matplotlib.cbook as cbook
-
- if cbook.iterable(z):
- pass
-
- We prefer this over the equivalent 'from matplotlib import cbook'
- because the latter is ambiguous whether cbook is a module or a
- function to the new developer. The former makes it explcit that
- you are importing a module or package.
-
-== Naming, spacing, and formatting conventions ==
-
-In general, we want to hew as closely as possible to the standard
-coding guidelines for python written by Guido in
-http://www.python.org/dev/peps/pep-0008, though we do not do this
-throughout.
-
- functions and class methods : lower or lower_underscore_separated
-
- attributes and variables : lower or lowerUpper
-
- classes : Upper or MixedCase
-
-Personally, I prefer the shortest names that are still readable.
-
-Also, use an editor that does not put tabs in files. Four spaces
-should be used for indentation everywhere and if there is a file with
-tabs or more or less spaces it is a bug -- please fix it.
-
-Please avoid spurious invisible spaces at the ends of lines.
-(Tell your editor to strip whitespace from line ends when saving
-a file.)
-
-Keep docstrings uniformly indented as in the example below, with
-nothing to the left of the triple quotes. The dedent() function
-is needed to remove excess indentation only if something will be
-interpolated into the docstring, again as in the example above.
-
-Limit line length to 80 characters. If a logical line needs to be
-longer, use parentheses to break it; do not use an escaped
-newline. It may be preferable to use a temporary variable
-to replace a single long line with two shorter and more
-readable lines.
-
-Please do not commit lines with trailing white space, as it causes
-noise in svn diffs. If you are an emacs user, the following in your
-.emacs will cause emacs to strip trailing white space on save for
-python, C and C++
-
-
-; and similarly for c++-mode-hook and c-mode-hook
-(add-hook 'python-mode-hook
- (lambda ()
- (add-hook 'write-file-functions 'delete-trailing-whitespace)))
-
-
-
-for older versions of emacs (emacs<22) you need to do
-
-(add-hook 'python-mode-hook
- (lambda ()
- (add-hook 'local-write-file-hooks 'delete-trailing-whitespace)))
-
-
-
-
-== Licenses ==
-
-matplotlib only uses BSD compatible code. If you bring in code from
-another project make sure it has a PSF, BSD, MIT or compatible
-license. If not, you may consider contacting the author and asking
-them to relicense it. GPL and LGPL code are not acceptible in the
-main code base, though we are considering an alternative way of
-distributing L/GPL code through an separate channel, possibly a
-toolkit. If you include code, make sure you include a copy of that
-code's license in the license directory if the code's license requires
-you to distribute the license with it.
-
-
-== Keyword argument processing ==
-
-Matplotlib makes extensive use of **kwargs for pass through
-customizations from one function to another. A typical example is in
-pylab.text, The definition of the pylab text function is a simple
-pass-through to axes.Axes.text
-
- # in pylab.py
- def text(*args, **kwargs):
- ret = gca().text(*args, **kwargs)
- draw_if_interactive()
- return ret
-
-
-axes.Axes.text in simplified form looks like this, ie it just passes
-them on to text.Text.__init__
- # in axes.py
- def text(self, x, y, s, fontdict=None, withdash=False, **kwargs):
- t = Text(x=x, y=y, text=s, **kwargs)
-
-
-and Text.__init__ (again with liberties for illustration) just passes
-them on to the artist.Artist.update method
-
- # in text.py
- def __init__(self, x=0, y=0, text='', **kwargs):
- Artist.__init__(self)
- self.update(kwargs)
-
-'update' does the work looking for methods named like 'set_property'
-if 'property' is a keyword argument. Ie, noone looks at the keywords,
-they just get passed through the API to the artist constructor which
-looks for suitably named methods and calls them with the value.
-
-As a general rule, the use of **kwargs should be reserved for
-pass-through keyword arguments, as in the examaple above. If I intend
-for all the keyword args to be used in some function and not passed
-on, I just use the key/value keyword args in the function definition
-rather than the **kwargs idiom.
-
-In some cases I want to consume some keys and pass through the others,
-in which case I pop the ones I want to use locally and pass on the
-rest, eg I pop scalex and scaley in Axes.plot and assume the rest are
-Line2D keyword arguments. As an example of a pop, passthrough
-usage, see Axes.plot:
-
- # in axes.py
- def plot(self, *args, **kwargs):
- scalex = kwargs.pop('scalex', True)
- scaley = kwargs.pop('scaley', True)
- if not self._hold: self.cla()
- lines = []
- for line in self._get_lines(*args, **kwargs):
- self.add_line(line)
- lines.append(line)
-
-The matplotlib.cbook function popd() is rendered
-obsolete by the pop() dictionary method introduced in Python 2.3,
-so it should not be used for new code.
-
-Note there is a use case when kwargs are meant to be used locally in
-the function (not passed on), but you still need the **kwargs idiom.
-That is when you want to use *args to allow variable numbers of
-non-keyword args. In this case, python will not allow you to use
-named keyword args after the *args usage, so you will be forced to use
-**kwargs. An example is matplotlib.contour.ContourLabeler.clabel
-
- # in contour.py
- def clabel(self, *args, **kwargs):
- fontsize = kwargs.get('fontsize', None)
- inline = kwargs.get('inline', 1)
- self.fmt = kwargs.get('fmt', '%1.3f')
- colors = kwargs.get('colors', None)
- if len(args) == 0:
- levels = self.levels
- indices = range(len(self.levels))
- elif len(args) == 1:
- ...etc...
-
-== Class documentation ==
-
-matplotlib uses artist instrospection of docstrings to support
-properties. All properties that you want to support through setp and
-getp should have a set_property and get_property method in the Artist
-class. Yes, this is not ideal given python properties or enthought
-traits, but it is a historical legacy for now. The setter methods use
-the docstring with the ACCEPTS token to indicate the type of argument
-the method accepts. Eg in matplotlib.lines.Line2D
-
- # in lines.py
- def set_linestyle(self, linestyle):
- """
- Set the linestyle of the line
-
- ACCEPTS: [ '-' | '--' | '-.' | ':' | 'steps' | 'None' | ' ' | '' ]
- """
-
-
-Since matplotlib uses a lot of pass through kwargs, eg in every
-function that creates a line (plot, semilogx, semilogy, etc...), it
-can be difficult for the new user to know which kwargs are supported.
-I have developed a docstring interpolation scheme to support
-documentation of every function that takes a **kwargs. The
-requirements are:
-
- 1) single point of configuration so changes to the properties don't
- require multiple docstring edits
-
- 2) as automated as possible so that as properties change the docs
- are updated automagically.
-
-I have added a matplotlib.artist.kwdocd and kwdoc() to faciliate this.
-They combines python string interpolation in the docstring with the
-matplotlib artist introspection facility that underlies setp and getp.
-The kwdocd is a single dictionary that maps class name to a docstring
-of kwargs. Here is an example from matplotlib.lines
-
- # in lines.py
- artist.kwdocd['Line2D'] = artist.kwdoc(Line2D)
-
-Then in any function accepting Line2D passthrough kwargs, eg
-matplotlib.axes.Axes.plot
-
- # in axes.py
-...
- def plot(self, *args, **kwargs):
- """
- Some stuff omitted
-
- The kwargs are Line2D properties:
- %(Line2D)s
-
- kwargs scalex and scaley, if defined, are passed on
- to autoscale_view to determine whether the x and y axes are
- autoscaled; default True. See Axes.autoscale_view for more
- information
- """
- pass
- plot.__doc__ = cbook.dedent(plot.__doc__) % artist.kwdocd
-
-Note there is a problem for Artist __init__ methods, eg Patch.__init__
-which supports Patch kwargs, since the artist inspector cannot work
-until the class is fully defined and we can't modify the
-Patch.__init__.__doc__ docstring outside the class definition. I have
-made some manual hacks in this case which violates the "single entry
-point" requirement above; hopefully we'll find a more elegant solution
-before too long
-
Modified: trunk/matplotlib/docs/devel/coding_guide.rst
===================================================================
--- trunk/matplotlib/docs/devel/coding_guide.rst 2008-05-25 16:57:31 UTC (rev 5264)
+++ trunk/matplotlib/docs/devel/coding_guide.rst 2008-05-25 20:58:06 UTC (rev 5265)
@@ -13,12 +13,12 @@
Checking out the main source::
svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/\
- matplotlib matplotlib --username=youruser --password=yourpass
+ matplotlib mpl --username=youruser --password=yourpass
Branch checkouts, eg the maintenance branch::
svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/\
- v0_91_maint mplv0_91_maint
+ v0_91_maint mpl91
Committing changes
==================
Modified: trunk/matplotlib/examples/api/logo2.py
===================================================================
--- trunk/matplotlib/examples/api/logo2.py 2008-05-25 16:57:31 UTC (rev 5264)
+++ trunk/matplotlib/examples/api/logo2.py 2008-05-25 20:58:06 UTC (rev 5265)
@@ -14,9 +14,12 @@
ax = fig.add_axes([0.05, 0.05, 0.2, 01], polar=True)
ax.axesPatch.set_alpha(axalpha)
N = 20
-theta = np.arange(0.0, 2*np.pi, 2*np.pi/N)
+theta = np.arange(0.0, 2*np.pi, 2*np.pi/N) + np.pi
radii = 10*np.random.rand(N)
-width = np.pi/4*np.random.rand(N)
+width = np.pi/6*np.random.rand(N)
+#radii = np.log(np.arange(1,N+1))
+#width = np.arange(N, dtype=float)/N*np.pi/8
+
bars = ax.bar(theta, radii, width=width, bottom=0.0)
for r,bar in zip(radii, bars):
bar.set_facecolor( cm.jet(r/10.))
@@ -33,7 +36,8 @@
x = mu + sigma*np.random.randn(10000)
# the histogram of the data
-n, bins, patches = axhist.hist(x, 50, normed=1, facecolor='green', edgecolor='green', alpha=0.75)
+n, bins, patches = axhist.hist(x, 50, normed=1,
+ facecolor='green', edgecolor='green', alpha=0.75)
y = mlab.normpdf( bins, mu, sigma)
@@ -51,8 +55,10 @@
#the math background
tex = r"$W^{3\beta}_{\delta_1 \rho_1 \sigma_2} = U^{3\beta}_{\delta_1 \rho_1} + \frac{1}{8 \pi 2} \int^{\alpha_2}_{\alpha_2} d \alpha^\prime_2 \left[\frac{ U^{2\beta}_{\delta_1 \rho_1} - \alpha^\prime_2U^{1\beta}_{\rho_1 \sigma_2} }{U^{0\beta}_{\rho_1 \sigma_2}}\right]$"
+radargreen = '#d5de9c'
+orange = '#ee8d18'
axback.text(0.5, 0.5, tex,
- transform=axback.transAxes, color="0.5", alpha=0.5, fontsize=40,
+ transform=axback.transAxes, color='black', alpha=0.25, fontsize=40,
ha='center', va='center')
axback.set_axis_off()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jd...@us...> - 2008-05-25 16:57:36
|
Revision: 5264
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5264&view=rev
Author: jdh2358
Date: 2008-05-25 09:57:31 -0700 (Sun, 25 May 2008)
Log Message:
-----------
syncing logo
Modified Paths:
--------------
trunk/matplotlib/examples/api/logo2.py
Modified: trunk/matplotlib/examples/api/logo2.py
===================================================================
--- trunk/matplotlib/examples/api/logo2.py 2008-05-25 16:09:25 UTC (rev 5263)
+++ trunk/matplotlib/examples/api/logo2.py 2008-05-25 16:57:31 UTC (rev 5264)
@@ -4,9 +4,11 @@
import matplotlib.mlab as mlab
axalpha = 0.05
-fig = plt.figure(figsize=(8, 2),dpi=80)
-fig.figurePatch.set_edgecolor('#FFFFCC')
-fig.figurePatch.set_facecolor('#FFFFCC')
+figcolor = '#FFFFCC'
+dpi = 80
+fig = plt.figure(figsize=(8, 2),dpi=dpi)
+fig.figurePatch.set_edgecolor(figcolor)
+fig.figurePatch.set_facecolor(figcolor)
# the polar bar plot
ax = fig.add_axes([0.05, 0.05, 0.2, 01], polar=True)
@@ -60,6 +62,6 @@
transform=axback.transAxes)
-
+fig.savefig('logo2.png', facecolor=figcolor, edgecolor=figcolor, dpi=dpi)
plt.show()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jd...@us...> - 2008-05-25 16:14:16
|
Revision: 5262
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5262&view=rev
Author: jdh2358
Date: 2008-05-25 09:07:58 -0700 (Sun, 25 May 2008)
Log Message:
-----------
added logo2
Added Paths:
-----------
trunk/matplotlib/examples/pylab/logo2.py
Added: trunk/matplotlib/examples/pylab/logo2.py
===================================================================
--- trunk/matplotlib/examples/pylab/logo2.py (rev 0)
+++ trunk/matplotlib/examples/pylab/logo2.py 2008-05-25 16:07:58 UTC (rev 5262)
@@ -0,0 +1,65 @@
+import numpy as np
+import matplotlib.pyplot as plt
+import matplotlib.cm as cm
+import matplotlib.mlab as mlab
+
+axalpha = 0.05
+fig = plt.figure(figsize=(8, 2),dpi=80)
+fig.figurePatch.set_edgecolor('#FFFFCC')
+fig.figurePatch.set_facecolor('#FFFFCC')
+
+# the polar bar plot
+ax = fig.add_axes([0.05, 0.05, 0.2, 01], polar=True)
+ax.axesPatch.set_alpha(axalpha)
+N = 20
+theta = np.arange(0.0, 2*np.pi, 2*np.pi/N)
+radii = 10*np.random.rand(N)
+width = np.pi/4*np.random.rand(N)
+bars = ax.bar(theta, radii, width=width, bottom=0.0)
+for r,bar in zip(radii, bars):
+ bar.set_facecolor( cm.jet(r/10.))
+ bar.set_alpha(0.5)
+
+for label in ax.get_xticklabels() + ax.get_yticklabels():
+ label.set_visible(False)
+
+
+# the histogram
+axhist = fig.add_axes([0.275, 0.075, 0.2, 0.4])
+axhist.axesPatch.set_alpha(axalpha)
+mu, sigma = 100, 15
+x = mu + sigma*np.random.randn(10000)
+
+# the histogram of the data
+n, bins, patches = axhist.hist(x, 50, normed=1, facecolor='green', edgecolor='green', alpha=0.75)
+
+
+y = mlab.normpdf( bins, mu, sigma)
+l = axhist.plot(bins, y, 'r', lw=1)
+
+axhist.set_title('Density of IQ',fontsize=6)
+axhist.set_xlabel('IQ', fontsize=6)
+axhist.set_ylabel('P(IQ)', fontsize=6)
+ax.set_xlim(-2*sigma, 2*sigma)
+for label in axhist.get_xticklabels() + axhist.get_yticklabels():
+ label.set_visible(False)
+
+
+axback = fig.add_axes([0., 0., 1., 1.])
+
+#the math background
+tex = r"$W^{3\beta}_{\delta_1 \rho_1 \sigma_2} = U^{3\beta}_{\delta_1 \rho_1} + \frac{1}{8 \pi 2} \int^{\alpha_2}_{\alpha_2} d \alpha^\prime_2 \left[\frac{ U^{2\beta}_{\delta_1 \rho_1} - \alpha^\prime_2U^{1\beta}_{\rho_1 \sigma_2} }{U^{0\beta}_{\rho_1 \sigma_2}}\right]$"
+axback.text(0.5, 0.5, tex,
+ transform=axback.transAxes, color="0.5", alpha=0.5, fontsize=40,
+ ha='center', va='center')
+axback.set_axis_off()
+
+# the matplotlib title
+axback.text(0.3, 0.95, 'matplotlib', color='black', fontsize=75,
+ ha='left', va='top', alpha=1.0,
+ transform=axback.transAxes)
+
+
+
+plt.show()
+
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jd...@us...> - 2008-05-25 16:14:15
|
Revision: 5263
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5263&view=rev
Author: jdh2358
Date: 2008-05-25 09:09:25 -0700 (Sun, 25 May 2008)
Log Message:
-----------
added logo2
Added Paths:
-----------
trunk/matplotlib/examples/api/logo2.py
Removed Paths:
-------------
trunk/matplotlib/examples/pylab/logo2.py
Copied: trunk/matplotlib/examples/api/logo2.py (from rev 5262, trunk/matplotlib/examples/pylab/logo2.py)
===================================================================
--- trunk/matplotlib/examples/api/logo2.py (rev 0)
+++ trunk/matplotlib/examples/api/logo2.py 2008-05-25 16:09:25 UTC (rev 5263)
@@ -0,0 +1,65 @@
+import numpy as np
+import matplotlib.pyplot as plt
+import matplotlib.cm as cm
+import matplotlib.mlab as mlab
+
+axalpha = 0.05
+fig = plt.figure(figsize=(8, 2),dpi=80)
+fig.figurePatch.set_edgecolor('#FFFFCC')
+fig.figurePatch.set_facecolor('#FFFFCC')
+
+# the polar bar plot
+ax = fig.add_axes([0.05, 0.05, 0.2, 01], polar=True)
+ax.axesPatch.set_alpha(axalpha)
+N = 20
+theta = np.arange(0.0, 2*np.pi, 2*np.pi/N)
+radii = 10*np.random.rand(N)
+width = np.pi/4*np.random.rand(N)
+bars = ax.bar(theta, radii, width=width, bottom=0.0)
+for r,bar in zip(radii, bars):
+ bar.set_facecolor( cm.jet(r/10.))
+ bar.set_alpha(0.5)
+
+for label in ax.get_xticklabels() + ax.get_yticklabels():
+ label.set_visible(False)
+
+
+# the histogram
+axhist = fig.add_axes([0.275, 0.075, 0.2, 0.4])
+axhist.axesPatch.set_alpha(axalpha)
+mu, sigma = 100, 15
+x = mu + sigma*np.random.randn(10000)
+
+# the histogram of the data
+n, bins, patches = axhist.hist(x, 50, normed=1, facecolor='green', edgecolor='green', alpha=0.75)
+
+
+y = mlab.normpdf( bins, mu, sigma)
+l = axhist.plot(bins, y, 'r', lw=1)
+
+axhist.set_title('Density of IQ',fontsize=6)
+axhist.set_xlabel('IQ', fontsize=6)
+axhist.set_ylabel('P(IQ)', fontsize=6)
+ax.set_xlim(-2*sigma, 2*sigma)
+for label in axhist.get_xticklabels() + axhist.get_yticklabels():
+ label.set_visible(False)
+
+
+axback = fig.add_axes([0., 0., 1., 1.])
+
+#the math background
+tex = r"$W^{3\beta}_{\delta_1 \rho_1 \sigma_2} = U^{3\beta}_{\delta_1 \rho_1} + \frac{1}{8 \pi 2} \int^{\alpha_2}_{\alpha_2} d \alpha^\prime_2 \left[\frac{ U^{2\beta}_{\delta_1 \rho_1} - \alpha^\prime_2U^{1\beta}_{\rho_1 \sigma_2} }{U^{0\beta}_{\rho_1 \sigma_2}}\right]$"
+axback.text(0.5, 0.5, tex,
+ transform=axback.transAxes, color="0.5", alpha=0.5, fontsize=40,
+ ha='center', va='center')
+axback.set_axis_off()
+
+# the matplotlib title
+axback.text(0.3, 0.95, 'matplotlib', color='black', fontsize=75,
+ ha='left', va='top', alpha=1.0,
+ transform=axback.transAxes)
+
+
+
+plt.show()
+
Deleted: trunk/matplotlib/examples/pylab/logo2.py
===================================================================
--- trunk/matplotlib/examples/pylab/logo2.py 2008-05-25 16:07:58 UTC (rev 5262)
+++ trunk/matplotlib/examples/pylab/logo2.py 2008-05-25 16:09:25 UTC (rev 5263)
@@ -1,65 +0,0 @@
-import numpy as np
-import matplotlib.pyplot as plt
-import matplotlib.cm as cm
-import matplotlib.mlab as mlab
-
-axalpha = 0.05
-fig = plt.figure(figsize=(8, 2),dpi=80)
-fig.figurePatch.set_edgecolor('#FFFFCC')
-fig.figurePatch.set_facecolor('#FFFFCC')
-
-# the polar bar plot
-ax = fig.add_axes([0.05, 0.05, 0.2, 01], polar=True)
-ax.axesPatch.set_alpha(axalpha)
-N = 20
-theta = np.arange(0.0, 2*np.pi, 2*np.pi/N)
-radii = 10*np.random.rand(N)
-width = np.pi/4*np.random.rand(N)
-bars = ax.bar(theta, radii, width=width, bottom=0.0)
-for r,bar in zip(radii, bars):
- bar.set_facecolor( cm.jet(r/10.))
- bar.set_alpha(0.5)
-
-for label in ax.get_xticklabels() + ax.get_yticklabels():
- label.set_visible(False)
-
-
-# the histogram
-axhist = fig.add_axes([0.275, 0.075, 0.2, 0.4])
-axhist.axesPatch.set_alpha(axalpha)
-mu, sigma = 100, 15
-x = mu + sigma*np.random.randn(10000)
-
-# the histogram of the data
-n, bins, patches = axhist.hist(x, 50, normed=1, facecolor='green', edgecolor='green', alpha=0.75)
-
-
-y = mlab.normpdf( bins, mu, sigma)
-l = axhist.plot(bins, y, 'r', lw=1)
-
-axhist.set_title('Density of IQ',fontsize=6)
-axhist.set_xlabel('IQ', fontsize=6)
-axhist.set_ylabel('P(IQ)', fontsize=6)
-ax.set_xlim(-2*sigma, 2*sigma)
-for label in axhist.get_xticklabels() + axhist.get_yticklabels():
- label.set_visible(False)
-
-
-axback = fig.add_axes([0., 0., 1., 1.])
-
-#the math background
-tex = r"$W^{3\beta}_{\delta_1 \rho_1 \sigma_2} = U^{3\beta}_{\delta_1 \rho_1} + \frac{1}{8 \pi 2} \int^{\alpha_2}_{\alpha_2} d \alpha^\prime_2 \left[\frac{ U^{2\beta}_{\delta_1 \rho_1} - \alpha^\prime_2U^{1\beta}_{\rho_1 \sigma_2} }{U^{0\beta}_{\rho_1 \sigma_2}}\right]$"
-axback.text(0.5, 0.5, tex,
- transform=axback.transAxes, color="0.5", alpha=0.5, fontsize=40,
- ha='center', va='center')
-axback.set_axis_off()
-
-# the matplotlib title
-axback.text(0.3, 0.95, 'matplotlib', color='black', fontsize=75,
- ha='left', va='top', alpha=1.0,
- transform=axback.transAxes)
-
-
-
-plt.show()
-
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|