[IPython-dev] notebook plots via javascript

MinRK benjaminrk@gmail....
Thu Jun 7 18:03:43 CDT 2012


On Thu, Jun 7, 2012 at 2:50 PM, Bob McElrath <bob+ipython@mcelrath.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:
>    https://github.com/mcelrath/ipython/tree/svg_figures
>
> While this isn't interactive javascript yet, we can begin attaching some
> javascript to the SVG DOM elements.
>
> 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.
>

The PNG default is actually *because* the SVGs are so much worse.

If you do succeed in making them a net improvement, then it certainly makes
sense to switch back to the original default of SVG.

-MinRK


>
> --
> 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
> IPython-dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20120607/d72094cf/attachment-0001.html 


More information about the IPython-dev mailing list