Re:Bokeh – a Python interactive visualization library
by ISL on Wednesday February 10, 2016 @07:20PM
(#11077328)
A png isn't a vector format, so the important property of the SVG (or EPS, PDF) is lost. A vectorized bitmap is still a bitmap.
[ Parent
| on HN ]
Re:Bokeh – a Python interactive visualization library
by pwang on Wednesday February 10, 2016 @08:29PM
(#11077643)
What resolution are you looking for in print? If you export your raster at 300 dpi, and enable lossless PNG compression, shouldn't it suffice for most print purposes?
Re:Bokeh – a Python interactive visualization library
by KKKKkkkk1 on Wednesday February 10, 2016 @11:32PM
(#11078247)
Often, it's not about print. People sometimes take vector images of plots and squeeze a bunch of them on a single page, with the idea that whoever views the paper online can zoom in if they're interested enough.
Re:Bokeh – a Python interactive visualization library
by andrepd on Wednesday February 10, 2016 @08:42PM
(#11077692)
It still has limited resolution and a much higher storage footprint. Plotting charts is the vector graphics use case par excellence. Having svg support is a no brainer.
Re:Bokeh – a Python interactive visualization library
by pwang on Wednesday February 10, 2016 @08:49PM
(#11077713)
Of course you're right that we do need to support SVG and vector formats, but it's also not entirely true that "vector >> raster" in all cases.
Raster does have limited resolution, but so does your screen or most output devices (yes, even scientific plotters).
It's also not necessarily true that it has a higher storage footprint; it depends on the complexity and number of glyphs, the fonts you need to embed for the LaTeX formulae, etc. etc. In large-data cases, raster can be a much more viable visualization transfer medium.