--- a/trunk/htdocs/matplotlib.mathtext.html.template +++ b/trunk/htdocs/matplotlib.mathtext.html.template @@ -148,8 +148,7 @@ <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> <td width="100%"><dl> -<dt><font face="helvetica, arial"><a href="matplotlib.mathtext.html#DummyFonts">DummyFonts</a> -</font></dt><dt><font face="helvetica, arial"><a href="matplotlib.mathtext.html#Element">Element</a> +<dt><font face="helvetica, arial"><a href="matplotlib.mathtext.html#Element">Element</a> </font></dt><dd> <dl> <dt><font face="helvetica, arial"><a href="matplotlib.mathtext.html#GroupElement">GroupElement</a> @@ -166,33 +165,56 @@ </font></dt><dd> <dl> <dt><font face="helvetica, arial"><a href="matplotlib.mathtext.html#BakomaPSFonts">BakomaPSFonts</a> -</font></dt><dt><font face="helvetica, arial"><a href="matplotlib.mathtext.html#BakomaTrueTypeFonts">BakomaTrueTypeFonts</a> -</font></dt><dt><font face="helvetica, arial"><a href="matplotlib.mathtext.html#TrueTypeFonts">TrueTypeFonts</a> +</font></dt><dd> +<dl> +<dt><font face="helvetica, arial"><a href="matplotlib.mathtext.html#BakomaPDFFonts">BakomaPDFFonts</a> </font></dt></dl> </dd> +<dt><font face="helvetica, arial"><a href="matplotlib.mathtext.html#BakomaTrueTypeFonts">BakomaTrueTypeFonts</a> +</font></dt><dt><font face="helvetica, arial"><a href="matplotlib.mathtext.html#DummyFonts">DummyFonts</a> +</font></dt><dt><font face="helvetica, arial"><a href="matplotlib.mathtext.html#StandardPSFonts">StandardPSFonts</a> +</font></dt><dt><font face="helvetica, arial"><a href="matplotlib.mathtext.html#UnicodeFonts">UnicodeFonts</a> +</font></dt><dd> +<dl> +<dt><font face="helvetica, arial"><a href="matplotlib.mathtext.html#BakomaUnicodeFonts">BakomaUnicodeFonts</a> +</font></dt><dt><font face="helvetica, arial"><a href="matplotlib.mathtext.html#CMUUnicodeFonts">CMUUnicodeFonts</a> +</font></dt><dt><font face="helvetica, arial"><a href="matplotlib.mathtext.html#MyUnicodeFonts">MyUnicodeFonts</a> +</font></dt></dl> +</dd> +</dl> +</dd> <dt><font face="helvetica, arial"><a href="matplotlib.mathtext.html#Handler">Handler</a> +</font></dt><dt><font face="helvetica, arial"><a href="matplotlib.mathtext.html#math_parse_s_ft2font_common">math_parse_s_ft2font_common</a> </font></dt></dl> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> -<font color="#000000" face="helvetica, arial"><a name="BakomaPSFonts">class <strong>BakomaPSFonts</strong></a>(<a href="matplotlib.mathtext.html#Fonts">Fonts</a>)</font></td></tr> - -<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> -<td colspan=2><tt>Use the Bakoma postscript fonts for rendering to backend_ps<br> </tt></td></tr> -<tr><td> </td> -<td width="100%">Methods defined here:<br> -<dl><dt><a name="BakomaPSFonts-__init__"><strong>__init__</strong></a>(self)</dt></dl> - -<dl><dt><a name="BakomaPSFonts-get_metrics"><strong>get_metrics</strong></a>(self, font, sym, fontsize, dpi)</dt></dl> - -<dl><dt><a name="BakomaPSFonts-render"><strong>render</strong></a>(self, ox, oy, font, sym, fontsize, dpi)</dt></dl> - -<dl><dt><a name="BakomaPSFonts-set_canvas_size"><strong>set_canvas_size</strong></a>(self, w, h, pswriter)</dt><dd><tt>Dimension the drawing canvas; may be a noop</tt></dd></dl> - -<hr> -Data and other attributes defined here:<br> -<dl><dt><strong>basepath</strong> = '/usr/share/matplotlib'</dl> +<font color="#000000" face="helvetica, arial"><a name="BakomaPDFFonts">class <strong>BakomaPDFFonts</strong></a>(<a href="matplotlib.mathtext.html#BakomaPSFonts">BakomaPSFonts</a>)</font></td></tr> + +<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> +<td colspan=2><tt>Hack of <a href="#BakomaPSFonts">BakomaPSFonts</a> for PDF support.<br> </tt></td></tr> +<tr><td> </td> +<td width="100%"><dl><dt>Method resolution order:</dt> +<dd><a href="matplotlib.mathtext.html#BakomaPDFFonts">BakomaPDFFonts</a></dd> +<dd><a href="matplotlib.mathtext.html#BakomaPSFonts">BakomaPSFonts</a></dd> +<dd><a href="matplotlib.mathtext.html#Fonts">Fonts</a></dd> +</dl> +<hr> +Methods defined here:<br> +<dl><dt><a name="BakomaPDFFonts-render"><strong>render</strong></a>(self, ox, oy, font, sym, fontsize, dpi)</dt></dl> + +<hr> +Methods inherited from <a href="matplotlib.mathtext.html#BakomaPSFonts">BakomaPSFonts</a>:<br> +<dl><dt><a name="BakomaPDFFonts-__init__"><strong>__init__</strong></a>(self)</dt></dl> + +<dl><dt><a name="BakomaPDFFonts-get_metrics"><strong>get_metrics</strong></a>(self, font, sym, fontsize, dpi)</dt></dl> + +<dl><dt><a name="BakomaPDFFonts-set_canvas_size"><strong>set_canvas_size</strong></a>(self, w, h, pswriter)</dt><dd><tt>Dimension the drawing canvas; may be a noop</tt></dd></dl> + +<hr> +Data and other attributes inherited from <a href="matplotlib.mathtext.html#BakomaPSFonts">BakomaPSFonts</a>:<br> +<dl><dt><strong>basepath</strong> = '/usr/lib/python2.4/site-packages/matplotlib/mpl-data'</dl> <dl><dt><strong>fnames</strong> = ('cmmi10', 'cmsy10', 'cmex10', 'cmtt10', 'cmr10')</dl> @@ -200,9 +222,9 @@ <hr> Methods inherited from <a href="matplotlib.mathtext.html#Fonts">Fonts</a>:<br> -<dl><dt><a name="BakomaPSFonts-get_kern"><strong>get_kern</strong></a>(self, font, symleft, symright, fontsize, dpi)</dt><dd><tt>Get the kerning distance for font between symleft and symright.<br> - <br> -font is one of tt, it, rm, cal or None<br> +<dl><dt><a name="BakomaPDFFonts-get_kern"><strong>get_kern</strong></a>(self, facename, symleft, symright, fontsize, dpi)</dt><dd><tt>Get the kerning distance for font between symleft and symright.<br> + <br> +facename is one of tt, it, rm, cal or None<br> <br> sym is a single symbol(alphanum, punct) or a special symbol<br> like \sigma.</tt></dd></dl> @@ -211,21 +233,49 @@ <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> -<font color="#000000" face="helvetica, arial"><a name="BakomaTrueTypeFonts">class <strong>BakomaTrueTypeFonts</strong></a>(<a href="matplotlib.mathtext.html#Fonts">Fonts</a>)</font></td></tr> - -<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> -<td colspan=2><tt>Use the Bakoma true type fonts for rendering<br> </tt></td></tr> -<tr><td> </td> -<td width="100%">Methods defined here:<br> -<dl><dt><a name="BakomaTrueTypeFonts-__init__"><strong>__init__</strong></a>(self, useSVG<font color="#909090">=False</font>)</dt></dl> - -<dl><dt><a name="BakomaTrueTypeFonts-get_kern"><strong>get_kern</strong></a>(self, font, symleft, symright, fontsize, dpi)</dt><dd><tt>Get the kerning distance for font between symleft and symright.<br> - <br> -font is one of tt, it, rm, cal or None<br> +<font color="#000000" face="helvetica, arial"><a name="BakomaPSFonts">class <strong>BakomaPSFonts</strong></a>(<a href="matplotlib.mathtext.html#Fonts">Fonts</a>)</font></td></tr> + +<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> +<td colspan=2><tt>Use the Bakoma postscript fonts for rendering to backend_ps<br> </tt></td></tr> +<tr><td> </td> +<td width="100%">Methods defined here:<br> +<dl><dt><a name="BakomaPSFonts-__init__"><strong>__init__</strong></a>(self)</dt></dl> + +<dl><dt><a name="BakomaPSFonts-get_metrics"><strong>get_metrics</strong></a>(self, font, sym, fontsize, dpi)</dt></dl> + +<dl><dt><a name="BakomaPSFonts-render"><strong>render</strong></a>(self, ox, oy, font, sym, fontsize, dpi)</dt></dl> + +<dl><dt><a name="BakomaPSFonts-set_canvas_size"><strong>set_canvas_size</strong></a>(self, w, h, pswriter)</dt><dd><tt>Dimension the drawing canvas; may be a noop</tt></dd></dl> + +<hr> +Data and other attributes defined here:<br> +<dl><dt><strong>basepath</strong> = '/usr/lib/python2.4/site-packages/matplotlib/mpl-data'</dl> + +<dl><dt><strong>fnames</strong> = ('cmmi10', 'cmsy10', 'cmex10', 'cmtt10', 'cmr10')</dl> + +<dl><dt><strong>fontmap</strong> = {None: 'cmmi10', 'cal': 'cmsy10', 'it': 'cmmi10', 'rm': 'cmr10', 'tt': 'cmtt10'}</dl> + +<hr> +Methods inherited from <a href="matplotlib.mathtext.html#Fonts">Fonts</a>:<br> +<dl><dt><a name="BakomaPSFonts-get_kern"><strong>get_kern</strong></a>(self, facename, symleft, symright, fontsize, dpi)</dt><dd><tt>Get the kerning distance for font between symleft and symright.<br> + <br> +facename is one of tt, it, rm, cal or None<br> <br> sym is a single symbol(alphanum, punct) or a special symbol<br> like \sigma.</tt></dd></dl> +</td></tr></table> <p> +<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> +<tr bgcolor="#ffc8d8"> +<td colspan=3 valign=bottom> <br> +<font color="#000000" face="helvetica, arial"><a name="BakomaTrueTypeFonts">class <strong>BakomaTrueTypeFonts</strong></a>(<a href="matplotlib.mathtext.html#Fonts">Fonts</a>)</font></td></tr> + +<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> +<td colspan=2><tt>Use the Bakoma true type fonts for rendering<br> </tt></td></tr> +<tr><td> </td> +<td width="100%">Methods defined here:<br> +<dl><dt><a name="BakomaTrueTypeFonts-__init__"><strong>__init__</strong></a>(self, useSVG<font color="#909090">=False</font>)</dt></dl> + <dl><dt><a name="BakomaTrueTypeFonts-get_metrics"><strong>get_metrics</strong></a>(self, font, sym, fontsize, dpi)</dt></dl> <dl><dt><a name="BakomaTrueTypeFonts-render"><strong>render</strong></a>(self, ox, oy, font, sym, fontsize, dpi)</dt></dl> @@ -234,23 +284,118 @@ <hr> Data and other attributes defined here:<br> -<dl><dt><strong>basepath</strong> = '/usr/share/matplotlib'</dl> +<dl><dt><strong>basepath</strong> = '/usr/lib/python2.4/site-packages/matplotlib/mpl-data'</dl> <dl><dt><strong>fnames</strong> = ('cmmi10', 'cmsy10', 'cmex10', 'cmtt10', 'cmr10')</dl> <dl><dt><strong>fontmap</strong> = {None: 'cmmi10', 'cal': 'cmsy10', 'it': 'cmmi10', 'rm': 'cmr10', 'tt': 'cmtt10'}</dl> -</td></tr></table> <p> -<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> -<tr bgcolor="#ffc8d8"> -<td colspan=3 valign=bottom> <br> -<font color="#000000" face="helvetica, arial"><a name="DummyFonts">class <strong>DummyFonts</strong></a></font></td></tr> +<hr> +Methods inherited from <a href="matplotlib.mathtext.html#Fonts">Fonts</a>:<br> +<dl><dt><a name="BakomaTrueTypeFonts-get_kern"><strong>get_kern</strong></a>(self, facename, symleft, symright, fontsize, dpi)</dt><dd><tt>Get the kerning distance for font between symleft and symright.<br> + <br> +facename is one of tt, it, rm, cal or None<br> + <br> +sym is a single symbol(alphanum, punct) or a special symbol<br> +like \sigma.</tt></dd></dl> + +</td></tr></table> <p> +<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> +<tr bgcolor="#ffc8d8"> +<td colspan=3 valign=bottom> <br> +<font color="#000000" face="helvetica, arial"><a name="BakomaUnicodeFonts">class <strong>BakomaUnicodeFonts</strong></a>(<a href="matplotlib.mathtext.html#UnicodeFonts">UnicodeFonts</a>)</font></td></tr> + +<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> +<td colspan=2><tt>A class that simulates Unicode support in the BaKoMa fonts<br> </tt></td></tr> +<tr><td> </td> +<td width="100%"><dl><dt>Method resolution order:</dt> +<dd><a href="matplotlib.mathtext.html#BakomaUnicodeFonts">BakomaUnicodeFonts</a></dd> +<dd><a href="matplotlib.mathtext.html#UnicodeFonts">UnicodeFonts</a></dd> +<dd><a href="matplotlib.mathtext.html#Fonts">Fonts</a></dd> +</dl> +<hr> +Data and other attributes defined here:<br> +<dl><dt><strong>filenamesd</strong> = {None: 'cmmi10.ttf', 'cal': 'cmsy10.ttf', 'it': 'cmmi10.ttf', 'rm': 'cmr10.ttf', 'tt': 'cmtt10.ttf'}</dl> + +<hr> +Methods inherited from <a href="matplotlib.mathtext.html#UnicodeFonts">UnicodeFonts</a>:<br> +<dl><dt><a name="BakomaUnicodeFonts-__init__"><strong>__init__</strong></a>(self, output<font color="#909090">='Agg'</font>)</dt><dd><tt># The path to the dir with the fontfiles</tt></dd></dl> + +<dl><dt><a name="BakomaUnicodeFonts-get_metrics"><strong>get_metrics</strong></a>(self, facename, symbol, fontsize, dpi)</dt></dl> + +<dl><dt><a name="BakomaUnicodeFonts-render"><strong>render</strong></a>(self, ox, oy, facename, symbol, fontsize, dpi)</dt></dl> + +<dl><dt><a name="BakomaUnicodeFonts-set_canvas_size"><strong>set_canvas_size</strong></a>(self, w, h, pswriter<font color="#909090">=None</font>)</dt><dd><tt>Dimension the drawing canvas; may be a noop</tt></dd></dl> + +<hr> +Methods inherited from <a href="matplotlib.mathtext.html#Fonts">Fonts</a>:<br> +<dl><dt><a name="BakomaUnicodeFonts-get_kern"><strong>get_kern</strong></a>(self, facename, symleft, symright, fontsize, dpi)</dt><dd><tt>Get the kerning distance for font between symleft and symright.<br> + <br> +facename is one of tt, it, rm, cal or None<br> + <br> +sym is a single symbol(alphanum, punct) or a special symbol<br> +like \sigma.</tt></dd></dl> + +</td></tr></table> <p> +<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> +<tr bgcolor="#ffc8d8"> +<td colspan=3 valign=bottom> <br> +<font color="#000000" face="helvetica, arial"><a name="CMUUnicodeFonts">class <strong>CMUUnicodeFonts</strong></a>(<a href="matplotlib.mathtext.html#UnicodeFonts">UnicodeFonts</a>)</font></td></tr> + +<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> +<td colspan=2><tt>A class representing Computer Modern Unicode <a href="#Fonts">Fonts</a>, made by<br> +Andrey V. Panov<br> +panov /at/ canopus. iacp. dvo. ru<br> +They are distributed under the X11 License.<br> </tt></td></tr> +<tr><td> </td> +<td width="100%"><dl><dt>Method resolution order:</dt> +<dd><a href="matplotlib.mathtext.html#CMUUnicodeFonts">CMUUnicodeFonts</a></dd> +<dd><a href="matplotlib.mathtext.html#UnicodeFonts">UnicodeFonts</a></dd> +<dd><a href="matplotlib.mathtext.html#Fonts">Fonts</a></dd> +</dl> +<hr> +Methods inherited from <a href="matplotlib.mathtext.html#UnicodeFonts">UnicodeFonts</a>:<br> +<dl><dt><a name="CMUUnicodeFonts-__init__"><strong>__init__</strong></a>(self, output<font color="#909090">='Agg'</font>)</dt><dd><tt># The path to the dir with the fontfiles</tt></dd></dl> + +<dl><dt><a name="CMUUnicodeFonts-get_metrics"><strong>get_metrics</strong></a>(self, facename, symbol, fontsize, dpi)</dt></dl> + +<dl><dt><a name="CMUUnicodeFonts-render"><strong>render</strong></a>(self, ox, oy, facename, symbol, fontsize, dpi)</dt></dl> + +<dl><dt><a name="CMUUnicodeFonts-set_canvas_size"><strong>set_canvas_size</strong></a>(self, w, h, pswriter<font color="#909090">=None</font>)</dt><dd><tt>Dimension the drawing canvas; may be a noop</tt></dd></dl> + +<hr> +Methods inherited from <a href="matplotlib.mathtext.html#Fonts">Fonts</a>:<br> +<dl><dt><a name="CMUUnicodeFonts-get_kern"><strong>get_kern</strong></a>(self, facename, symleft, symright, fontsize, dpi)</dt><dd><tt>Get the kerning distance for font between symleft and symright.<br> + <br> +facename is one of tt, it, rm, cal or None<br> + <br> +sym is a single symbol(alphanum, punct) or a special symbol<br> +like \sigma.</tt></dd></dl> + +</td></tr></table> <p> +<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> +<tr bgcolor="#ffc8d8"> +<td colspan=3 valign=bottom> <br> +<font color="#000000" face="helvetica, arial"><a name="DummyFonts">class <strong>DummyFonts</strong></a>(<a href="matplotlib.mathtext.html#Fonts">Fonts</a>)</font></td></tr> <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> <td colspan=2><tt>dummy class for debugging parser<br> </tt></td></tr> <tr><td> </td> <td width="100%">Methods defined here:<br> <dl><dt><a name="DummyFonts-get_metrics"><strong>get_metrics</strong></a>(self, font, sym, fontsize, dpi)</dt></dl> + +<hr> +Methods inherited from <a href="matplotlib.mathtext.html#Fonts">Fonts</a>:<br> +<dl><dt><a name="DummyFonts-get_kern"><strong>get_kern</strong></a>(self, facename, symleft, symright, fontsize, dpi)</dt><dd><tt>Get the kerning distance for font between symleft and symright.<br> + <br> +facename is one of tt, it, rm, cal or None<br> + <br> +sym is a single symbol(alphanum, punct) or a special symbol<br> +like \sigma.</tt></dd></dl> + +<dl><dt><a name="DummyFonts-render"><strong>render</strong></a>(self, ox, oy, facename, sym, fontsize, dpi)</dt></dl> + +<dl><dt><a name="DummyFonts-set_canvas_size"><strong>set_canvas_size</strong></a>(self, w, h)</dt><dd><tt>Dimension the drawing canvas; may be a noop</tt></dd></dl> </td></tr></table> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> @@ -389,14 +534,14 @@ return the character metrics as well as do the drawing<br> </tt></td></tr> <tr><td> </td> <td width="100%">Methods defined here:<br> -<dl><dt><a name="Fonts-get_kern"><strong>get_kern</strong></a>(self, font, symleft, symright, fontsize, dpi)</dt><dd><tt>Get the kerning distance for font between symleft and symright.<br> - <br> -font is one of tt, it, rm, cal or None<br> +<dl><dt><a name="Fonts-get_kern"><strong>get_kern</strong></a>(self, facename, symleft, symright, fontsize, dpi)</dt><dd><tt>Get the kerning distance for font between symleft and symright.<br> + <br> +facename is one of tt, it, rm, cal or None<br> <br> sym is a single symbol(alphanum, punct) or a special symbol<br> like \sigma.</tt></dd></dl> -<dl><dt><a name="Fonts-get_metrics"><strong>get_metrics</strong></a>(self, font, sym, fontsize, dpi)</dt><dd><tt>font is one of tt, it, rm, cal or None<br> +<dl><dt><a name="Fonts-get_metrics"><strong>get_metrics</strong></a>(self, facename, sym, fontsize, dpi)</dt><dd><tt>facename is one of tt, it, rm, cal or None<br> <br> sym is a single symbol(alphanum, punct) or a special symbol<br> like \sigma.<br> @@ -412,7 +557,7 @@ width<br> xmin, xmax, ymin, ymax - the ink rectangle of the glyph</tt></dd></dl> -<dl><dt><a name="Fonts-render"><strong>render</strong></a>(self, ox, oy, font, sym, fontsize, dpi)</dt></dl> +<dl><dt><a name="Fonts-render"><strong>render</strong></a>(self, ox, oy, facename, sym, fontsize, dpi)</dt></dl> <dl><dt><a name="Fonts-set_canvas_size"><strong>set_canvas_size</strong></a>(self, w, h)</dt><dd><tt>Dimension the drawing canvas; may be a noop</tt></dd></dl> @@ -516,6 +661,39 @@ <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> +<font color="#000000" face="helvetica, arial"><a name="MyUnicodeFonts">class <strong>MyUnicodeFonts</strong></a>(<a href="matplotlib.mathtext.html#UnicodeFonts">UnicodeFonts</a>)</font></td></tr> + +<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> +<td width="100%"><dl><dt>Method resolution order:</dt> +<dd><a href="matplotlib.mathtext.html#MyUnicodeFonts">MyUnicodeFonts</a></dd> +<dd><a href="matplotlib.mathtext.html#UnicodeFonts">UnicodeFonts</a></dd> +<dd><a href="matplotlib.mathtext.html#Fonts">Fonts</a></dd> +</dl> +<hr> +Methods defined here:<br> +<dl><dt><a name="MyUnicodeFonts-__init__"><strong>__init__</strong></a>(self)</dt></dl> + +<hr> +Methods inherited from <a href="matplotlib.mathtext.html#UnicodeFonts">UnicodeFonts</a>:<br> +<dl><dt><a name="MyUnicodeFonts-get_metrics"><strong>get_metrics</strong></a>(self, facename, symbol, fontsize, dpi)</dt></dl> + +<dl><dt><a name="MyUnicodeFonts-render"><strong>render</strong></a>(self, ox, oy, facename, symbol, fontsize, dpi)</dt></dl> + +<dl><dt><a name="MyUnicodeFonts-set_canvas_size"><strong>set_canvas_size</strong></a>(self, w, h, pswriter<font color="#909090">=None</font>)</dt><dd><tt>Dimension the drawing canvas; may be a noop</tt></dd></dl> + +<hr> +Methods inherited from <a href="matplotlib.mathtext.html#Fonts">Fonts</a>:<br> +<dl><dt><a name="MyUnicodeFonts-get_kern"><strong>get_kern</strong></a>(self, facename, symleft, symright, fontsize, dpi)</dt><dd><tt>Get the kerning distance for font between symleft and symright.<br> + <br> +facename is one of tt, it, rm, cal or None<br> + <br> +sym is a single symbol(alphanum, punct) or a special symbol<br> +like \sigma.</tt></dd></dl> + +</td></tr></table> <p> +<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> +<tr bgcolor="#ffc8d8"> +<td colspan=3 valign=bottom> <br> <font color="#000000" face="helvetica, arial"><a name="SpaceElement">class <strong>SpaceElement</strong></a>(<a href="matplotlib.mathtext.html#Element">Element</a>)</font></td></tr> <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> @@ -577,6 +755,34 @@ <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> +<font color="#000000" face="helvetica, arial"><a name="StandardPSFonts">class <strong>StandardPSFonts</strong></a>(<a href="matplotlib.mathtext.html#Fonts">Fonts</a>)</font></td></tr> + +<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> +<td colspan=2><tt>Use the standard postscript fonts for rendering to backend_ps<br> </tt></td></tr> +<tr><td> </td> +<td width="100%">Methods defined here:<br> +<dl><dt><a name="StandardPSFonts-__init__"><strong>__init__</strong></a>(self)</dt></dl> + +<dl><dt><a name="StandardPSFonts-get_kern"><strong>get_kern</strong></a>(self, font, symleft, symright, fontsize, dpi)</dt></dl> + +<dl><dt><a name="StandardPSFonts-get_metrics"><strong>get_metrics</strong></a>(self, font, sym, fontsize, dpi)</dt></dl> + +<dl><dt><a name="StandardPSFonts-render"><strong>render</strong></a>(self, ox, oy, font, sym, fontsize, dpi)</dt></dl> + +<dl><dt><a name="StandardPSFonts-set_canvas_size"><strong>set_canvas_size</strong></a>(self, w, h, pswriter)</dt><dd><tt>Dimension the drawing canvas; may be a noop</tt></dd></dl> + +<hr> +Data and other attributes defined here:<br> +<dl><dt><strong>basepath</strong> = '/usr/lib/python2.4/site-packages/matplotlib/mpl-data'</dl> + +<dl><dt><strong>fnames</strong> = ('psyr', 'pncri8a', 'pcrr8a', 'pncr8a', 'pzcmi8a')</dl> + +<dl><dt><strong>fontmap</strong> = {'cal': 'pzcmi8a', 'it': 'pncri8a', 'rm': 'pncr8a', 'tt': 'pcrr8a'}</dl> + +</td></tr></table> <p> +<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> +<tr bgcolor="#ffc8d8"> +<td colspan=3 valign=bottom> <br> <font color="#000000" face="helvetica, arial"><a name="SymbolElement">class <strong>SymbolElement</strong></a>(<a href="matplotlib.mathtext.html#Element">Element</a>)</font></td></tr> <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> @@ -635,24 +841,79 @@ <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> -<font color="#000000" face="helvetica, arial"><a name="TrueTypeFonts">class <strong>TrueTypeFonts</strong></a>(<a href="matplotlib.mathtext.html#Fonts">Fonts</a>)</font></td></tr> - -<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> -<td width="100%">Methods defined here:<br> -<dl><dt><a name="TrueTypeFonts-__init__"><strong>__init__</strong></a>(self)</dt></dl> - -<dl><dt><a name="TrueTypeFonts-get_kern"><strong>get_kern</strong></a>(self, font, symleft, symright, fontsize, dpi)</dt><dd><tt>Get the kerning distance for font between symleft and symright.<br> - <br> -font is one of tt, it, rm, cal or None<br> +<font color="#000000" face="helvetica, arial"><a name="UnicodeFonts">class <strong>UnicodeFonts</strong></a>(<a href="matplotlib.mathtext.html#Fonts">Fonts</a>)</font></td></tr> + +<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> +<td colspan=2><tt>An abstract base class for handling Unicode fonts.<br> + <br> +Specific terminology:<br> + * fontface: an FT2Font object, corresponding to a facename<br> + * facename: a string that defines the (type)face's name - 'rm', 'it' etc.<br> + * filename: a string that is used for generating a fontface object<br> + * symbol*: a single Unicode character or a TeX command,<br> + or to be precise, a TeX symbol command like lpha (but not rac) or<br> + even a Type1/PS name<br> + * filenamesd: a dict that maps the face's name to the filename:<br> + filenamesd = { 'cal' : 'fontnamecal.ext',<br> + 'rm' : 'fontnamerm.ext',<br> + 'tt' : 'fontnamett.ext',<br> + 'it' : 'fontnameit.ext',<br> + None : 'fontnamesmth.ext'}<br> + filenamesd should be declared as a class atribute<br> + * glyphdict: a dict used for caching of glyph specific data<br> + * fonts: a dict of facename -> fontface pairs<br> + * charmaps: a dict of facename -> charmap pairs<br> + * glyphmaps: a dict of facename -> glyphmap pairs. A glyphmap is an<br> + inverted charmap<br> + * output: a string in ['Agg','SVG','PS'], coresponding to the backends<br> + * index: Fontfile specific index of a glyph/char. Taken from a charmap.<br> </tt></td></tr> +<tr><td> </td> +<td width="100%">Methods defined here:<br> +<dl><dt><a name="UnicodeFonts-__init__"><strong>__init__</strong></a>(self, output<font color="#909090">='Agg'</font>)</dt><dd><tt># The path to the dir with the fontfiles</tt></dd></dl> + +<dl><dt><a name="UnicodeFonts-get_metrics"><strong>get_metrics</strong></a>(self, facename, symbol, fontsize, dpi)</dt></dl> + +<dl><dt><a name="UnicodeFonts-render"><strong>render</strong></a>(self, ox, oy, facename, symbol, fontsize, dpi)</dt></dl> + +<dl><dt><a name="UnicodeFonts-set_canvas_size"><strong>set_canvas_size</strong></a>(self, w, h, pswriter<font color="#909090">=None</font>)</dt><dd><tt>Dimension the drawing canvas; may be a noop</tt></dd></dl> + +<hr> +Methods inherited from <a href="matplotlib.mathtext.html#Fonts">Fonts</a>:<br> +<dl><dt><a name="UnicodeFonts-get_kern"><strong>get_kern</strong></a>(self, facename, symleft, symright, fontsize, dpi)</dt><dd><tt>Get the kerning distance for font between symleft and symright.<br> + <br> +facename is one of tt, it, rm, cal or None<br> <br> sym is a single symbol(alphanum, punct) or a special symbol<br> like \sigma.</tt></dd></dl> -<dl><dt><a name="TrueTypeFonts-get_metrics"><strong>get_metrics</strong></a>(self, font, sym, fontsize, dpi)</dt></dl> - -<dl><dt><a name="TrueTypeFonts-render"><strong>render</strong></a>(self, ox, oy, font, sym, fontsize, dpi)</dt></dl> - -<dl><dt><a name="TrueTypeFonts-set_canvas_size"><strong>set_canvas_size</strong></a>(self, w, h)</dt><dd><tt>Dimension the drawing canvas; may be a noop</tt></dd></dl> +</td></tr></table> <p> +<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> +<tr bgcolor="#ffc8d8"> +<td colspan=3 valign=bottom> <br> +<font color="#000000" face="helvetica, arial"><a name="math_parse_s_ft2font_common">class <strong>math_parse_s_ft2font_common</strong></a></font></td></tr> + +<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> +<td colspan=2><tt>Parse the math expression s, return the (bbox, fonts) tuple needed<br> +to render it.<br> + <br> +fontsize must be in points<br> + <br> +return is width, height, fonts<br> </tt></td></tr> +<tr><td> </td> +<td width="100%">Methods defined here:<br> +<dl><dt><a name="math_parse_s_ft2font_common-__call__"><strong>__call__</strong></a>(self, s, dpi, fontsize, angle<font color="#909090">=0</font>)</dt></dl> + +<dl><dt><a name="math_parse_s_ft2font_common-__init__"><strong>__init__</strong></a>(self, output)</dt></dl> + +<hr> +Data and other attributes defined here:<br> +<dl><dt><strong>major</strong> = 2</dl> + +<dl><dt><strong>minor1</strong> = 4</dl> + +<dl><dt><strong>minor2</strong> = 1</dl> + +<dl><dt><strong>tmp</strong> = 0</dl> </td></tr></table></td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> @@ -663,24 +924,16 @@ <tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td> <td width="100%"><dl><dt><a name="-FT2Font"><strong>FT2Font</strong></a>(...)</dt><dd><tt>FT2Font</tt></dd></dl> <dl><dt><a name="-StringIO"><strong>StringIO</strong></a>(...)</dt><dd><tt><a href="#-StringIO">StringIO</a>([s]) -- Return a StringIO-like stream for reading or writing</tt></dd></dl> - <dl><dt><a name="-math_parse_s_ft2font"><strong>math_parse_s_ft2font</strong></a>(s, dpi, fontsize, angle<font color="#909090">=0</font>)</dt><dd><tt>Parse the math expression s, return the (bbox, fonts) tuple needed<br> -to render it.<br> - <br> -fontsize must be in points<br> - <br> -return is width, height, fonts</tt></dd></dl> - <dl><dt><a name="-math_parse_s_ft2font_svg"><strong>math_parse_s_ft2font_svg</strong></a>(s, dpi, fontsize, angle<font color="#909090">=0</font>)</dt><dd><tt>Parse the math expression s, return the (bbox, fonts) tuple needed<br> -to render it.<br> - <br> -fontsize must be in points<br> - <br> -return is width, height, fonts</tt></dd></dl> - <dl><dt><a name="-math_parse_s_ps"><strong>math_parse_s_ps</strong></a>(s, dpi, fontsize)</dt><dd><tt>Parse the math expression s, return the (bbox, fonts) tuple needed<br> -to render it.<br> - <br> -fontsize must be in points<br> - <br> -return is width, height, fonts</tt></dd></dl> + <dl><dt><a name="-font_open"><strong>font_open</strong></a>(filename)</dt></dl> + <dl><dt><a name="-get_type1_name"><strong>get_type1_name</strong></a>(symbol)</dt><dd><tt><a href="#-get_type1_name">get_type1_name</a>(symbol) -> string<br> + <br> +Returns the the Type1 name of symbol.<br> +symbol can be a single unicode character, or a TeX command (i.e. r'\pi').</tt></dd></dl> + <dl><dt><a name="-get_unicode_index"><strong>get_unicode_index</strong></a>(symbol)</dt><dd><tt><a href="#-get_unicode_index">get_unicode_index</a>(symbol) -> integer<br> + <br> +Return the integer index (from the Unicode table) of symbol.<br> +symbol can be a single unicode character, a TeX command (i.e. r'\pi'),<br> +or a Type1 symbol name (i.e. 'phi').</tt></dd></dl> </td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#55aa55"> @@ -718,9 +971,14 @@ <strong>italics</strong> = "it"<br> <strong>langle</strong> = "<"<br> <strong>latex_to_bakoma</strong> = {'(': ('cmr10', 119), ')': ('cmr10', 68), '*': ('cmsy10', 9), '+': ('cmr10', 76), ',': ('cmmi10', 44), '-': ('cmsy10', 17), '.': ('cmmi10', 51), '/': ('cmmi10', 98), '0': ('cmr10', 40), '1': ('cmr10', 100), ...}<br> +<strong>latex_to_standard</strong> = {r'\Delta': ('psyr', 68), r'\Diamond': ('psyr', 224), r'\Downarrow': ('psyr', 223), r'\Gamma': ('psyr', 89), r'\Im': ('psyr', 193), r'\Leftarrow': ('psyr', 220), r'\Leftrightarrow': ('psyr', 219), r'\Phi': ('psyr', 70), r'\Pi': ('psyr', 213), r'\Re': ('psyr', 194), ...}<br> <strong>lbrace</strong> = Suppress:("{")<br> <strong>lbrack</strong> = "["<br> <strong>lparen</strong> = "("<br> +<strong>math_parse_s_ft2font</strong> = <matplotlib.mathtext.math_parse_s_ft2font_common instance><br> +<strong>math_parse_s_ft2font_svg</strong> = <matplotlib.mathtext.math_parse_s_ft2font_common instance><br> +<strong>math_parse_s_pdf</strong> = <matplotlib.mathtext.math_parse_s_ft2font_common instance><br> +<strong>math_parse_s_ps</strong> = <matplotlib.mathtext.math_parse_s_ft2font_common instance><br> <strong>minus</strong> = "-"<br> <strong>misc</strong> = {{{"!" | "@"} | "%"} | "&"}<br> <strong>number</strong> = Combine:({{W:(0123...) ["."]} [W:(0123...)]})<br> @@ -735,6 +993,7 @@ <strong>rangle</strong> = ">"<br> <strong>rbrace</strong> = Suppress:("}")<br> <strong>rbrack</strong> = "]"<br> +<strong>rcParams</strong> = {'axes.axisbelow': False, 'axes.edgecolor': 'black', 'axes.facecolor': 'white', 'axes.grid': False, 'axes.hold': True, 'axes.labelcolor': 'black', 'axes.labelsize': 12.0, 'axes.linewidth': 1.0, 'axes.titlesize': 14.0, 'backend': 'GTKAgg', ...}<br> <strong>relation</strong> = {{"<" | ">"} | "="}<br> <strong>roman</strong> = "rm"<br> <strong>rparen</strong> = ")"<br> @@ -743,11 +1002,15 @@ <strong>subscript</strong> = subscript<br> <strong>subsuperscript</strong> = subsuperscript<br> <strong>superscript</strong> = superscript<br> -<strong>symbol</strong> = {{{{{{Combine:({{"\" W:(abcd...)} ~{"{"}}) | W:(...@"} | "%"} | "&"}} | {{{"[" | "]"} | "("} | ")"}}<br> -<strong>symgroup</strong> = {{font | group} | {{{{{{Combine:({{"\" W:(abcd....."} | "%"} | "&"}} | {{{"[" | "]"} | "("} | ")"}}}<br> +<strong>symbol</strong> = Re:('(\\\\[a-zA-Z0-9]+(?!{))|([a-zA-Z0-9 ])|([+\\-*/])|([<>=])|([:,.;!])|([!@%&])|([[\\]()])')<br> +<strong>symgroup</strong> = {{font | group} | Re:('(\\\\[a-zA-Z0-9]+(?!{))|(...+\\-*/])|([<>=])|([:,.;!])|([!@%&])|([[\\]()])')}<br> +<strong>tex2type1</strong> = {'AA': 'uni212B', 'AE': 'AE', 'BbbC': 'uni2102', 'BbbN': 'uni2115', 'BbbP': 'uni2119', 'BbbQ': 'uni211A', 'BbbR': 'uni211D', 'BbbZ': 'uni2124', 'Bumpeq': 'uni224E', 'Cap': 'uni22D2', ...}<br> +<strong>tex2uni</strong> = {'AA': 8491, 'AE': 198, 'BbbC': 8450, 'BbbN': 8469, 'BbbP': 8473, 'BbbQ': 8474, 'BbbR': 8477, 'BbbZ': 8484, 'Bumpeq': 8782, 'Cap': 8914, ...}<br> <strong>texsym</strong> = Combine:({{"\" W:(abcd...)} ~{"{"}})<br> <strong>times</strong> = "*"<br> +<strong>type12uni</strong> = {'A': 65, 'AE': 198, 'Aacute': 193, 'Acircumflex': 194, 'Adieresis': 196, 'Agrave': 192, 'Aring': 197, 'Atilde': 195, 'B': 66, 'C': 67, ...}<br> <strong>typewriter</strong> = "tt"<br> <strong>under</strong> = "under"<br> +<strong>uni2type1</strong> = {32: 'space', 33: 'exclam', 34: 'quotedbl', 35: 'numbersign', 36: 'dollar', 37: 'percent', 38: 'ampersand', 39: 'quotesingle', 40: 'parenleft', 41: 'parenright', ...}<br> <strong>verbose</strong> = <matplotlib.Verbose instance></td></tr></table> @footer@ \ No newline at end of file