Using RendererAgg with windows

Running this script gives the results below #! /usr/bin/env

    > python

    > from matplotlib.backends.backend_agg import RendererAgg from
    > matplotlib.transforms import Value

I know there are examples in the pdf user's guide discussing how to
use the backend renderer directly, and these are meant mostly to be
helpful to matplotlib developers. Unfortunately, the guide has lagged
behind the current development state. The backend renderer API is in
a transition state right now as we try to introduce some new methods
to solve some old problems. In particular, the draw_lines method that
you are experiencing problems with has recently had a change in its
call signature.

These changes have been discussed at some length recently on the
matplotlib-devel list. If you are interested, you might want to
browse the matplotlib-devel archives and/or join the mailing list; see
for example
http://sourceforge.net/mailarchive/forum.php?thread_id=6938045&forum_id=36187 .

Thanks for reporting this discrepancy -- in the near term the backend
API shouldn't be used on the user side. If there is something you
want to do but can't in the current API let me know.

As for the platform specific differences you report, my first guess is
that the matplotlib versions may not be the same. I wouldn't expect
platform specific differences in the backend API for the same version.

JDH

John:

What I need to do is create drawings of windows (as in plug holes in houses
and let in light) with grid and other options on the fly.

So what I need are the graphic primitives -- canvas, lines, fills ...
The output needs to be a graphic file.

I will go back and study the docs, but a suggestion of what area to use would
be most welcome. Or, of course, a different module than matplotlib if that
would be more appropriate.

Thanks,
Jim

    > Running this script gives the results below #! /usr/bin/env
    > python

    > from matplotlib.backends.backend_agg import RendererAgg from
    > matplotlib.transforms import Value

I know there are examples in the pdf user's guide discussing how to
use the backend renderer directly, and these are meant mostly to be
helpful to matplotlib developers. Unfortunately, the guide has lagged
behind the current development state. The backend renderer API is in
a transition state right now as we try to introduce some new methods
to solve some old problems. In particular, the draw_lines method that
you are experiencing problems with has recently had a change in its
call signature.

These changes have been discussed at some length recently on the
matplotlib-devel list. If you are interested, you might want to
browse the matplotlib-devel archives and/or join the mailing list; see
for example

http://sourceforge.net/mailarchive/forum.php?thread_id=6938045&forum_id=36187 .

···

On Wednesday 06 April 2005 08:13 pm, you wrote:

Thanks for reporting this discrepancy -- in the near term the backend
API shouldn't be used on the user side. If there is something you
want to do but can't in the current API let me know.

As for the platform specific differences you report, my first guess is
that the matplotlib versions may not be the same. I wouldn't expect
platform specific differences in the backend API for the same version.

JDH