[BUG] autofmt_xdate = graph cropped wrongly

Hello,
When I use Figure.autofmt_xdate (it uses rotation by default) the
graph is not moved/scaled so it is cropped in the image.
I noticed this problem when I was trying to crop white border in
images using bbox_inches='tight' and pad_inches=0 in Figure.savefig.
There are attached:
* Simple code to reproduce the bug
* Output images of two cases (with and without bbox_inches + pad_inches)

My system's info:
- uname -a: Linux E04679 2.6.38-13-generic #53-Ubuntu SMP Mon Nov 28
19:33:45 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
- matplotlib version: 0.99.3, installed using pip
- Nothing in matplotlibrc
- Nothing special in verbose options

Thanks,

bug-crop.py (482 Bytes)

bug-1.png

bug-2.png

···

--
Álvaro Justen "Turicas"
http://blog.justen.eng.br http://twitter.com/turicas
http://CursoDeArduino.com.br http://github.com/turicas
+55 21 9898-0141

Turicas,

Confirmed with the v1.1.x branch. Could you file a bug report on github?

Thanks!
Ben Root

···

On Mon, Jan 2, 2012 at 11:25 AM, Álvaro Justen [Turicas] <alvarojusten@…287…> wrote:

Hello,

When I use Figure.autofmt_xdate (it uses rotation by default) the

graph is not moved/scaled so it is cropped in the image.

I noticed this problem when I was trying to crop white border in

images using bbox_inches=‘tight’ and pad_inches=0 in Figure.savefig.

There are attached:

  • Simple code to reproduce the bug

  • Output images of two cases (with and without bbox_inches + pad_inches)

My system’s info:

  • uname -a: Linux E04679 2.6.38-13-generic #53-Ubuntu SMP Mon Nov 28

19:33:45 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

  • matplotlib version: 0.99.3, installed using pip

  • Nothing in matplotlibrc

  • Nothing special in verbose options

Thanks,

Álvaro Justen “Turicas”

Done!

Thanks for the support.

···

On Mon, Jan 2, 2012 at 16:28, Benjamin Root <ben.root@...1304...> wrote:

On Mon, Jan 2, 2012 at 11:25 AM, Álvaro Justen [Turicas] > <alvarojusten@...287...> wrote:

Hello,
When I use Figure.autofmt_xdate (it uses rotation by default) the
graph is not moved/scaled so it is cropped in the image.
I noticed this problem when I was trying to crop white border in
images using bbox_inches='tight' and pad_inches=0 in Figure.savefig.
There are attached:
* Simple code to reproduce the bug
* Output images of two cases (with and without bbox_inches + pad_inches)

My system's info:
- uname -a: Linux E04679 2.6.38-13-generic #53-Ubuntu SMP Mon Nov 28
19:33:45 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
- matplotlib version: 0.99.3, installed using pip
- Nothing in matplotlibrc
- Nothing special in verbose options

Thanks,
--
Álvaro Justen "Turicas"

Turicas,

Confirmed with the v1.1.x branch. Could you file a bug report on github?

Thanks!
Ben Root

--
Álvaro Justen "Turicas"
http://blog.justen.eng.br http://twitter.com/turicas
http://CursoDeArduino.com.br turicas (Álvaro Justen) · GitHub
+55 21 9898-0141