|
From: gary r. <gr...@bi...> - 2004-04-21 15:14:22
|
I just uninstalled the 0.53b release and installed 0.53
There's still a problem on my Win98 system, but now it seems related to the
new font manager:
>>> from matplotlib.matlab import *
Traceback (most recent call last):
File "<pyshell#0>", line 1, in -toplevel-
from matplotlib.matlab import *
File "C:\APPS\PYTHON23\Lib\site-packages\matplotlib\matlab.py", line 128,
in -toplevel-
from axes import Axes
File "C:\APPS\PYTHON23\Lib\site-packages\matplotlib\axes.py", line 10, in
-toplevel-
from axis import XTick, YTick, XAxis, YAxis
File "C:\APPS\PYTHON23\Lib\site-packages\matplotlib\axis.py", line 22, in
-toplevel-
from font_manager import FontProperties
File "C:\APPS\PYTHON23\Lib\site-packages\matplotlib\font_manager.py",
line 885, in -toplevel-
fontManager = FontManager()
File "C:\APPS\PYTHON23\Lib\site-packages\matplotlib\font_manager.py",
line 740, in __init__
self.ttffiles = findSystemFonts(paths) + findSystemFonts()
File "C:\APPS\PYTHON23\Lib\site-packages\matplotlib\font_manager.py",
line 159, in findSystemFonts
for f in win32InstalledFonts(fontdir):
File "C:\APPS\PYTHON23\Lib\site-packages\matplotlib\font_manager.py",
line 107, in win32InstalledFonts
if not local:
UnboundLocalError: local variable 'local' referenced before assignment
Gary
*********** REPLY SEPARATOR ***********
On 21/04/2004 at 09:33 John Hunter wrote:
> What's new in matplotlib 0.53
>
> Improved font manager and support
>
> Paul Barrett has thoroughly overhauled font support. FontTools and
> ttfquery are no longer required for font finding as matplotlib now
> has a completely freestanding freetype2 implementation and font
> finder. Among other things, this should enable you to specify fonts
> in your scripts and matplotlibrc file and generate consistent
> figures across backends and operating systems. The font finder
> algorithm and implementation are based on the W3C standard
> http://www.w3.org/TR/1999/REC-CSS1-19990111.
>
> See the font manager module documentation, the fonts documentation
> http://matplotlib.sf.net/fonts.html and the updated .matplotlibrc
> file for more details; please update your .matplotlibrc. Thanks
> Paul!
>
> Backend WXAgg
>
> Antigrain rendering to wxpython applications and figure windows. Now
> wx users have access to all the latest matplotlib functionality,
> including mathtext, antialised drawing, alpha blending and image
> support.
>
> Major and minor ticks
>
> Full support for major and minor ticks with a bevy of more
> intelligent tick locators supplied in the ticker module. Fully
> customizable and user definable tick locators and formatters. See
> major_minor_demo1.py and major_minor_demo2.py. The default tick
> labeler is much more intelligent in choosing good tick locations.
> See http://matplotlib.sf.net/matplotlib.ticker.html
>
> Date plots
>
> A new command a plot_date command for plotting date dependent data;
> see http://matplotlib.sf.net/screenshots.html#date_demo. Converters
> supplied in the dates module allow you to work with a variety of
> datetime instances. Custom date locators and formatters allow you to
> place major and minor ticks by minute, hour, weekday, month, year,
> etc, and use strftime format strings to format the ticks. See
> examples date_demo1.py and date_demo2.py. The dates documentation
> provides an overview and guide to with dates -
> see http://matplotlib.sf.net/matplotlib.dates.html.
>
> Ported image support to numarray and postscript backend
>
> The image module now works with Numeric or numarray, and now works
> in the postscript backend as well as GTKAgg, TkAgg, WXAgg, Agg, and
> GTK. Thanks to Todd Miller for the PS work!
>
> Changes to matplotlibrc
>
> Many features added to the default config file for font support,
> tkagg windowing in win32, and more. Please use the new file at
> http://matplotlib.sf.net/.matplotlibrc. By default, the installer
> will overwrite the existing file in the install path, so if you want
> to preserve your's, please move it to your HOME dir and set the
> environment variable if necessary.
>
> load and save commands
>
> Helper functions for loading and saving ASCII arrays. See load and
> save in the matlab interface.
>
> Two scales on the same axes
>
> Added some features to the axis and ticks to allow two plots with
> different scales on the "same" axes with different scales, ticks and
> labels on the left and right side of the x axis. To see why same is
> quoted, see examples/two_scales.py.
>
> finance module
>
> The finance module includes a function to fetch quotes from yahoo,
> to draw candlestick plots, and to draw vertical line plots for
> high-low range with open-close ticks to the left and right. I'm
> hoping that user contributions will make up the bulk of this module
> since I'm not a finance guy! See
> http://matplotlib.sf.net/screenshots.html#date_demo.
>
>
> http://matplotlib.sourceforge.net
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
|