Revision: 6378
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6378&view=rev
Author: jdh2358
Date: 2008-11-09 00:09:23 +0000 (Sun, 09 Nov 2008)
Log Message:
-----------
added jae joons layer images patch
Modified Paths:
--------------
trunk/matplotlib/doc/_templates/gallery.html
trunk/matplotlib/doc/faq/environment_variables_faq.rst
trunk/matplotlib/doc/faq/index.rst
trunk/matplotlib/lib/matplotlib/axes.py
trunk/matplotlib/lib/matplotlib/mlab.py
Modified: trunk/matplotlib/doc/_templates/gallery.html
===================================================================
--- trunk/matplotlib/doc/_templates/gallery.html 2008-11-08 18:41:25 UTC
(rev 6377)
+++ trunk/matplotlib/doc/_templates/gallery.html 2008-11-09 00:09:23 UTC
(rev 6378)
@@ -159,8 +159,6 @@
<a href="examples/pylab_examples/customize_rc.html"><img
src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/customize_rc.png"
border="0" alt="customize_rc"/></a>
-<a href="examples/pylab_examples/dannys_example.html"><img
src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/dannys_example.png"
border="0" alt="dannys_example"/></a>
-
<a href="examples/pylab_examples/dash_control.html"><img
src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/dash_control.png"
border="0" alt="dash_control"/></a>
<a href="examples/pylab_examples/dashpointlabel.html"><img
src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/dashpointlabel.png"
border="0" alt="dashpointlabel"/></a>
@@ -241,8 +239,6 @@
<a href="examples/pylab_examples/ganged_plots.html"><img
src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/ganged_plots.png"
border="0" alt="ganged_plots"/></a>
-<a href="examples/pylab_examples/geo_demo.html"><img
src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/geo_demo.png"
border="0" alt="geo_demo"/></a>
-
<a href="examples/pylab_examples/gradient_bar.html"><img
src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/gradient_bar.png"
border="0" alt="gradient_bar"/></a>
<a href="examples/pylab_examples/griddata_demo.html"><img
src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/griddata_demo.png"
border="0" alt="griddata_demo"/></a>
@@ -457,8 +453,6 @@
<a href="examples/pylab_examples/step_demo.html"><img
src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/step_demo.png"
border="0" alt="step_demo"/></a>
-<a href="examples/pylab_examples/stix_fonts_demo.html"><img
src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/stix_fonts_demo.png"
border="0" alt="stix_fonts_demo"/></a>
-
<a href="examples/pylab_examples/subplot_demo.html"><img
src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/subplot_demo.png"
border="0" alt="subplot_demo"/></a>
<a href="examples/pylab_examples/subplot_toolbar.html"><img
src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/subplot_toolbar_00.png"
border="0" alt="subplot_toolbar"/></a>
@@ -467,12 +461,8 @@
<a href="examples/pylab_examples/subplots_adjust.html"><img
src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/subplots_adjust.png"
border="0" alt="subplots_adjust"/></a>
-<a href="examples/pylab_examples/symlog_demo.html"><img
src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/symlog_demo.png"
border="0" alt="symlog_demo"/></a>
-
<a href="examples/pylab_examples/table_demo.html"><img
src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/table_demo.png"
border="0" alt="table_demo"/></a>
-<a href="examples/pylab_examples/tex_demo.html"><img
src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/tex_demo.png"
border="0" alt="tex_demo"/></a>
-
<a href="examples/pylab_examples/text_handles.html"><img
src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/text_handles.png"
border="0" alt="text_handles"/></a>
<a href="examples/pylab_examples/text_rotation.html"><img
src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/text_rotation.png"
border="0" alt="text_rotation"/></a>
@@ -487,8 +477,6 @@
<a href="examples/pylab_examples/unicode_demo.html"><img
src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/unicode_demo.png"
border="0" alt="unicode_demo"/></a>
-<a href="examples/pylab_examples/usetex_demo.html"><img
src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/usetex_demo.png"
border="0" alt="usetex_demo"/></a>
-
<a href="examples/pylab_examples/vertical_ticklabels.html"><img
src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/vertical_ticklabels.png"
border="0" alt="vertical_ticklabels"/></a>
<a href="examples/pylab_examples/vline_demo.html"><img
src="_static/plot_directive/mpl_examples/pylab_examples/thumbnails/vline_demo.png"
border="0" alt="vline_demo"/></a>
Modified: trunk/matplotlib/doc/faq/environment_variables_faq.rst
===================================================================
--- trunk/matplotlib/doc/faq/environment_variables_faq.rst 2008-11-08
18:41:25 UTC (rev 6377)
+++ trunk/matplotlib/doc/faq/environment_variables_faq.rst 2008-11-09
00:09:23 UTC (rev 6378)
@@ -1,4 +1,4 @@
-.. _environment-variablesg:
+.. _environment-variables:
*********************
Environment Variables
Modified: trunk/matplotlib/doc/faq/index.rst
===================================================================
--- trunk/matplotlib/doc/faq/index.rst 2008-11-08 18:41:25 UTC (rev 6377)
+++ trunk/matplotlib/doc/faq/index.rst 2008-11-09 00:09:23 UTC (rev 6378)
@@ -15,6 +15,6 @@
:maxdepth: 2
installing_faq.rst
+ usage.rst
+ howto_faq.rst
troubleshooting_faq.rst
- howto_faq.rst
- environment_variables_faq.rst
Modified: trunk/matplotlib/lib/matplotlib/axes.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/axes.py 2008-11-08 18:41:25 UTC (rev
6377)
+++ trunk/matplotlib/lib/matplotlib/axes.py 2008-11-09 00:09:23 UTC (rev
6378)
@@ -1536,15 +1536,16 @@
ims = [(im.make_image(mag),0,0)
for im in self.images if im.get_visible()]
-
+ #flip the images if their origin is "upper"
+ [im.flipud_out() for _im, (im,_,_) in zip(self.images, ims) \
+ if _im.origin=="upper"]
+
l, b, r, t = self.bbox.extents
width = mag*((round(r) + 0.5) - (round(l) - 0.5))
height = mag*((round(t) + 0.5) - (round(b) - 0.5))
im = mimage.from_images(height,
width,
ims)
- if self.images[0].origin=='upper':
- im.flipud_out()
im.is_grayscale = False
l, b, w, h = self.bbox.bounds
Modified: trunk/matplotlib/lib/matplotlib/mlab.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/mlab.py 2008-11-08 18:41:25 UTC (rev
6377)
+++ trunk/matplotlib/lib/matplotlib/mlab.py 2008-11-09 00:09:23 UTC (rev
6378)
@@ -2013,6 +2013,7 @@
output to a new attribute name *outname*. The returned record
array is identical to *r*, with extra arrays for each element in
*summaryfuncs*.
+
"""
names = list(r.dtype.names)
@@ -2569,7 +2570,19 @@
length = max(len(colname),np.max(map(len,map(str,column))))
return 1, length+padding, "%d" # right justify
- if ntype==np.float or ntype==np.float32 or ntype==np.float64 or
ntype==np.float96 or ntype==np.float_:
+ # JDH: my powerbook does not have np.float96 using np 1.3.0
+ """
+ In [2]: np.__version__
+ Out[2]: '1.3.0.dev5948'
+
+ In [3]: !uname -a
+ Darwin Macintosh-5.local 9.4.0 Darwin Kernel Version 9.4.0: Mon Jun 9
19:30:53 PDT 2008; root:xnu-1228.5.20~1/RELEASE_I386 i386 i386
+
+ In [4]: np.float96
+
---------------------------------------------------------------------------
+ AttributeError Traceback (most recent call
la
+ """
+ if ntype==np.float or ntype==np.float32 or ntype==np.float64 or
(hasattr(np, 'float96') and (ntype==np.float96)) or ntype==np.float_:
fmt = "%." + str(precision) + "f"
length = max(len(colname),np.max(map(len,map(lambda
x:fmt%x,column))))
return 1, length+padding, fmt # right justify
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins