Thu Jun 7 18:10:58 CDT 2012
This is great. In my work on this branch to make svg images resizable:
I noticed that the svg created by matplotlib was pixelated.
On Thu, Jun 7, 2012 at 2:50 PM, Bob McElrath <firstname.lastname@example.org> wrote:
> I really want to improve the figure quality of the notebook. So, I made a stab
> in this direction by changing the default figure to SVG, making them
> transparent, and improving their quality a bit. You can see it in my branch:
I didn't play with this yet, but left some comments. Maybe open up
pull request for this just to have a good place to discuss things.
There is another question about the svg that matplotlib generates.
Currently, the main svg tag has a width and height that is specified
in pts. I am finding that in the notebook this is very difficult to
deal with. Do you think it is possible to specify the width/height in
the svg tag in pixels?
And the figure resizing in my branch above would be a good start.
> It turns out to get decent quality SVG figures, you have to set the
> figure.figsize fairly high. SVG doesn't know about or obey the DPI setting, but
> the low value of figsize was causing some pixelation, which is why the SVG
> figures produced by the notebook looked worse than the PNG figures.
> Cheers, Bob McElrath
> "The individual has always had to struggle to keep from being overwhelmed by
> the tribe. If you try it, you will be lonely often, and sometimes frightened.
> But no price is too high to pay for the privilege of owning yourself."
> -- Friedrich Nietzsche
> IPython-dev mailing list
Brian E. Granger
Cal Poly State University, San Luis Obispo
email@example.com and firstname.lastname@example.org
More information about the IPython-dev