only left and bottom border in figure frame

Dear all,

I would like to have a plot where the frame only have left and
bottom border. I can not find in the documentation any function to draw
the Rectangle contained in figure() only with this 2 lines. It is
possilbe?

Regards,

Zunbeltz

···

--
Dr. Zunbeltz Izaola

Helmholtz-Zentrum Berlin für Materialien und Energie GmbH
Methods and Instruments (SF1)
Glienicker Str. 100
D-14109 Berlin

Tel (030) 8062-3179
Fax (030) 8062-2523
Room A 349

Hi Zunbeltz,

Attached is an example of a custom Axes class that does what you want. There are examples at the bottom of the file that show its use. I worked on generalizing this idea for inclusion in MPL, but the code got really nasty, really quickly.

On a side note, if any of the MPL devs think this would make a useful API example (since this topic has come up a few times on the list), feel free to do whatever you want with it.

Cheers,
-Tony

frame.py (6.39 KB)

···

On Feb 6, 2009, at 8:45 AM, Zunbeltz Izaola wrote:

Dear all,

I would like to have a plot where the frame only have left and
bottom border. I can not find in the documentation any function to draw
the Rectangle contained in figure() only with this 2 lines. It is
possilbe?

Dear Tony,

Thank you very much. This is what I was looking for.
It would be nice if it is integrated in the main matpotlib;
especially if it would be possible to set the projection type in the
matplotlibrc file.

Zunbeltz

···

On Fri, 2009-02-06 at 13:05 -0500, Tony S Yu wrote:

On Feb 6, 2009, at 8:45 AM, Zunbeltz Izaola wrote:

> Dear all,
>
> I would like to have a plot where the frame only have left and
> bottom border. I can not find in the documentation any function to
> draw
> the Rectangle contained in figure() only with this 2 lines. It is
> possilbe?

Hi Zunbeltz,

Attached is an example of a custom Axes class that does what you want.
There are examples at the bottom of the file that show its use. I
worked on generalizing this idea for inclusion in MPL, but the code
got really nasty, really quickly.

On a side note, if any of the MPL devs think this would make a useful
API example (since this topic has come up a few times on the list),
feel free to do whatever you want with it.

Cheers,
-Tony

>
>
> Regards,
>
> Zunbeltz

--
Dr. Zunbeltz Izaola

Helmholtz-Zentrum Berlin für Materialien und Energie GmbH
Methods and Instruments (SF1)
Glienicker Str. 100
D-14109 Berlin

Tel (030) 8062-3179
Fax (030) 8062-2523
Room A 349