SF.net SVN: matplotlib: [5315] tags/v0_98_0/

2008-05-30 Thread mdboom
Revision: 5315
  http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5315&view=rev
Author:   mdboom
Date: 2008-05-30 05:23:06 -0700 (Fri, 30 May 2008)

Log Message:
---
Tagging 0.98 release

Added Paths:
---
tags/v0_98_0/

Copied: tags/v0_98_0 (from rev 5314, trunk/matplotlib)


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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins


SF.net SVN: matplotlib: [5316] tags/v0_91_3/

2008-05-30 Thread mdboom
Revision: 5316
  http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5316&view=rev
Author:   mdboom
Date: 2008-05-30 05:23:54 -0700 (Fri, 30 May 2008)

Log Message:
---
Tagging 0.91.3 release

Added Paths:
---
tags/v0_91_3/

Copied: tags/v0_91_3 (from rev 5315, branches/v0_91_maint)


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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins


SF.net SVN: matplotlib: [5317] trunk/toolkits/basemap/Changelog

2008-05-30 Thread jswhit
Revision: 5317
  http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5317&view=rev
Author:   jswhit
Date: 2008-05-30 07:10:10 -0700 (Fri, 30 May 2008)

Log Message:
---
release 0.99

Modified Paths:
--
trunk/toolkits/basemap/Changelog

Modified: trunk/toolkits/basemap/Changelog
===
--- trunk/toolkits/basemap/Changelog2008-05-30 12:23:54 UTC (rev 5316)
+++ trunk/toolkits/basemap/Changelog2008-05-30 14:10:10 UTC (rev 5317)
@@ -1,4 +1,4 @@
-version 0.99
+version 0.99 (svn revision 5316)
* updated pyproj to 1.8.5.
* fixed bug in NetCDFFile creating masked arrays when both
  _FillValue and missing_value exist.


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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins


SF.net SVN: matplotlib: [5318] trunk/htdocs/examples/

2008-05-30 Thread jdh2358
Revision: 5318
  http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5318&view=rev
Author:   jdh2358
Date: 2008-05-30 07:29:27 -0700 (Fri, 30 May 2008)

Log Message:
---
removed htdocs examples

Removed Paths:
-
trunk/htdocs/examples/


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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins


SF.net SVN: matplotlib: [5319] trunk/matplotlib/lib/matplotlib/mathtext.py

2008-05-30 Thread mdboom
Revision: 5319
  http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5319&view=rev
Author:   mdboom
Date: 2008-05-30 07:32:29 -0700 (Fri, 30 May 2008)

Log Message:
---
Fix mathtext bug (fractions too close together)

Modified Paths:
--
trunk/matplotlib/lib/matplotlib/mathtext.py

Modified: trunk/matplotlib/lib/matplotlib/mathtext.py
===
--- trunk/matplotlib/lib/matplotlib/mathtext.py 2008-05-30 14:29:27 UTC (rev 
5318)
+++ trunk/matplotlib/lib/matplotlib/mathtext.py 2008-05-30 14:32:29 UTC (rev 
5319)
@@ -656,7 +656,7 @@
 
 def get_underline_thickness(self, font, fontsize, dpi):
 cached_font = self._get_font(font)
-return cached_font.font.underline_thickness / 64.0 / fontsize * (10.0 
* dpi / 100.0)
+return (cached_font.font.underline_thickness / 64.0 / fontsize) * (dpi)
 
 def get_kern(self, font1, fontclass1, sym1, fontsize1,
  font2, fontclass2, sym2, fontsize2, dpi):


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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins


SF.net SVN: matplotlib: [5321] trunk/htdocs/screenshots/path_patch_demo.py

2008-05-30 Thread jdh2358
Revision: 5321
  http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5321&view=rev
Author:   jdh2358
Date: 2008-05-30 09:57:43 -0700 (Fri, 30 May 2008)

Log Message:
---
added htdocs path demo

Added Paths:
---
trunk/htdocs/screenshots/path_patch_demo.py

Added: trunk/htdocs/screenshots/path_patch_demo.py
===
--- trunk/htdocs/screenshots/path_patch_demo.py (rev 0)
+++ trunk/htdocs/screenshots/path_patch_demo.py 2008-05-30 16:57:43 UTC (rev 
5321)
@@ -0,0 +1,36 @@
+import numpy as np
+import matplotlib.path as mpath
+import matplotlib.patches as mpatches
+import matplotlib.pyplot as plt
+
+Path = mpath.Path
+
+fig = plt.figure()
+ax = fig.add_subplot(111)
+
+pathdata = [
+(Path.MOVETO, (1.58, -2.57)),
+(Path.CURVE4, (0.35, -1.1)),
+(Path.CURVE4, (-1.75, 2.0)),
+(Path.CURVE4, (0.375, 2.0)),
+(Path.LINETO, (0.85, 1.15)),
+(Path.CURVE4, (2.2, 3.2)),
+(Path.CURVE4, (3, 0.05)),
+(Path.CURVE4, (2.0, -0.5)),
+(Path.CLOSEPOLY, (1.58, -2.57)),
+]
+
+codes, verts = zip(*pathdata)
+path = mpath.Path(verts, codes)
+patch = mpatches.PathPatch(path, facecolor='red', edgecolor='yellow', 
alpha=0.5)
+ax.add_patch(patch)
+
+x, y = zip(*path.vertices)
+line, = ax.plot(x, y, 'go-')
+ax.grid()
+ax.set_xlim(-3,4)
+ax.set_ylim(-3,4)
+ax.set_title('spline paths')
+plt.show()
+
+


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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins


SF.net SVN: matplotlib: [5322] trunk/matplotlib/examples

2008-05-30 Thread jdh2358
Revision: 5322
  http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5322&view=rev
Author:   jdh2358
Date: 2008-05-30 09:58:02 -0700 (Fri, 30 May 2008)

Log Message:
---
updated path example

Modified Paths:
--
trunk/matplotlib/examples/api/path_patch_demo.py
trunk/matplotlib/examples/event_handling/path_editor.py

Modified: trunk/matplotlib/examples/api/path_patch_demo.py
===
--- trunk/matplotlib/examples/api/path_patch_demo.py2008-05-30 16:57:43 UTC 
(rev 5321)
+++ trunk/matplotlib/examples/api/path_patch_demo.py2008-05-30 16:58:02 UTC 
(rev 5322)
@@ -9,26 +9,28 @@
 ax = fig.add_subplot(111)
 
 pathdata = [
-(Path.MOVETO, (0, 0)),
-(Path.CURVE4, (-1, 0)),
-(Path.CURVE4, (-1, 1)),
-(Path.CURVE4, (0, 1)),
-(Path.LINETO, (2, 1)),
-(Path.CURVE4, (3, 1)),
-(Path.CURVE4, (3, 0)),
-(Path.CURVE4, (2, 0)),
-(Path.CLOSEPOLY, (0, 0)),
+(Path.MOVETO, (1.58, -2.57)),
+(Path.CURVE4, (0.35, -1.1)),
+(Path.CURVE4, (-1.75, 2.0)),
+(Path.CURVE4, (0.375, 2.0)),
+(Path.LINETO, (0.85, 1.15)),
+(Path.CURVE4, (2.2, 3.2)),
+(Path.CURVE4, (3, 0.05)),
+(Path.CURVE4, (2.0, -0.5)),
+(Path.CLOSEPOLY, (1.58, -2.57)),
 ]
 
 codes, verts = zip(*pathdata)
 path = mpath.Path(verts, codes)
-patch = mpatches.PathPatch(path, facecolor='green', edgecolor='yellow', 
alpha=0.5)
+patch = mpatches.PathPatch(path, facecolor='red', edgecolor='yellow', 
alpha=0.5)
 ax.add_patch(patch)
 
-
-ax.set_xlim(-5,5)
-ax.set_ylim(-5,5)
-
+x, y = zip(*path.vertices)
+line, = ax.plot(x, y, 'go-')
+ax.grid()
+ax.set_xlim(-3,4)
+ax.set_ylim(-3,4)
+ax.set_title('spline paths')
 plt.show()
 
 

Modified: trunk/matplotlib/examples/event_handling/path_editor.py
===
--- trunk/matplotlib/examples/event_handling/path_editor.py 2008-05-30 
16:57:43 UTC (rev 5321)
+++ trunk/matplotlib/examples/event_handling/path_editor.py 2008-05-30 
16:58:02 UTC (rev 5322)
@@ -10,15 +10,15 @@
 ax = fig.add_subplot(111)
 
 pathdata = [
-(Path.MOVETO, (0, 0)),
-(Path.CURVE4, (-1, 0.1)),
-(Path.CURVE4, (-1, 0.9)),
-(Path.CURVE4, (0, 1)),
-(Path.LINETO, (2, 1)),
-(Path.CURVE4, (3, 0.9)),
-(Path.CURVE4, (3, 0.1)),
-(Path.CURVE4, (2, 0)),
-(Path.CLOSEPOLY, (0, 0)),
+(Path.MOVETO, (1.58, -2.57)),
+(Path.CURVE4, (0.35, -1.1)),
+(Path.CURVE4, (-1.75, 2.0)),
+(Path.CURVE4, (0.375, 2.0)),
+(Path.LINETO, (0.85, 1.15)),
+(Path.CURVE4, (2.2, 3.2)),
+(Path.CURVE4, (3, 0.05)),
+(Path.CURVE4, (2.0, -0.5)),
+(Path.CLOSEPOLY, (1.58, -2.57)),
 ]
 
 codes, verts = zip(*pathdata)
@@ -123,9 +123,8 @@
 if event.button != 1: return
 x,y = event.xdata, event.ydata
 
-# todo: expose me
 vertices = self.pathpatch.get_path().vertices
-
+
 vertices[self._ind] = x,y
 self.line.set_data(zip(*vertices))
 
@@ -137,8 +136,8 @@
 
 interactor = PathInteractor(patch)
 ax.set_title('drag vertices to update path')
-ax.set_xlim(-5,5)
-ax.set_ylim(-5,5)
+ax.set_xlim(-3,4)
+ax.set_ylim(-3,4)
 
 plt.show()
 


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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins


SF.net SVN: matplotlib: [5325] trunk/matplotlib/doc/sphinxext/mathpng.py

2008-05-30 Thread dsdale
Revision: 5325
  http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5325&view=rev
Author:   dsdale
Date: 2008-05-30 10:29:25 -0700 (Fri, 30 May 2008)

Log Message:
---
temporary hack to make mathpng extension work with the way we organized 
doc/

Modified Paths:
--
trunk/matplotlib/doc/sphinxext/mathpng.py

Modified: trunk/matplotlib/doc/sphinxext/mathpng.py
===
--- trunk/matplotlib/doc/sphinxext/mathpng.py   2008-05-30 17:11:35 UTC (rev 
5324)
+++ trunk/matplotlib/doc/sphinxext/mathpng.py   2008-05-30 17:29:25 UTC (rev 
5325)
@@ -100,6 +100,7 @@
 for i in range(count):
 if os.path.exists(path): break
 path = '../'+path
+path = '../'+path #specifically added for matplotlib
 if inline and '_' in latex:
 align = 'align="absmiddle" '
 else:


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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins


SF.net SVN: matplotlib: [5326] trunk/htdocs/screenshots/ellipse_large.py

2008-05-30 Thread jdh2358
Revision: 5326
  http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5326&view=rev
Author:   jdh2358
Date: 2008-05-30 10:30:59 -0700 (Fri, 30 May 2008)

Log Message:
---
added ellipse demo

Added Paths:
---
trunk/htdocs/screenshots/ellipse_large.py

Added: trunk/htdocs/screenshots/ellipse_large.py
===
--- trunk/htdocs/screenshots/ellipse_large.py   (rev 0)
+++ trunk/htdocs/screenshots/ellipse_large.py   2008-05-30 17:30:59 UTC (rev 
5326)
@@ -0,0 +1,149 @@
+
+# This example can be boiled down to a more simplistic example
+# to show the problem, but bu including the upper and lower
+# bound ellipses, it demonstrates how significant this error
+# is to our plots.
+
+import math
+from pylab import *
+from matplotlib.patches import Ellipse, Arc
+
+# given a point x, y
+x = 2692.440
+y = 6720.850
+
+# get is the radius of a circle through this point
+r = math.sqrt( x*x+y*y )
+
+# show some comparative circles
+delta = 6
+
+
+##
+def custom_ellipse( ax, x, y, major, minor, theta, numpoints = 750, **kwargs ):
+   xs = []
+   ys = []
+   incr = 2.0*math.pi / numpoints
+   incrTheta = 0.0
+   while incrTheta <= (2.0*math.pi):
+  a = major * math.cos( incrTheta )
+  b = minor * math.sin( incrTheta )
+  l = math.sqrt( ( a**2 ) + ( b**2 ) )
+  phi = math.atan2( b, a )
+  incrTheta += incr
+
+  xs.append( x + ( l * math.cos( theta + phi ) ) )
+  ys.append( y + ( l * math.sin( theta + phi ) ) )
+   # end while
+
+   incrTheta = 2.0*math.pi
+   a = major * math.cos( incrTheta )
+   b = minor * math.sin( incrTheta )
+   l = sqrt( ( a**2 ) + ( b**2 ) )
+   phi = math.atan2( b, a )
+   xs.append( x + ( l * math.cos( theta + phi ) ) )
+   ys.append( y + ( l * math.sin( theta + phi ) ) )
+
+   ellipseLine = ax.plot( xs, ys, **kwargs )
+
+
+
+
+##
+# make the axes
+ax1 = subplot( 311, aspect='equal' )
+ax1.set_aspect( 'equal', 'datalim' )
+
+# make the lower-bound ellipse
+diam = (r - delta) * 2.0
+lower_ellipse = Ellipse( (0.0, 0.0), diam, diam, 0.0, fill=False, 
edgecolor="darkgreen" )
+ax1.add_patch( lower_ellipse )
+
+# make the target ellipse
+diam = r * 2.0
+target_ellipse = Ellipse( (0.0, 0.0), diam, diam, 0.0, fill=False, 
edgecolor="darkred" )
+ax1.add_patch( target_ellipse )
+
+# make the upper-bound ellipse
+diam = (r + delta) * 2.0
+upper_ellipse = Ellipse( (0.0, 0.0), diam, diam, 0.0, fill=False, 
edgecolor="darkblue" )
+ax1.add_patch( upper_ellipse )
+
+# make the target
+diam = delta * 2.0
+target = Ellipse( (x, y), diam, diam, 0.0, fill=False, edgecolor="#DD1208" )
+ax1.add_patch( target )
+
+# give it a big marker
+ax1.plot( [x], [y], marker='x', linestyle='None', mfc='red', mec='red', 
markersize=10 )
+
+##
+# make the axes
+ax = subplot( 312, aspect='equal' , sharex=ax1, sharey=ax1)
+ax.set_aspect( 'equal', 'datalim' )
+
+# make the lower-bound arc
+diam = (r - delta) * 2.0
+lower_arc = Arc( (0.0, 0.0), diam, diam, 0.0, fill=False, 
edgecolor="darkgreen" )
+ax.add_patch( lower_arc )
+
+# make the target arc
+diam = r * 2.0
+target_arc = Arc( (0.0, 0.0), diam, diam, 0.0, fill=False, edgecolor="darkred" 
)
+ax.add_patch( target_arc )
+
+# make the upper-bound arc
+diam = (r + delta) * 2.0
+upper_arc = Arc( (0.0, 0.0), diam, diam, 0.0, fill=False, edgecolor="darkblue" 
)
+ax.add_patch( upper_arc )
+
+# make the target
+diam = delta * 2.0
+target = Arc( (x, y), diam, diam, 0.0, fill=False, edgecolor="#DD1208" )
+ax.add_patch( target )
+
+# give it a big marker
+ax.plot( [x], [y], marker='x', linestyle='None', mfc='red', mec='red', 
markersize=10 )
+
+
+
+
+
+##
+# now lets do the same thing again using a custom ellipse function
+
+
+
+# make the axes
+ax = subplot( 313, aspect='equal', sharex=ax1, sharey=ax1 )
+ax.set_aspect( 'equal', 'datalim' )
+
+# make the lower-bound ellipse
+custom_ellipse( ax, 0.0, 0.0, r-delta, r-delta, 0.0, color="darkgreen" )
+
+# make the target ellipse
+custom_ellipse( ax, 0.0, 0.0, r, r, 0.0, color="darkred" )
+
+# make the upper-bound ellipse
+custom_ellipse( ax, 0.0, 0.0, r+delta, r+delta, 0.0, color="darkblue" )
+
+# make the target
+custom_ellipse( ax, x, y, delta, delta, 0.0, color="#BB1208" )
+
+# give it a big marker
+ax.plot( [x], [y], marker='x', linestyle='None', mfc='red', mec='red', 
markersize=10 )
+
+
+# give it a big marker
+ax.plot( [x], [y], marker='x', linestyle='None', mfc='red', mec='red', 
markersize=10 )
+
+##
+# lets zoom in to see the area of interest
+
+ax1.set_xlim(2650, 2735)
+ax1.set_ylim(6705, 6735)
+
+savefig("ellipse")
+show()
+
+


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

--

SF.net SVN: matplotlib: [5328] trunk/matplotlib/doc/users

2008-05-30 Thread mdboom
Revision: 5328
  http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5328&view=rev
Author:   mdboom
Date: 2008-05-30 11:59:44 -0700 (Fri, 30 May 2008)

Log Message:
---
Elaborate on mathtext documentation.

Modified Paths:
--
trunk/matplotlib/doc/users/index.rst
trunk/matplotlib/doc/users/pyplot_tutorial.rst

Added Paths:
---
trunk/matplotlib/doc/users/mathtext.rst

Modified: trunk/matplotlib/doc/users/index.rst
===
--- trunk/matplotlib/doc/users/index.rst2008-05-30 17:34:24 UTC (rev 
5327)
+++ trunk/matplotlib/doc/users/index.rst2008-05-30 18:59:44 UTC (rev 
5328)
@@ -93,6 +93,7 @@
 .. toctree::
 
 pyplot_tutorial.rst
+mathtext.rst
 navigation_toolbar.rst
 customizing.rst
 artists.rst

Added: trunk/matplotlib/doc/users/mathtext.rst
===
--- trunk/matplotlib/doc/users/mathtext.rst (rev 0)
+++ trunk/matplotlib/doc/users/mathtext.rst 2008-05-30 18:59:44 UTC (rev 
5328)
@@ -0,0 +1,225 @@
+Writing mathematical expressions
+
+
+You can use TeX markup in any matplotlib text string; see the
+:mod:`matplotlib.mathtext` module documentation for details.  Note
+that you do not need to have TeX installed, since matplotlib ships its
+own TeX expression parser, layout engine and fonts.  The layout engine
+is a fairly direct adaptation of the layout algorithms in Donald
+Knuth's TeX, so the quality is quite good (matplotlib also provides a
+``usetex`` option for those who do want to call out to TeX to generate
+their text).
+
+Any text element can use math text.  You need to use raw strings
+(preceed the quotes with an ``'r'``), and surround the string text
+with dollar signs, as in TeX.  Regular text and mathtext can be
+interleaved within the same string.  Mathtext can use the Computer
+Modern fonts (from (La)TeX), `STIX `_
+fonts (with are designed to blend well with Times) or a Unicode font
+that you provide.  The mathtext font can be selected with the
+customization variable ``mathtext.fontset``.
+
+Here is a simple example::
+
+# plain text
+plt.title('alpha > beta')
+
+produces "alpha > beta".
+
+Whereas this::
+
+# math text
+plt.title(r'$\alpha > \beta$')
+
+produces ":math:`\alpha > \beta`".
+
+.. TODO: Include a complete list here
+
+Subscripts and superscripts
+---
+
+To make subscripts and superscripts, use the ``'_'`` and ``'^'`` symbols::
+
+r'$\alpha_i > \beta_i$'
+
+.. math::
+
+\alpha_i > \beta_i
+
+Some symbols automatically put their sub/superscripts under and over
+the operator.  For example, to write the sum of :math:`x_i` from :math:`0` to
+:math:`\infty`, you could do::
+
+r'$\sum_{i=0}^\infty x_i$'
+
+.. math::
+
+\sum_{i=0}^\infty x_i
+
+Fractions
+-
+
+Fractions can be created with the ``\frac{}{}`` command::
+
+r'$\frac{3}{4}$'
+
+produces
+
+.. math::
+
+\frac{3}{4}
+
+Fractions can be arbitrarily nested::
+
+r'$\frac{5 - \frac{1}{x}}{4}$'
+
+produces
+
+.. math::
+
+\frac{5 - \frac{1}{x}}{4}
+
+Note that special care needs to be taken to place parentheses and brackets 
around
+fractions.  Doing things the obvious way produces brackets that are
+too small::
+
+r'$(\frac{5 - \frac{1}{x}}{4})$'
+
+.. math ::
+
+(\frac{5 - \frac{1}{x}}{4})
+
+The solution is to precede the bracket with ``\left`` and ``\right``
+to inform the parser that those brackets encompass the entire object::
+
+r'$\left(\frac{5 - \frac{1}{x}}{4}\right)$'
+
+.. math ::
+
+\left(\frac{5 - \frac{1}{x}}{4}\right)
+
+Radicals
+
+
+Radicals can be produced with the ``\sqrt[]{}`` command.  For example:
+
+r'$\sqrt{2}$'
+
+.. math ::
+
+\sqrt{2}
+
+Any base can (optionally) be provided inside square brackets.  Note
+that the base must be a simple expression, and can not contain layout
+commands such as fractions or sub/superscripts.
+
+r'$\sqrt[3]{x}$'
+
+.. math ::
+
+\sqrt[3]{x}
+
+Fonts
+-
+
+The default font is *italics* for mathematical symbols.  To change
+fonts, eg, to write "sin" in a Roman font, enclose the text in a font
+command::
+
+r'$s(t) = \mathcal{A}\mathrm{sin}(2 \omega t)$'
+
+.. math::
+
+s(t) = \mathcal{A}\mathrm{sin}(2 \omega t)
+
+More conveniently, many commonly used function names that are typeset in a
+Roman font have shortcuts.  So the expression above could be written
+as follows::
+
+r'$s(t) = \mathcal{A}\sin(2 \omega t)$'
+
+.. math::
+
+s(t) = \mathcal{A}\sin(2 \omega t)
+
+Here "s" and "t" are variable in italics font (default), "sin" is in
+Roman font, and the amplitude "A" is in calligraphy font.
+
+The choices available with all fonts are:
+
+=== =
+Command Result
+=== =

SF.net SVN: matplotlib: [5329] branches/v0_91_maint

2008-05-30 Thread jdh2358
Revision: 5329
  http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5329&view=rev
Author:   jdh2358
Date: 2008-05-30 12:21:56 -0700 (Fri, 30 May 2008)

Log Message:
---
added support for None for dvipng and removed the sqrt in the hack which I 
think is wrong

Modified Paths:
--
branches/v0_91_maint/lib/matplotlib/rcsetup.py
branches/v0_91_maint/lib/matplotlib/texmanager.py
branches/v0_91_maint/matplotlibrc.template

Modified: branches/v0_91_maint/lib/matplotlib/rcsetup.py
===
--- branches/v0_91_maint/lib/matplotlib/rcsetup.py  2008-05-30 18:59:44 UTC 
(rev 5328)
+++ branches/v0_91_maint/lib/matplotlib/rcsetup.py  2008-05-30 19:21:56 UTC 
(rev 5329)
@@ -42,6 +42,16 @@
 else:
 raise ValueError('Could not convert "%s" to boolean' % b)
 
+def validate_bool_maybe_none(b):
+'Convert b to a boolean or raise'
+if type(b) is str:
+b = b.lower()
+if b=='none': return None
+if b in ('t', 'y', 'yes', 'on', 'true', '1', 1, True): return True
+elif b in ('f', 'n', 'no', 'off', 'false', '0', 0, False): return False
+else:
+raise ValueError('Could not convert "%s" to boolean' % b)
+
 def validate_float(s):
 'convert s to float or raise'
 try: return float(s)
@@ -339,7 +349,7 @@
 'text.usetex' : [False, validate_bool],
 'text.latex.unicode'  : [False, validate_bool],
 'text.latex.preamble' : [[''], validate_stringlist],
-'text.dvipnghack' : [False, validate_bool],
+'text.dvipnghack' : [None, validate_bool_maybe_none],
 'text.fontstyle'  : ['normal', str],
 'text.fontangle'  : ['normal', str],
 'text.fontvariant': ['normal', str],

Modified: branches/v0_91_maint/lib/matplotlib/texmanager.py
===
--- branches/v0_91_maint/lib/matplotlib/texmanager.py   2008-05-30 18:59:44 UTC 
(rev 5328)
+++ branches/v0_91_maint/lib/matplotlib/texmanager.py   2008-05-30 19:21:56 UTC 
(rev 5329)
@@ -334,7 +334,12 @@
 pngfile = self.make_png(tex, fontsize, dpi)
 X = readpng(os.path.join(self.texcache, pngfile))
 
-if self._dvipng_hack_alpha or rcParams['text.dvipnghack']:
+if rcParams['text.dvipnghack'] is not None:
+hack = rcParams['text.dvipnghack']
+else:
+hack = self._dvipng_hack_alpha
+print 'using hack', hack
+if hack:
 # hack the alpha channel
 # dvipng assumed a constant background, whereas we want to
 # overlay these rasters with antialiasing over arbitrary
@@ -356,7 +361,9 @@
 #
 # Since the foreground is black (0) and the background is
 # white (1) this reduces to red = 1-alpha or alpha = 1-red
-alpha = npy.sqrt(1-X[:,:,0])
+#alpha = npy.sqrt(1-X[:,:,0]) # should this be sqrt here?
+alpha = 1-X[:,:,0]
+
 else:
 alpha = X[:,:,-1]
 

Modified: branches/v0_91_maint/matplotlibrc.template
===
--- branches/v0_91_maint/matplotlibrc.template  2008-05-30 18:59:44 UTC (rev 
5328)
+++ branches/v0_91_maint/matplotlibrc.template  2008-05-30 19:21:56 UTC (rev 
5329)
@@ -147,9 +147,14 @@
 # beware of package collisions: color, geometry, 
graphicx,
 # type1cm, textcomp. Adobe Postscript (PSSNFS) 
font packages
 # may also be loaded, depending on your font 
settings
-#text.dvipnghack : False  # some versions of dvipng don't handle
- # alpha channel properly.  Use True to correct 
and flush
- # ~/.matplotlib/tex.cache before testing
+
+#text.dvipnghack : None  # some versions of dvipng don't handle alpha
+ # channel properly.  Use True to correct
+ # and flush ~/.matplotlib/tex.cache
+ # before testing and False to force
+ # correction off.  None will try and
+ # guess based on your dvipng version
+
 #text.markup : 'plain'  # Affects how text, such as titles and labels, 
are
 # interpreted by default.
 # 'plain': As plain, unformatted text


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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matp

SF.net SVN: matplotlib: [5330] trunk/matplotlib/lib/matplotlib/finance.py

2008-05-30 Thread jdh2358
Revision: 5330
  http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5330&view=rev
Author:   jdh2358
Date: 2008-05-30 12:24:37 -0700 (Fri, 30 May 2008)

Log Message:
---
fixed some finance mod bugs

Modified Paths:
--
trunk/matplotlib/lib/matplotlib/finance.py

Modified: trunk/matplotlib/lib/matplotlib/finance.py
===
--- trunk/matplotlib/lib/matplotlib/finance.py  2008-05-30 19:21:56 UTC (rev 
5329)
+++ trunk/matplotlib/lib/matplotlib/finance.py  2008-05-30 19:24:37 UTC (rev 
5330)
@@ -335,7 +335,7 @@
 
 scale = ax.figure.dpi * (1.0/72.0)
 
-tickTransform = Affine2D().scaled(scale, 0.0)
+tickTransform = Affine2D().scale(scale, 0.0)
 
 r,g,b = colorConverter.to_rgb(colorup)
 colorup = r,g,b,1
@@ -411,24 +411,14 @@
 
 # note this code assumes if any value open, close, low, high is
 # missing they all are missing
-right = width/2.0
-left = -width/2.0
+
+delta = width/2.
+barVerts = [ ( (i-delta, open), (i-delta, close), (i+delta, close), 
(i+delta, open) ) for i, open, close in zip(xrange(len(opens)), opens, closes) 
if open != -1 and close!=-1 ]
 
-barVerts = [ ( (left, 0), (left, close-open), (right, close-open), (right, 
0) ) for open, close in zip(opens, closes) if open != -1 and close!=-1 ]
-
 rangeSegments = [ ((i, low), (i, high)) for i, low, high in 
zip(xrange(len(lows)), lows, highs) if low != -1 ]
 
 
 
-offsetsBars = [ (i, open) for i,open in zip(xrange(len(opens)), opens) if 
open != -1 ]
-
-sx = ax.figure.dpi * (1.0/72.0)  # scale for points
-sy = (ax.bbox.ur().y() - ax.bbox.ll().y()) / (ax.viewLim.ur().y() - 
ax.viewLim.ll().y())
-
-barTransform = Affine2D().scaled(sx,sy)
-
-
-
 r,g,b = colorConverter.to_rgb(colorup)
 colorup = r,g,b,alpha
 r,g,b = colorConverter.to_rgb(colordown)
@@ -440,8 +430,6 @@
 
 
 assert(len(barVerts)==len(rangeSegments))
-assert(len(rangeSegments)==len(offsetsBars))
-assert(len(offsetsBars)==len(colors))
 
 useAA = 0,  # use tuple here
 lw = 0.5,   # and here
@@ -457,19 +445,13 @@
edgecolors   = ( (0,0,0,1), ),
antialiaseds = useAA,
linewidths   = lw,
-   offsets  = offsetsBars,
-   transOffset  = ax.transData,
)
-barCollection.set_transform(barTransform)
 
-
-
-
-minpy, maxx = (0, len(rangeSegments))
+minx, maxx = 0, len(rangeSegments)
 miny = min([low for low in lows if low !=-1])
 maxy = max([high for high in highs if high != -1])
 
-corners = (minpy, miny), (maxx, maxy)
+corners = (minx, miny), (maxx, maxy)
 ax.update_datalim(corners)
 ax.autoscale_view()
 
@@ -504,38 +486,17 @@
}
 colors = [colord[openhttp://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins


SF.net SVN: matplotlib: [5331] trunk/matplotlib/doc/faq

2008-05-30 Thread mdboom
Revision: 5331
  http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5331&view=rev
Author:   mdboom
Date: 2008-05-30 12:28:56 -0700 (Fri, 30 May 2008)

Log Message:
---
Adding some FAQs

Modified Paths:
--
trunk/matplotlib/doc/faq/index.rst
trunk/matplotlib/doc/faq/installing_faq.rst

Added Paths:
---
trunk/matplotlib/doc/faq/troubleshooting_faq.rst

Modified: trunk/matplotlib/doc/faq/index.rst
===
--- trunk/matplotlib/doc/faq/index.rst  2008-05-30 19:24:37 UTC (rev 5330)
+++ trunk/matplotlib/doc/faq/index.rst  2008-05-30 19:28:56 UTC (rev 5331)
@@ -12,5 +12,6 @@
 .. toctree::
 
installing_faq.rst
+   troubleshooting_faq.rst
plotting_faq.rst
 

Modified: trunk/matplotlib/doc/faq/installing_faq.rst
===
--- trunk/matplotlib/doc/faq/installing_faq.rst 2008-05-30 19:24:37 UTC (rev 
5330)
+++ trunk/matplotlib/doc/faq/installing_faq.rst 2008-05-30 19:28:56 UTC (rev 
5331)
@@ -1,7 +1,23 @@
-
-Installation FAQ
-
+==
+ Installation FAQ
+==
 
+How do I report a compilation problem?
+==
 
+See :ref:`reporting_problems`.
 
+How do I cleanly rebuild and reinstall everything?
+==
 
+Unfortunately::
+
+python setup.py clean
+
+does not properly clean the build directory, and does nothing to the
+install directory.  To cleanly rebuild:
+
+* delete the ``build`` directory in the source tree 
+* delete ``site-packages/matplotlib`` directory in the Python
+  installation.  The location of ``site-packages`` is
+  platform-specific.

Added: trunk/matplotlib/doc/faq/troubleshooting_faq.rst
===
--- trunk/matplotlib/doc/faq/troubleshooting_faq.rst
(rev 0)
+++ trunk/matplotlib/doc/faq/troubleshooting_faq.rst2008-05-30 19:28:56 UTC 
(rev 5331)
@@ -0,0 +1,45 @@
+===
+Troubleshooting FAQ
+===
+
+.. _reporting_problems:
+
+How do I report a problem?
+==
+
+If you are having a problem with matplotlib, search the mailing
+lists first: There's a good chance someone else has already run into
+your problem.
+
+If not, please provide the following information in your e-mail to the
+mailing list:
+
+  * your operating system
+  * matplotlib version
+  * where you obtained matplotlib (e.g. your Linux distribution's
+packages or the matplotlib Sourceforge site)
+  * any customizations to your ``matplotlibrc`` file
+  * if the problem is reproducible, please try to provide a minimal,
+standalone Python script that demonstrates the problem
+
+If you compiled matplotlib yourself, please also provide 
+
+  * any changes you have made to ``setup.py`` or ``setupext.py``
+  * the output of::
+
+  rm -rf build
+  python setup.py build
+
+The beginning of the build output contains lots of details about your
+platform that are useful for the matplotlib developers to diagnose
+your problem.  
+
+Including this information in your first e-mail to the mailing list
+will save a lot of time.
+
+You will likely get a faster response writing to the mailing list than
+filing a bug in the bug tracker.  Most developers check the bug
+tracker only periodically.  If your problem has been determined to be
+a bug and can not be quickly solved, you may be asked to file a bug in
+the tracker so the issue doesn't get lost.
+


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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins


SF.net SVN: matplotlib: [5332] trunk/matplotlib/doc/users/mathtext.rst

2008-05-30 Thread mdboom
Revision: 5332
  http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5332&view=rev
Author:   mdboom
Date: 2008-05-30 12:29:09 -0700 (Fri, 30 May 2008)

Log Message:
---
Correcting typo

Modified Paths:
--
trunk/matplotlib/doc/users/mathtext.rst

Modified: trunk/matplotlib/doc/users/mathtext.rst
===
--- trunk/matplotlib/doc/users/mathtext.rst 2008-05-30 19:28:56 UTC (rev 
5331)
+++ trunk/matplotlib/doc/users/mathtext.rst 2008-05-30 19:29:09 UTC (rev 
5332)
@@ -202,7 +202,7 @@
 ---
 
 You can also use a large number of the TeX symbols, as in ``\infty``,
-``\leftarrow``, ``\sum``, ``\int``; see :class:`matplotlib.mathtext` for a
+``\leftarrow``, ``\sum``, ``\int``; see :mod:`matplotlib.mathtext` for a
 complete list.
 
 If a particular symbol does not have a name (as is true of many of the


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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins


SF.net SVN: matplotlib: [5333] trunk/matplotlib

2008-05-30 Thread jdh2358
Revision: 5333
  http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5333&view=rev
Author:   jdh2358
Date: 2008-05-30 12:38:42 -0700 (Fri, 30 May 2008)

Log Message:
---
Merged revisions 5312-5313,5329 via svnmerge from 
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v0_91_maint


  r5312 | cmoad | 2008-05-29 15:59:43 -0700 (Thu, 29 May 2008) | 1 line
  
  tagging new version

  r5313 | cmoad | 2008-05-29 20:07:39 -0700 (Thu, 29 May 2008) | 1 line
  
  minor rev bump

  r5329 | jdh2358 | 2008-05-30 12:21:56 -0700 (Fri, 30 May 2008) | 1 line
  
  added support for None for dvipng and removed the sqrt in the hack which I 
think is wrong


Modified Paths:
--
trunk/matplotlib/MIGRATION.txt
trunk/matplotlib/lib/matplotlib/rcsetup.py
trunk/matplotlib/lib/matplotlib/texmanager.py
trunk/matplotlib/matplotlibrc.template

Property Changed:

trunk/matplotlib/


Property changes on: trunk/matplotlib
___
Name: svnmerge-integrated
   - /branches/v0_91_maint:1-5307
   + /branches/v0_91_maint:1-5330

Modified: trunk/matplotlib/MIGRATION.txt
===
--- trunk/matplotlib/MIGRATION.txt  2008-05-30 19:29:09 UTC (rev 5332)
+++ trunk/matplotlib/MIGRATION.txt  2008-05-30 19:38:42 UTC (rev 5333)
@@ -31,7 +31,7 @@
 If you already have a working copy of the trunk, your next "svn up" will
 include the latest transforms changes.  
 
-Before installing, make sure you completely remove the old matplotlib
+IMPORTANT: Before installing, make sure you completely remove the old 
matplotlib
 build and install directories, eg: 
 
 > cd matplotlib

Modified: trunk/matplotlib/lib/matplotlib/rcsetup.py
===
--- trunk/matplotlib/lib/matplotlib/rcsetup.py  2008-05-30 19:29:09 UTC (rev 
5332)
+++ trunk/matplotlib/lib/matplotlib/rcsetup.py  2008-05-30 19:38:42 UTC (rev 
5333)
@@ -43,6 +43,16 @@
 else:
 raise ValueError('Could not convert "%s" to boolean' % b)
 
+def validate_bool_maybe_none(b):
+'Convert b to a boolean or raise'
+if type(b) is str:
+b = b.lower()
+if b=='none': return None
+if b in ('t', 'y', 'yes', 'on', 'true', '1', 1, True): return True
+elif b in ('f', 'n', 'no', 'off', 'false', '0', 0, False): return False
+else:
+raise ValueError('Could not convert "%s" to boolean' % b)
+
 def validate_float(s):
 'convert s to float or raise'
 try: return float(s)
@@ -338,7 +348,7 @@
 'text.usetex' : [False, validate_bool],
 'text.latex.unicode'  : [False, validate_bool],
 'text.latex.preamble' : [[''], validate_stringlist],
-'text.dvipnghack' : [False, validate_bool],
+'text.dvipnghack' : [None, validate_bool_maybe_none],
 'text.fontstyle'  : ['normal', str],
 'text.fontangle'  : ['normal', str],
 'text.fontvariant': ['normal', str],

Modified: trunk/matplotlib/lib/matplotlib/texmanager.py
===
--- trunk/matplotlib/lib/matplotlib/texmanager.py   2008-05-30 19:29:09 UTC 
(rev 5332)
+++ trunk/matplotlib/lib/matplotlib/texmanager.py   2008-05-30 19:38:42 UTC 
(rev 5333)
@@ -366,7 +366,12 @@
 pngfile = self.make_png(tex, fontsize, dpi)
 X = readpng(os.path.join(self.texcache, pngfile))
 
-if self._dvipng_hack_alpha or rcParams['text.dvipnghack']:
+if rcParams['text.dvipnghack'] is not None:
+hack = rcParams['text.dvipnghack']
+else:
+hack = self._dvipng_hack_alpha
+print 'using hack', hack
+if hack:
 # hack the alpha channel
 # dvipng assumed a constant background, whereas we want to
 # overlay these rasters with antialiasing over arbitrary
@@ -388,7 +393,8 @@
 #
 # Since the foreground is black (0) and the background is
 # white (1) this reduces to red = 1-alpha or alpha = 1-red
-alpha = np.sqrt(1-X[:,:,0])
+#alpha = npy.sqrt(1-X[:,:,0]) # should this be sqrt here?
+alpha = 1-X[:,:,0]
 else:
 alpha = X[:,:,-1]
 

Modified: trunk/matplotlib/matplotlibrc.template
===
--- trunk/matplotlib/matplotlibrc.template  2008-05-30 19:29:09 UTC (rev 
5332)
+++ trunk/matplotlib/matplotlibrc.template  2008-05-30 19:38:42 UTC (rev 
5333)
@@ -147,9 +147,14 @@
 # beware of package collisions: color, geometry, 
graphicx,
 # type1cm, textcomp. Adobe Postscript (PSSNFS) 
font packages
 # may also be loaded, depending on your fo

SF.net SVN: matplotlib: [5334] branches/v0_91_maint/lib/matplotlib/ texmanager.py

2008-05-30 Thread jdh2358
Revision: 5334
  http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5334&view=rev
Author:   jdh2358
Date: 2008-05-30 12:38:58 -0700 (Fri, 30 May 2008)

Log Message:
---
removed debug print statement

Modified Paths:
--
branches/v0_91_maint/lib/matplotlib/texmanager.py

Modified: branches/v0_91_maint/lib/matplotlib/texmanager.py
===
--- branches/v0_91_maint/lib/matplotlib/texmanager.py   2008-05-30 19:38:42 UTC 
(rev 5333)
+++ branches/v0_91_maint/lib/matplotlib/texmanager.py   2008-05-30 19:38:58 UTC 
(rev 5334)
@@ -338,7 +338,7 @@
 hack = rcParams['text.dvipnghack']
 else:
 hack = self._dvipng_hack_alpha
-print 'using hack', hack
+
 if hack:
 # hack the alpha channel
 # dvipng assumed a constant background, whereas we want to


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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins


SF.net SVN: matplotlib: [5335] trunk/matplotlib

2008-05-30 Thread jdh2358
Revision: 5335
  http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5335&view=rev
Author:   jdh2358
Date: 2008-05-30 12:39:37 -0700 (Fri, 30 May 2008)

Log Message:
---
Merged revisions 5334 via svnmerge from 
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v0_91_maint


  r5334 | jdh2358 | 2008-05-30 12:38:58 -0700 (Fri, 30 May 2008) | 1 line
  
  removed debug print statement


Modified Paths:
--
trunk/matplotlib/lib/matplotlib/texmanager.py

Property Changed:

trunk/matplotlib/


Property changes on: trunk/matplotlib
___
Name: svnmerge-integrated
   - /branches/v0_91_maint:1-5330
   + /branches/v0_91_maint:1-5334

Modified: trunk/matplotlib/lib/matplotlib/texmanager.py
===
--- trunk/matplotlib/lib/matplotlib/texmanager.py   2008-05-30 19:38:58 UTC 
(rev 5334)
+++ trunk/matplotlib/lib/matplotlib/texmanager.py   2008-05-30 19:39:37 UTC 
(rev 5335)
@@ -370,7 +370,7 @@
 hack = rcParams['text.dvipnghack']
 else:
 hack = self._dvipng_hack_alpha
-print 'using hack', hack
+
 if hack:
 # hack the alpha channel
 # dvipng assumed a constant background, whereas we want to


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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins


SF.net SVN: matplotlib: [5336] trunk/matplotlib/doc/faq

2008-05-30 Thread jdh2358
Revision: 5336
  http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5336&view=rev
Author:   jdh2358
Date: 2008-05-30 13:05:57 -0700 (Fri, 30 May 2008)

Log Message:
---
faq updates

Modified Paths:
--
trunk/matplotlib/doc/faq/index.rst
trunk/matplotlib/doc/faq/installing_faq.rst
trunk/matplotlib/doc/faq/troubleshooting_faq.rst

Added Paths:
---
trunk/matplotlib/doc/faq/howto_faq.rst

Removed Paths:
-
trunk/matplotlib/doc/faq/plotting_faq.rst

Copied: trunk/matplotlib/doc/faq/howto_faq.rst (from rev 5335, 
trunk/matplotlib/doc/faq/plotting_faq.rst)
===
--- trunk/matplotlib/doc/faq/howto_faq.rst  (rev 0)
+++ trunk/matplotlib/doc/faq/howto_faq.rst  2008-05-30 20:05:57 UTC (rev 
5336)
@@ -0,0 +1,61 @@
+*
+HOWTO
+*
+
+How do I use matplotlib in a web application server?
+
+
+Many users report initial problems trying to use maptlotlib in web
+application servers, because by default matplotlib ships configured to
+work with a graphical user interface which may require an X11
+connection.  Since many barebones application servers do not have X11
+enabled, you may get errors if you don't configure matplotlib for use
+in these environments.  Most importantly, you need to decide what
+kinds of images you want to generate (PNG, PDF, SVG) and configure the
+appropriate default backend.  For 99% of users, this will be the Agg
+backend, which uses the C++ `antigrain `_:
 
-  * your operating system
-  * matplotlib version
+  * your operating system; on Linux/UNIX post the output of ``uname -a``

SF.net SVN: matplotlib: [5337] trunk/py4science/examples

2008-05-30 Thread jswhit
Revision: 5337
  http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5337&view=rev
Author:   jswhit
Date: 2008-05-30 13:25:57 -0700 (Fri, 30 May 2008)

Log Message:
---
convert to plt/np namespace, fix Basemap import for version 0.99 (mpl_toolkits)

Modified Paths:
--
trunk/py4science/examples/basemap1.py
trunk/py4science/examples/basemap2.py
trunk/py4science/examples/basemap3.py
trunk/py4science/examples/basemap4.py
trunk/py4science/examples/basemap5.py

Modified: trunk/py4science/examples/basemap1.py
===
--- trunk/py4science/examples/basemap1.py   2008-05-30 20:05:57 UTC (rev 
5336)
+++ trunk/py4science/examples/basemap1.py   2008-05-30 20:25:57 UTC (rev 
5337)
@@ -1,5 +1,5 @@
-import pylab, numpy
-from matplotlib.toolkits.basemap import Basemap
+from mpl_toolkits.basemap import Basemap
+import matplotlib.pyplot as plt
 # create map by specifying lat/lon values at corners.
 resolution = 'l'; projection = 'lcc'
 lat_0 = 60; lon_0 = -50
@@ -18,5 +18,5 @@
 # draw states and countries.
 m.drawcountries()
 m.drawstates()
-pylab.title('map region specified using corner lat/lon values')
-pylab.show()
+plt.title('map region specified using corner lat/lon values')
+plt.show()

Modified: trunk/py4science/examples/basemap2.py
===
--- trunk/py4science/examples/basemap2.py   2008-05-30 20:05:57 UTC (rev 
5336)
+++ trunk/py4science/examples/basemap2.py   2008-05-30 20:25:57 UTC (rev 
5337)
@@ -1,5 +1,5 @@
-import pylab, numpy
-from matplotlib.toolkits.basemap import Basemap
+from mpl_toolkits.basemap import Basemap
+import matplotlib.pyplot as plt
 # create map by specifying width and height in km.
 resolution = 'l'; projection = 'lcc'
 lon_0 = -50; lat_0 = 60
@@ -12,5 +12,5 @@
 m.fillcontinents(color='coral',lake_color='aqua')
 m.drawcountries()
 m.drawstates()
-pylab.title('map region specified using width and height')
-pylab.show()
+plt.title('map region specified using width and height')
+plt.show()

Modified: trunk/py4science/examples/basemap3.py
===
--- trunk/py4science/examples/basemap3.py   2008-05-30 20:05:57 UTC (rev 
5336)
+++ trunk/py4science/examples/basemap3.py   2008-05-30 20:25:57 UTC (rev 
5337)
@@ -1,5 +1,5 @@
-import pylab, numpy
-from matplotlib.toolkits.basemap import Basemap
+from mpl_toolkits.basemap import Basemap
+import matplotlib.pyplot as plt
 # create map by specifying width and height in km.
 resolution = 'l'; projection = 'lcc'
 lon_0 = -50; lat_0 = 60
@@ -23,14 +23,14 @@
 m.drawgreatcircle(nylon,nylat,lonlon,lonlat,linewidth=2,color='k')
 # put the names of the cities to the left of each dot, offset
 # by a little. Use a bold font.
-pylab.text(ny_x-10,ny_y+10,'New York',fontsize=12,\
+plt.text(ny_x-10,ny_y+10,'New York',fontsize=12,\
color='k',horizontalalignment='right',fontweight='bold')
-pylab.text(lon_x-10,lon_y+10,'London',fontsize=12,\
+plt.text(lon_x-10,lon_y+10,'London',fontsize=12,\
color='k',horizontalalignment='right',fontweight='bold')
 m.drawcoastlines(linewidth=0.5)
 m.drawmapboundary(fill_color='aqua')
 m.fillcontinents(color='coral',lake_color='aqua')
 m.drawcountries()
 m.drawstates()
-pylab.title('NY to London Great Circle')
-pylab.show()
+plt.title('NY to London Great Circle')
+plt.show()

Modified: trunk/py4science/examples/basemap4.py
===
--- trunk/py4science/examples/basemap4.py   2008-05-30 20:05:57 UTC (rev 
5336)
+++ trunk/py4science/examples/basemap4.py   2008-05-30 20:25:57 UTC (rev 
5337)
@@ -1,5 +1,6 @@
-import pylab, numpy
-from matplotlib.toolkits.basemap import Basemap
+from mpl_toolkits.basemap import Basemap
+import matplotlib.pyplot as plt
+import numpy as np
 # create map by specifying width and height in km.
 resolution = 'l'
 lon_0 = -50
@@ -16,9 +17,9 @@
 m.drawstates()
 # label meridians where they intersect the left, right and bottom
 # of the plot frame.
-m.drawmeridians(numpy.arange(-180,181,20),labels=[1,1,0,1])
+m.drawmeridians(np.arange(-180,181,20),labels=[1,1,0,1])
 # label parallels where they intersect the  left, right and top
 # of the plot frame.
-m.drawparallels(numpy.arange(-80,81,20),labels=[1,1,1,0])
-pylab.title('labelled meridians and parallels',y=1.075)
-pylab.show()
+m.drawparallels(np.arange(-80,81,20),labels=[1,1,1,0])
+plt.title('labelled meridians and parallels',y=1.075)
+plt.show()

Modified: trunk/py4science/examples/basemap5.py
===
--- trunk/py4science/examples/basemap5.py   2008-05-30 20:05:57 UTC (rev 
5336)
+++ trunk/py4science/examples/basemap5.py   2008-05-30 20:25:57 UTC (rev 
5337)
@@ -1,5 +1,6 @@
-from matplotlib.toolkits.basemap import Basemap, NetCDF

SF.net SVN: matplotlib: [5338] trunk/toolkits/basemap

2008-05-30 Thread jswhit
Revision: 5338
  http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5338&view=rev
Author:   jswhit
Date: 2008-05-30 13:55:24 -0700 (Fri, 30 May 2008)

Log Message:
---
added basemap workbook chapter pdf from py4science course.

Modified Paths:
--
trunk/toolkits/basemap/Changelog
trunk/toolkits/basemap/MANIFEST.in

Added Paths:
---
trunk/toolkits/basemap/basemap_workbook.pdf

Modified: trunk/toolkits/basemap/Changelog
===
--- trunk/toolkits/basemap/Changelog2008-05-30 20:25:57 UTC (rev 5337)
+++ trunk/toolkits/basemap/Changelog2008-05-30 20:55:24 UTC (rev 5338)
@@ -1,4 +1,4 @@
-version 0.99 (svn revision 5316)
+version 0.99 (svn revision 5338)
* updated pyproj to 1.8.5.
* fixed bug in NetCDFFile creating masked arrays when both
  _FillValue and missing_value exist.

Modified: trunk/toolkits/basemap/MANIFEST.in
===
--- trunk/toolkits/basemap/MANIFEST.in  2008-05-30 20:25:57 UTC (rev 5337)
+++ trunk/toolkits/basemap/MANIFEST.in  2008-05-30 20:55:24 UTC (rev 5338)
@@ -4,6 +4,7 @@
 include LICENSE_proj4
 include LICENSE_pyshapelib
 include LICENSE_data
+include basemap_workbook.pdf
 include API_CHANGES
 include KNOWN_BUGS
 include Changelog

Added: trunk/toolkits/basemap/basemap_workbook.pdf
===
(Binary files differ)


Property changes on: trunk/toolkits/basemap/basemap_workbook.pdf
___
Name: svn:mime-type
   + application/octet-stream


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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins