Plotting in Python
There are many packages that provide 2D plotting in Python. Here is an overview of the most popular ones.
matplotlib
matplotlib provides full control over the plots.
You can have a look at the various plot types that can be created as well as some plot examples.
seaborn
plotly
bokeh
plotnine
Vega-Altair
Summary
Library | Syntax | Interactivity | Ideal for | Weaknesses |
---|---|---|---|---|
Matplotlib | Imperative | No | Publications | Verbose, non-interactive |
Seaborn | Declarative | No | Statistical EDA | Limited for rare plot types |
Plotly | Imperative | Yes | Dashboards | Static output less flexible |
Bokeh | Imperative | Yes | Live web apps | Styling is less intuitive |
Altair | Declarative | Yes | Fast EDA, web | Fewer custom options |
Plotnine | Declarative | No | R users | Somewhat niche |