ANN: matplotlib-0.81

Win32 Warning: This is the first release I've done since my windows
  build syste dies and I had to reinstall a bunch of tools and some
  version numbers in my GTK build environment changed (eg my GTK
  setup). Let me know if you encounter any problems. As always, try
  removing site-packages/matplotlib and reinstalling before reporting
  any problems

TeX support : Now you can (optionally) use TeX to handle *all* of the
  text elements in your figure with the rc param text.usetex (*Agg and
  PS only). PS support requires tex, dvips and Ghostscript 8.51
  (older versions do not work properly -- test your version with
  'gs --version'). Agg support requires tex and dvipng. A
  directory ~/.tex.cache is created where support files are cached for
  later reuse. We opted to ues TeX rather than LaTeX because it is
  faster and can do all the things we thought useful for figure text
  snippets. See http://matplotlib.sf.net/screenshots.html#tex_demo
  and http://matplotlib.sf.net/matplotlib.texmanager.html. There are
  several new rc params for configuring tex/latex support

    # use tex/latex for all text handling
    text.usetex : False
    # tex is faster, but latex is required to use special font
    # packages. See font.latex.package
    text.tex.engine : latex
    
    # This must be an available LaTeX font package,
    # like 'times' or 'pslatex' ; only applies if text.usetex
    # is true
    font.latex.package : type1cm

  Special thanks to Darren Dale for lots of hair-pulling work
  customizing, enhancing and debugging the ps backend for LaTeX
  support.

Masked arrays: Support for masked arrays in line plots, pcolor and
  contours. There are some problems with filled contours and masked
  arrays. Thanks Eric Firing and Jeffrey Whitaker.

Contour levels arg changes: see http://matplotlib.sf.net/API_CHANGES
  for details

Byte images: Much faster imaeg loading for MxNx4 or MxNx3 UInt8
  images, which bypasses the memory and CPU intensive integer/floating
  point conversions. Nicolas Girard

New image resize options interpolation options. New values for the
  interp kwarg are
        
    'nearest', 'bilinear', 'bicubic', 'spline16', 'spline36',
    'hanning', 'hamming', 'hermite', 'kaiser', 'quadric', 'catrom',
    'gaussian', 'bessel', 'mitchell', 'sinc', 'lanczos', 'blackman'

  See help(imshow) for details, particularly the interpolation,
  filternorm and filterrad kwargs.

Text and dashes - Daishi Harada contributed a patch for connecting
  text to points with lines. See examples/dashpointlabel.py and
  examples/dashtick.py

Fast markers on win32: The marker cache optimization is finally
  available for win32, after an agg bug was found and fixed (thanks
  Maxim!). Line marker plots should be considerably faster now on
  win32.

set deprecated: use setp instead; a simple, mostly braindead,
  conversion script is provided below

Qt in ipython/pylab: You can now use qt in ipython pylab mode. Thanks
  Fernando Perez and the Orsay team!

Agg wrapper proper: Started work on a proper agg wrapper to expose
  more general agg functionality in mpl. See examples/agg_test.py.
  Lots of wrapping remains to be done.

New scalar formatter: Darren Dale did a lot of work to make scalar
  formatting smarter in pathalogical cases. See
  examples/newscalarformatter_demo.py

Small features: linewidth and faceted kwarg to scatter to control
  edgewidth and color, autolegending now inspects line segments in
  addition to vertices, upgraded to agg23, new example showing how to
  use line collections examples/line_collection.py, fixed antialiased
  property setting in agg, added a postscript papersize rc option,
  added an example showing how to embed mpl in a qt app
  examples/embedding_in_qt.py, arrow keys now exposed in mpl's GUI
  neutral event handling, added "among" kwarg to axes picker function
  to limit picks, added autoscale_on property to Axes to control
  whether or not autoscaling is done.

Bug fixes: fixed a contour masked array bug, contour memory leak

# Here is a script to recursively convert set and get to setp and
# getp. Please backup entire directory recursively before
# running this script

from matplotlib.cbook import listFiles

for fname in listFiles('.', '*.py'):

    lines = []
    cnt = 0
    for line in file(fname):
        if line.lstrip().startswith('set('):
            line = line.replace('set(', 'setp(')
            cnt +=1
        if line.lstrip().startswith('get('):
            line = line.replace('get(', 'getp(')
            cnt +=1
        lines.append(line)
        
    file(fname, 'w').writelines(lines)
    print '%s\t: %d replacements'%(fname,cnt)

Well... I'm afraid I've been confused with another guy...

Nicolas

···

On Tuesday 07 June 2005 18:22, John Hunter wrote:

Byte images: Much faster imaeg loading for MxNx4 or MxNx3 UInt8
images, which bypasses the memory and CPU intensive integer/floating
point conversions. Nicolas Girard

Darren,
You are correct - the way the Qt window is being draw causes the toolbar to overlay the plot so you end up w/ a reduced size plot. The real problem is that we used a QtToolbar class to implement the toolbar. The QtToolbar supports dragging, collapsing, and unhooking of the toolbar just like MS Word and other applications. This makes it very difficult to control where the toolbar ends up and control the final sizes of the widgets.

I think the simplest fix is change the toolbar to a collection of buttons and explicitly control the layout for them. It shouldn't be very difficult but I'm going on vacation tomorrow so we might not get to it until next week.

While we're doing this we'll also move the numeric x,y readout into the toolbar (it's currently below the toolbar) to save space and follow the pattern used in the Tk and Gtk backends.

Ted

···

I have a question about figure size in pylab, which presently includes the
toolbar. I think figure(figsize=(3,3)) should create a 3x3in plot window, and
append the toolbar below it. The effect is more noticeable on the QtAgg and
WXAgg backends, where the coordinates are reported below the toolbar. Is this
a bug or a feature?

Darren

Now, that's *just* great ! A big thank you for adding this feature !

I just seem to have problems whith accentuated characters: neither "é", nor
"\'e" work for me... any ideas ?

cheers
nicolas

···

On Tuesday 07 June 2005 18:22, John Hunter wrote:

TeX support : Now you can (optionally) use TeX to handle *all* of the
text elements in your figure with the rc param text.usetex (*Agg and
PS only).

John Hunter wrote:

Win32 Warning: This is the first release I've done since my windows

I'm still at python 2.3.x. (I don't plan to upgrade until some kind soul makes a scipy WinXP installer for python 2.4)
The mpl website still says python 2.2+ is required.
Just checking: is that still correct? Will mpl work with python 2.3.x ??

thanks,
-g

... can't wait to try the TeX support!

Hello John & NG,

    I have just downloaded matplotlib 0.81, and I am having some problems
with the ToolBar. The "Back" and "Forward" icons in the ToolBar2 are not
shown. The buttons are completely grey and they seem inactive. Is this the
expected behavior? I think it is not.
However, my configuration is:

- Windows XP
- wxPython 2.6.1.0
- MatPlotLib 0.81
- WXAgg backend
- ToolBar2

Other RC params are defaulted.

I notice this behavior on every demo in the examples.zip folder.

Thanks for every suggestion.

Andrea.

Great!
0.81 solves the problem I had earlier with the graph plot in PyGTK.

Thanks,
Dimitri

···

On 6/7/05, John Hunter <jdhunter@…4…> wrote:

Win32 Warning: This is the first release I’ve done since my windows
build syste dies and I had to reinstall a bunch of tools and some
version numbers in my GTK build environment changed (eg my GTK
setup). Let me know if you encounter any problems. As always, try

removing site-packages/matplotlib and reinstalling before reporting
any problems

TeX support : Now you can (optionally) use TeX to handle all of the
text elements in your figure with the rc param text.usetex (*Agg and
PS only). PS support requires tex, dvips and Ghostscript 8.51
(older versions do not work properly – test your version with
‘gs --version’). Agg support requires tex and dvipng. A

directory ~/.tex.cache is created where support files are cached for
later reuse. We opted to ues TeX rather than LaTeX because it is
faster and can do all the things we thought useful for figure text
snippets. See http://matplotlib.sf.net/screenshots.html#tex_demo
and http://matplotlib.sf.net/matplotlib.texmanager.html
. There are
several new rc params for configuring tex/latex support

# use tex/latex for all text handling
text.usetex         : False
# tex is faster, but latex is required to use special font

# packages.  See font.latex.package
text.tex.engine     : latex

# This must be an available LaTeX font package,
# like 'times' or 'pslatex' ; only applies if text.usetex
# is true

font.latex.package  : type1cm

Special thanks to Darren Dale for lots of hair-pulling work
customizing, enhancing and debugging the ps backend for LaTeX
support.

Masked arrays: Support for masked arrays in line plots, pcolor and

contours. There are some problems with filled contours and masked
arrays. Thanks Eric Firing and Jeffrey Whitaker.

Contour levels arg changes: see http://matplotlib.sf.net/API_CHANGES

for details

Byte images: Much faster imaeg loading for MxNx4 or MxNx3 UInt8
images, which bypasses the memory and CPU intensive integer/floating
point conversions. Nicolas Girard

New image resize options interpolation options. New values for the

interp kwarg are

'nearest', 'bilinear', 'bicubic', 'spline16', 'spline36',
'hanning', 'hamming', 'hermite', 'kaiser', 'quadric', 'catrom',
'gaussian', 'bessel', 'mitchell', 'sinc', 'lanczos', 'blackman'

See help(imshow) for details, particularly the interpolation,
filternorm and filterrad kwargs.

Text and dashes - Daishi Harada contributed a patch for connecting
text to points with lines. See examples/dashpointlabel.py and

examples/dashtick.py

Fast markers on win32: The marker cache optimization is finally
available for win32, after an agg bug was found and fixed (thanks
Maxim!). Line marker plots should be considerably faster now on

win32.

set deprecated: use setp instead; a simple, mostly braindead,
conversion script is provided below

Qt in ipython/pylab: You can now use qt in ipython pylab mode. Thanks
Fernando Perez and the Orsay team!

Agg wrapper proper: Started work on a proper agg wrapper to expose
more general agg functionality in mpl. See examples/agg_test.py.
Lots of wrapping remains to be done.

New scalar formatter: Darren Dale did a lot of work to make scalar

formatting smarter in pathalogical cases. See
examples/newscalarformatter_demo.py

Small features: linewidth and faceted kwarg to scatter to control
edgewidth and color, autolegending now inspects line segments in

addition to vertices, upgraded to agg23, new example showing how to
use line collections examples/line_collection.py, fixed antialiased
property setting in agg, added a postscript papersize rc option,
added an example showing how to embed mpl in a qt app

examples/embedding_in_qt.py, arrow keys now exposed in mpl’s GUI
neutral event handling, added “among” kwarg to axes picker function
to limit picks, added autoscale_on property to Axes to control

whether or not autoscaling is done.

Bug fixes: fixed a contour masked array bug, contour memory leak

Here is a script to recursively convert set and get to setp and

getp. Please backup entire directory recursively before

running this script

from matplotlib.cbook import listFiles

for fname in listFiles(’.’, ‘*.py’):

lines = []
cnt = 0
for line in file(fname):
    if line.lstrip().startswith('set('):

        line = line.replace('set(', 'setp(')
        cnt +=1
    if line.lstrip().startswith('get('):
        line = line.replace('get(', 'getp(')
        cnt +=1
    lines.append

(line)

file(fname, 'w').writelines(lines)
print '%s\t: %d replacements'%(fname,cnt)

This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput

a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display:
http://www.necitguy.com/?r=20


Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Please visit dimitri’s website:
www.serpia.com