howto write matplotlib backend?

Somewhere I found some hints how to get started writing a new backend for
matplotlib. It
mentioned some almost empty kind of template that you could extend for your
needs.

I cannot find this description again. Would somebody help, please?

Cheers
Mihail

···


View this message in context: http://www.nabble.com/howto-write-matplotlib-backend--tf4874861.html#a13948670
Sent from the matplotlib - users mailing list archive at Nabble.com.

In the src dir of maptlotlib, there is a file
lib/matplotlib/backends/backend_template.py that describes the
process, and gives you a template you can start with. Two things you
should know:

We feel we currently have too many backends and are interested in
paring the number down, so the threshold for inclusion of a new
backend is rather high. It is a support headache to deal with so many
backends when we want to make changes. So if you are interested in
your backend being included in the official distribution, you might
want to propose the backend you want to include first to get some
feedback from the other developers. We need to add support for
"external backends" that can work outside the official distribution,
so local sites can have custom backends that suit there purposes, but
we haven't gotten to this yet.

Secondly, Michael has been doing extensive work in the "transforms"
branch that significantly impact (and simplify) the backend API, and
this branch will become the mpl main line in the not-too-distant
future. So if you are starting work on a new backend, you'll probably
want to start over there. Michael, have you been updating
backend_template with your changes?

JDH

···

On Nov 26, 2007 7:30 AM, Mihail <mihail.udov@...9...> wrote:

Somewhere I found some hints how to get started writing a new backend for
matplotlib. It
mentioned some almost empty kind of template that you could extend for your
needs.

I cannot find this description again. Would somebody help, please?

John Hunter wrote:

···

On Nov 26, 2007 7:30 AM, Mihail <mihail.udov@...9...> wrote:

Somewhere I found some hints how to get started writing a new backend for
matplotlib. It
mentioned some almost empty kind of template that you could extend for your
needs.

I cannot find this description again. Would somebody help, please?

Secondly, Michael has been doing extensive work in the "transforms"
branch that significantly impact (and simplify) the backend API, and
this branch will become the mpl main line in the not-too-distant
future. So if you are starting work on a new backend, you'll probably
want to start over there. Michael, have you been updating
backend_template with your changes?

Yes... as of now. (draw_arc had inadvertently been left in there.)

Cheers,
Mike

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA