Plotly really does look like ggplot, but Altair doesn't look nearly as friendly:
alt.Chart(source).mark_bar().encode(
alt.X("IMDB_Rating:Q", bin=True),
y='count()',
)
I guess I can see how it does the same thing, but the ergonomics don't really appear to be in the same league.What specifically do you find unergonomic about the design of Altair?
But I’ve also been able to just preprocess some of the aggregation and calculation before the visualization and that’s worked out ok.
I’ve used it over plotly a few times because there’s no offline/online issue with plotly, and I think the Altair method of saving interactive javascript versions more straightforward than plotly.
Use "named datasets", specify data via URL, etc. Do not ever specify data inline with the spec. It might get loaded into a JSON object under the hood regardless, IDK, but it's remarkably faster and simple plots of ~100000 points will work on the average computer/vm
ggplot is an interpretation of grammar of graphics. Altair is another, separate interpretation.
As far as I can understand, plotnine is an attempt at replicating ggplot.