Live data from Hacker News

Using Altair for most of my visualization in Python

fernandoi.cl

41–50 of 75 posts

Re: Using Altair for most of my visualization in Python

#41
post #31

The problem with all these nice new visualization libraries for Python, is that they all (at least the shinny nice ones) fail totally short when it comes to do B&W graphics for journal publications. Things like filling patterns, line patterns etc, are mostly missing. I still use Matplotlib and I can make it look beautiful and exactly how I want... it's just a lot more work to get the shinny bits.

Plotnine is the best when you are making a plot to put in a pdf or on paper.

Re: Using Altair for most of my visualization in Python

#49
post #31

The problem with all these nice new visualization libraries for Python, is that they all (at least the shinny nice ones) fail totally short when it comes to do B&W graphics for journal publications. Things like filling patterns, line patterns etc, are mostly missing. I still use Matplotlib and I can make it look beautiful and exactly how I want... it's just a lot more work to get the shinny bits.

The underlying vega library supports overriding styles for color and line properties - it may not be as difficult as you imagine to generate B&W graph outputs for print.

Once you have a web / javascript output, there are a bunch of possibilities:

https://observablehq.com/search?query=stippling

https://observablehq.com/search?query=dithering

https://observablehq.com/search?query=halftone

https://observablehq.com/search?query=crosshatch

(Or go out and look around github or the broader web to find many more options.)

Re: Using Altair for most of my visualization in Python

#50

Pretty cool. > Sadly, in Python, we do not have a ggplot2. I've got to ask, though: why is that the case?

Isnt there a ggplot2 like library out there. I remember coming accross one at some point.

There are several libraries inspired by the grammar of graphics and ggplot, and there has even been something like a port (although its now abandoned):

https://github.com/yhat/ggpy

What I think the author means is that there is no ggplot in the sense that there's no One Ring To Rule Them All -- ggplot2 basically killed off lattice and base R graphics for about 90% of users. The Python graphics ecosystem is more Balkanized.

Post reply on HN