Closed robert-zaremba closed 7 years ago
Sorry I don't understand the last comment. PNG is rendered in the browser and in latex, PDF is not rendered in the brower, SVG is not rendered in latex. Converting all SVG to PNG is a quick work-around - though I feel like there should be a way to make latex accept SVG, but I remember it was tricky.
Hm, it may be different now, but I think you'd need external tools (like inkscape) to export/prepSVGs so that they can be embedded in latex. I remember struggling with that one once. Since then, I am just using eps or PDF for latex specifically, and PNG for everything else.
@rasbt - correct, I had problems with svg. @amueller - with PNG you loose quality.
@robert-zaremba I know, it's a horrible workaround to convert vector graphics to raster images, but I don't know another way without using the inkscape conversion.
One way is actually to render it using maplotlib because then you can embed multiple mime-types but that seems like a weird thing to do...
with PNG you loose quality.
yeah, that's the unfortunate compromise. However, I think for typical web media, it's probably more important to have it compatible for most people (and one can save the vector graphics to generate higher res versions later if needed, i.e., if everyone has 4k monitors one day or so :P)
png is not rendered in the browser: https://github.com/amueller/scipy-2016-sklearn/pull/84#discussion_r99842325