ANN: matplotlib-0.83

Normally, this would have been a bugfix release, but I reorganized the
matplotlib configuration files so thought it best to tick the version
number. All of the configuration files and dirs (matplotlibrc,
tex.cache, ttffont.cache ) now reside in $HOME/.matplotlib (on windows
C:\Documents and Settings\youracct\.matplotlib). Please rename your
.matplotlibrc file to matplotlibrc and put it there.

Other changes are

2005-07-07 Added Eric's MA set_xdata Line2D fix - JDH

2005-07-06 Made HOME/.matplotlib the new config dir where the
           matplotlibrc file, the ttf.cache, and the tex.cache live.
           The new default filenames in .matplotlib have no leading
           dot and are not hidden. Eg, the new names are matplotlibrc
           tex.cache ttffont.cache. This is how ipython does it so it
           must be right. If old files are found, a warning is issued
           and they are moved to the new location. Also fixed
           texmanager to put all files, including temp files in
           ~/.matplotlib/tex.cache, which allows you to usetex in
           non-writable dirs.

2005-07-05 Fixed bug #1231611 in subplots adjust layout. The problem
           was that the text cacheing mechanism was not using the
           transformation affine in the key. - JDH

2005-07-05 Fixed default backend import problem when using API (SF bug
           # 1209354 - see API_CHANGES for more info - JDH

2005-07-04 backend_gtk.py: require PyGTK version 2.0.0 or higher - SC

2005-06-30 setupext.py: added numarray_inc_dirs for building against
           numarray when not installed in standard location - ADS

2005-06-27 backend_svg.py: write figure width, height as int, not float.
           Update to fix some of the pychecker warnings - SC
  
2005-06-23 Updated examples/agg_test.py to demonstrate curved paths
           and fills - JDH

2005-06-21 Moved some texmanager and backend_agg tex caching to class
           level rather than instance level - JDH

2005-06-20 setupext.py: fix problem where _nc_backend_gdk is installed to the
           wrong directory - SC

2005-06-19 Added 10.4 support for CocoaAgg. - CM

2005-06-18 Move Figure.get_width_height() to FigureCanvasBase and return
           int instead of float. - SC

2005-06-18 Applied Ted Drain's QtAgg patch: 1) Changed the toolbar to
           be a horizontal bar of push buttons instead of a QToolbar
           and updated the layout algorithms in the main window
           accordingly. This eliminates the ability to drag and drop
           the toolbar and detach it from the window. 2) Updated the
           resize algorithm in the main window to show the correct
           size for the plot widget as requested. This works almost
           correctly right now. It looks to me like the final size of
           the widget is off by the border of the main window but I
           haven't figured out a way to get that information yet. We
           could just add a small margin to the new size but that
           seems a little hacky. 3) Changed the x/y location label to
           be in the toolbar like the Tk backend instead of as a
           status line at the bottom of the widget. 4) Changed the
           toolbar pixmaps to use the ppm files instead of the png
           files. I noticed that the Tk backend buttons looked much
           nicer and it uses the ppm files so I switched them.

2005-06-17 Modified the gtk backend to not queue mouse motion events.
           This allows for live updates when dragging a slider. - CM

2005-06-17 Added starter CocoaAgg backend. Only works on OS 10.3 for
           now and requires PyObjC. (10.4 is high priority) - CM

2005-06-17 Upgraded pyparsing and applied Paul McGuire's suggestions
           for speeding things up. This more than doubles the speed
           of mathtext in my simple tests. JDH

2005-06-16 Applied David Cooke's subplot make_key patch

Downloads at http://matplotlib.sf.net

Enjoy!
JDH

I have a problem with ipython and the new version of matplotlib (I'm using a cvs version but there are no change since yesterday so I suppose that is the version 0.83).
When I did a:

run simple_plot.py

it's working but I have this message (not very nice):

···

---------------------------------------------------------------------------
exceptions.AttributeError Traceback (most recent call last)

matplotlib/examples/<console>

/usr/local/lib/python2.4/site-packages/IPython/iplib.py in ipmagic(arg_s)
    140 else:
    141 magic_args = __IPYTHON__.var_expand(magic_args)
--> 142 return fn(magic_args)
    143
    144 def ipalias(arg_s):

/usr/local/lib/python2.4/site-packages/IPython/Shell.py in magic_run(self, parameter_s)
    474
    475 def magic_run(self,parameter_s=''):
--> 476 Magic.magic_run(self,parameter_s,runner=self.mplot_exec)
    477
    478 # Fix the docstring so users see the original as well

/usr/local/lib/python2.4/site-packages/IPython/Magic.py in magic_run(self, parameter_s, runner)
   1373
   1374 else:
-> 1375 runner(filename,prog_ns,prog_ns,exit_ignore=exit_ignore)
   1376 if opts.has_key('i'):
   1377 self.shell.user_ns['__name__'] = __name__save

/usr/local/lib/python2.4/site-packages/IPython/Shell.py in mplot_exec(self, fname, *where, **kw)
    465 self.matplotlib.interactive(isInteractive)
    466 # make rendering call now, if the user tried to do it
--> 467 if self.pylab.draw_if_interactive.called:
    468 self.pylab.draw()
    469 self.pylab.draw_if_interactive.called = False

AttributeError: 'function' object has no attribute 'called'

Thanks for matplotlib and ipython.

N.

John Hunter wrote:

Normally, this would have been a bugfix release, but I reorganized the
matplotlib configuration files so thought it best to tick the version
number. All of the configuration files and dirs (matplotlibrc,
tex.cache, ttffont.cache ) now reside in $HOME/.matplotlib (on windows
C:\Documents and Settings\youracct\.matplotlib). Please rename your
.matplotlibrc file to matplotlibrc and put it there.

Other changes are

2005-07-07 Added Eric's MA set_xdata Line2D fix - JDH

2005-07-06 Made HOME/.matplotlib the new config dir where the
          matplotlibrc file, the ttf.cache, and the tex.cache live.
          The new default filenames in .matplotlib have no leading
          dot and are not hidden. Eg, the new names are matplotlibrc
          tex.cache ttffont.cache. This is how ipython does it so it
          must be right. If old files are found, a warning is issued
          and they are moved to the new location. Also fixed
          texmanager to put all files, including temp files in
          ~/.matplotlib/tex.cache, which allows you to usetex in
          non-writable dirs.

2005-07-05 Fixed bug #1231611 in subplots adjust layout. The problem
          was that the text cacheing mechanism was not using the
          transformation affine in the key. - JDH

2005-07-05 Fixed default backend import problem when using API (SF bug
          # 1209354 - see API_CHANGES for more info - JDH

2005-07-04 backend_gtk.py: require PyGTK version 2.0.0 or higher - SC

2005-06-30 setupext.py: added numarray_inc_dirs for building against
          numarray when not installed in standard location - ADS

2005-06-27 backend_svg.py: write figure width, height as int, not float.
          Update to fix some of the pychecker warnings - SC
2005-06-23 Updated examples/agg_test.py to demonstrate curved paths
          and fills - JDH

2005-06-21 Moved some texmanager and backend_agg tex caching to class
          level rather than instance level - JDH

2005-06-20 setupext.py: fix problem where _nc_backend_gdk is installed to the
          wrong directory - SC

2005-06-19 Added 10.4 support for CocoaAgg. - CM

2005-06-18 Move Figure.get_width_height() to FigureCanvasBase and return
          int instead of float. - SC

2005-06-18 Applied Ted Drain's QtAgg patch: 1) Changed the toolbar to
          be a horizontal bar of push buttons instead of a QToolbar
          and updated the layout algorithms in the main window
          accordingly. This eliminates the ability to drag and drop
          the toolbar and detach it from the window. 2) Updated the
          resize algorithm in the main window to show the correct
          size for the plot widget as requested. This works almost
          correctly right now. It looks to me like the final size of
          the widget is off by the border of the main window but I
          haven't figured out a way to get that information yet. We
          could just add a small margin to the new size but that
          seems a little hacky. 3) Changed the x/y location label to
          be in the toolbar like the Tk backend instead of as a
          status line at the bottom of the widget. 4) Changed the
          toolbar pixmaps to use the ppm files instead of the png
          files. I noticed that the Tk backend buttons looked much
          nicer and it uses the ppm files so I switched them.

2005-06-17 Modified the gtk backend to not queue mouse motion events.
          This allows for live updates when dragging a slider. - CM

2005-06-17 Added starter CocoaAgg backend. Only works on OS 10.3 for
          now and requires PyObjC. (10.4 is high priority) - CM

2005-06-17 Upgraded pyparsing and applied Paul McGuire's suggestions
          for speeding things up. This more than doubles the speed
          of mathtext in my simple tests. JDH

2005-06-16 Applied David Cooke's subplot make_key patch

Downloads at http://matplotlib.sf.net

Enjoy!
JDH

-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

I'm still getting a traceback with mpl0.83 when trying to run tex_demo.py under Windows (both Win98 and Win2k).
Has anyone got this going under Windows?
thanks,
Gary R.

Here's the dump with debug-annoying set:

loaded rc file C:\PYTHON23\share\matplotlib\matplotlibrc
matplotlib version 0.83
verbose.level debug-annoying
interactive is False
platform is win32
loaded modules: ['__future__', 'copy_reg', 'sre_compile', 'distutils', 'locale', '_sre', '__main__', 'site', '__builtin__', 'datetime', 'matplotlib.tempfile', 'encodings', 'os.path', 'encodings.encodings', 'sre_constants', 'distutils.string', 'dateutil', 'matplotlib.datetime', 'strop', '_random', 'tempfile', 'errno', 'matplotlib.warnings', 'encodings.codecs', 'matplotlib.sys', 're', 'ntpath', 'pytz.sys', 'UserDict', 'distutils.sysconfig', 'encodings.exceptions', 'nt', 'pytz.sets', 'math', 'stat', 'zipimport', 'string', 'warnings', 'encodings.types', '_codecs', 'sets', 'distutils.os', 'matplotlib', 'encodings.cp1252', 'sys', 'pytz.tzinfo', 'pytz', 'pytz.datetime', 'matplotlib.__future__', 'codecs', 'distutils.re', 'matplotlib.pytz', 'types', 'matplotlib.dateutil', '_locale', 'matplotlib.os', 'thread', 'sre', 'bisect', 'matplotlib.distutils', 'signal', 'distutils.errors', 'random', 'linecache', 'itertools', 'time', 'exceptions', 'sre_parse', 'pytz.bisect', 'distutils.sys', 'os']
numerix Numeric 23.7
font search path ['C:\\PYTHON23\\share\\matplotlib']
trying fontname C:\PYTHON23\share\matplotlib\cmex10.ttf
trying fontname C:\PYTHON23\share\matplotlib\cmmi10.ttf
trying fontname C:\PYTHON23\share\matplotlib\cmr10.ttf
trying fontname C:\PYTHON23\share\matplotlib\VeraMono.ttf
trying fontname C:\PYTHON23\share\matplotlib\cmsy10.ttf
trying fontname C:\PYTHON23\share\matplotlib\VeraMoBI.ttf
trying fontname C:\PYTHON23\share\matplotlib\cmtt10.ttf
trying fontname C:\PYTHON23\share\matplotlib\Vera.ttf
$HOME=C:\cygwin\home\gary
CONFIGDIR=C:\cygwin\home\gary\.matplotlib
loaded ttfcache file C:\cygwin\home\gary\.matplotlib\ttffont.cache
matplotlib data path C:\PYTHON23\share\matplotlib
backend TkAgg version 8.4
FigureCanvasAgg.draw
RendererAgg.__init__
This is e-TeX, Version 3.141592-2.2 (MiKTeX 2.4)
entering extended mode
! Undefined control sequence.
<*> 'C:\cygwin
\home\gary\.matplotlib\tex.cache\30565a8911a6bb487e3745c0ea3c8...

! Undefined control sequence.
<*> 'C:\cygwin\home
\gary\.matplotlib\tex.cache\30565a8911a6bb487e3745c0ea3c8...

! Undefined control sequence.
<*> 'C:\cygwin\home\gary
\.matplotlib\tex.cache\30565a8911a6bb487e3745c0ea3c8...

! I can't find file `'C:.tex'.
<to be read again>
                    \global
<*> 'C:\cygwin\home\gary\.
matplotlib\tex.cache\30565a8911a6bb487e3745c0ea3c8...
Please type another input file name
! Emergency stop.
<to be read again>
                    \global
<*> 'C:\cygwin\home\gary\.
matplotlib\tex.cache\30565a8911a6bb487e3745c0ea3c8...

No pages of output.
Transcript written on texput.log.

This is dvipng 1.1 Copyright 2002-2004 Jan-�ke Larsson

C:\cygwin\home\gary\.matplotlib\tex.cache\30565a8911a6bb487e3745c0ea3c8224.dvi: No such file or directory
C:\MIKTEX\MAIN\MIKTEX\BIN\DVIPNG.EXE warning: Unimplemented color specification ''rgb'

Exception in Tkinter callback
Traceback (most recent call last):
   File "C:\PYTHON23\lib\lib-tk\Tkinter.py", line 1345, in __call__
     return self.func(*args)
   File "C:\PYTHON23\Lib\site-packages\matplotlib\backends\backend_tkagg.py", line 148, in resize
     self.show()
   File "C:\PYTHON23\Lib\site-packages\matplotlib\backends\backend_tkagg.py", line 151, in draw
     FigureCanvasAgg.draw(self)
   File "C:\PYTHON23\Lib\site-packages\matplotlib\backends\backend_agg.py", line 383, in draw
     self.figure.draw(renderer)
   File "C:\PYTHON23\Lib\site-packages\matplotlib\figure.py", line 511, in draw
     for a in self.axes: a.draw(renderer)
   File "C:\PYTHON23\Lib\site-packages\matplotlib\axes.py", line 1386, in draw
     self.xaxis.draw(renderer)
   File "C:\PYTHON23\Lib\site-packages\matplotlib\axis.py", line 549, in draw
     tick.draw(renderer)
   File "C:\PYTHON23\Lib\site-packages\matplotlib\axis.py", line 148, in draw
     if self.label1On: self.label1.draw(renderer)
   File "C:\PYTHON23\Lib\site-packages\matplotlib\text.py", line 849, in draw
     self._mytext.draw(renderer)
   File "C:\PYTHON23\Lib\site-packages\matplotlib\text.py", line 336, in draw
     bbox, info = self._get_layout(renderer)
   File "C:\PYTHON23\Lib\site-packages\matplotlib\text.py", line 181, in _get_layout
     w,h = renderer.get_text_width_height(
   File "C:\PYTHON23\Lib\site-packages\matplotlib\backends\backend_agg.py", line 243, in get_text_width_height
     Z = self.texmanager.get_rgba(s, size, dpi, rgb)
   File "C:\PYTHON23\Lib\site-packages\matplotlib\texmanager.py", line 296, in get_rgba
     X = readpng(pngfile)
RuntimeError: _image_module::readpng could not open PNG file C:\cygwin\home\gary\.matplotlib\tex.cache\30565a8911a6bb487e3745c0ea3c8224_96.png for reading

John Hunter wrote:

···

Normally, this would have been a bugfix release, but I reorganized the
matplotlib configuration files so thought it best to tick the version
number. All of the configuration files and dirs (matplotlibrc,
tex.cache, ttffont.cache ) now reside in $HOME/.matplotlib (on windows
C:\Documents and Settings\youracct\.matplotlib). Please rename your
.matplotlibrc file to matplotlibrc and put it there.

Other changes are

2005-07-07 Added Eric's MA set_xdata Line2D fix - JDH

2005-07-06 Made HOME/.matplotlib the new config dir where the
           matplotlibrc file, the ttf.cache, and the tex.cache live.
           The new default filenames in .matplotlib have no leading
           dot and are not hidden. Eg, the new names are matplotlibrc
           tex.cache ttffont.cache. This is how ipython does it so it
           must be right. If old files are found, a warning is issued
           and they are moved to the new location. Also fixed
           texmanager to put all files, including temp files in
           ~/.matplotlib/tex.cache, which allows you to usetex in
           non-writable dirs.

2005-07-05 Fixed bug #1231611 in subplots adjust layout. The problem
           was that the text cacheing mechanism was not using the
           transformation affine in the key. - JDH

2005-07-05 Fixed default backend import problem when using API (SF bug
           # 1209354 - see API_CHANGES for more info - JDH

2005-07-04 backend_gtk.py: require PyGTK version 2.0.0 or higher - SC

2005-06-30 setupext.py: added numarray_inc_dirs for building against
           numarray when not installed in standard location - ADS

2005-06-27 backend_svg.py: write figure width, height as int, not float.
           Update to fix some of the pychecker warnings - SC
  2005-06-23 Updated examples/agg_test.py to demonstrate curved paths
           and fills - JDH

2005-06-21 Moved some texmanager and backend_agg tex caching to class
           level rather than instance level - JDH

2005-06-20 setupext.py: fix problem where _nc_backend_gdk is installed to the
           wrong directory - SC

2005-06-19 Added 10.4 support for CocoaAgg. - CM

2005-06-18 Move Figure.get_width_height() to FigureCanvasBase and return
           int instead of float. - SC

2005-06-18 Applied Ted Drain's QtAgg patch: 1) Changed the toolbar to
           be a horizontal bar of push buttons instead of a QToolbar
           and updated the layout algorithms in the main window
           accordingly. This eliminates the ability to drag and drop
           the toolbar and detach it from the window. 2) Updated the
           resize algorithm in the main window to show the correct
           size for the plot widget as requested. This works almost
           correctly right now. It looks to me like the final size of
           the widget is off by the border of the main window but I
           haven't figured out a way to get that information yet. We
           could just add a small margin to the new size but that
           seems a little hacky. 3) Changed the x/y location label to
           be in the toolbar like the Tk backend instead of as a
           status line at the bottom of the widget. 4) Changed the
           toolbar pixmaps to use the ppm files instead of the png
           files. I noticed that the Tk backend buttons looked much
           nicer and it uses the ppm files so I switched them.

2005-06-17 Modified the gtk backend to not queue mouse motion events.
           This allows for live updates when dragging a slider. - CM

2005-06-17 Added starter CocoaAgg backend. Only works on OS 10.3 for
           now and requires PyObjC. (10.4 is high priority) - CM

2005-06-17 Upgraded pyparsing and applied Paul McGuire's suggestions
           for speeding things up. This more than doubles the speed
           of mathtext in my simple tests. JDH

2005-06-16 Applied David Cooke's subplot make_key patch

Downloads at http://matplotlib.sf.net

Enjoy!
JDH

-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users