The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative...
Transcript of The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative...
![Page 1: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/1.jpg)
The Python Data
Visualization Landscape
EuroPython Online 2020
![Page 2: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/2.jpg)
Bence AratóDirector, BI Consulting
• Data architect and analyst with 15+ years of experience
• Visiting professor at CEU, teaching data visualization and visual analytics
• PyData Budapest meetup organizer
![Page 3: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/3.jpg)
Acknowledgements
• This talk would not exits without the help and materials of:
• Philipp Rudiger, Anaconda
• Jim Bednar, Anaconda
• Nicholas Kruchten, Plotly
• Jake VanderPlas, Altair
• Maarten Breddels, Voila
• Randy Zwitch, Streamlit
• Special thanks to
• Jim Bednar and Nicholas Kruchten for providing feedback during
preparation
• Anett Labancz for the help with the code examples
![Page 4: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/4.jpg)
A word of caution
• The Python dataviz landscape is large and this talk only covers a subset of
the libraries (see the end of the talk for more!)
• All libraries have pros and cons, and there is always some subjectivity in
evaluating them. Your mileage may vary.
• The code samples were ran on Google Colab, other environments might
require some changes (e.g. installing non-default libraries)
![Page 5: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/5.jpg)
Introduction
![Page 6: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/6.jpg)
The reason behind this talk
Jake VanderPlas
![Page 7: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/7.jpg)
Two styles of data visualization
Imperative
• Specify How something should be done
• Must manually specify plotting steps
• Specification & execution intertwined
• Typically used by lower level libraries
• Code often longer, more detailed
Declarative
• Specify What should be done
• Details determined automatically
• Specification and execution separated
• Typically used by higher level libraries
• Code usually shorter, more expressive
Adapted from Jake VanderPlas’s „Bespoke-Visualizations-Python” talk
![Page 8: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/8.jpg)
The penguin dataset used in the examples
github.com/allisonhorst/palmerpenguins
![Page 9: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/9.jpg)
The penguin dataframe in pandas
Cleaned version from https://raw.githubusercontent.com/dataprofessor/data/master/penguins_cleaned.csv
![Page 10: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/10.jpg)
Charting libraries
![Page 11: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/11.jpg)
Group #1
![Page 12: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/12.jpg)
Matplotlib
![Page 13: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/13.jpg)
Matplotlib
matplotlib.org
![Page 14: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/14.jpg)
Matplotlib
matplotlib.org/3.1.0/gallery
![Page 15: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/15.jpg)
Matplotlib
![Page 16: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/16.jpg)
Background
MATLAB Matplotlib
Charting libraries
@bencearato
![Page 17: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/17.jpg)
Seaborn
![Page 18: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/18.jpg)
Seaborn
seaborn.pydata.org
![Page 19: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/19.jpg)
Seaborn
seaborn.pydata.org/examples
![Page 20: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/20.jpg)
Seaborn
![Page 21: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/21.jpg)
plotnine
![Page 22: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/22.jpg)
plotnine
github.com/has2k1/plotnine
![Page 23: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/23.jpg)
plotnine
plotnine.readthedocs.io/en/stable/gallery
![Page 24: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/24.jpg)
plotnine
![Page 25: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/25.jpg)
Matplotlib, Seaborn, plotnine
• Matplotlib background
• Originally based on MATLAB
• The doyen of the Python dataviz world,
the most widely used library
• Works for many-many use cases and
has some unique features
• Supports several backends and
platforms
• Some Matplotlib challenges
• Low-level imperative approach, syntax
could be verbose and difficult to master
• Web/interactivity was not supported
• Seaborn
• high-level library built on Matplotlib
• Focus on statistical visualizations
• Nice visual defaults
• plotnine
• High-level library built on Matplotlib
• Implements the Grammar of Graphic,
based on R’s ggplot2
![Page 26: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/26.jpg)
Background
MATLAB
Ggplot2 (R)
Matplotlib
plotnine
Charting libraries
Seaborn
@bencearato
![Page 27: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/27.jpg)
Group #2
![Page 28: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/28.jpg)
Bokeh
![Page 29: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/29.jpg)
Bokeh
bokeh.org
![Page 30: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/30.jpg)
Bokeh
docs.bokeh.org/en/latest/docs/gallery.html
![Page 31: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/31.jpg)
Bokeh
![Page 32: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/32.jpg)
Background
MATLAB
Ggplot2 (R)
Web / Javascript
Matplotlib
plotnine
Bokeh
Charting libraries
Seaborn
@bencearato
![Page 33: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/33.jpg)
HoloViews
holoviews.org
![Page 34: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/34.jpg)
HoloViews
holoviews.org/gallery/index
![Page 35: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/35.jpg)
HoloViews
![Page 36: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/36.jpg)
Background
MATLAB
Ggplot2 (R)
Web / Javascript
Matplotlib
plotnine
Bokeh
Charting libraries
Holoviews
Seaborn
@bencearato
![Page 37: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/37.jpg)
hvPlot
hvplot.holoviz.org
![Page 38: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/38.jpg)
Bokeh
github.com/PatrikHlobil/Pandas-Bokeh
![Page 39: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/39.jpg)
Chartify
github.com/spotify/chartify
![Page 40: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/40.jpg)
Bokeh, HoloViews and related libraries
• Bokeh
• Created in 2013 to support web-based
interactive charts in Python
• Javascript-based rendering (bokeh.js)
• Provides charts, widgets and server
components/framework in one package
• Dashboards and data applications also
supported
• Originally funded by the DARPA XDATA
program, later by Anaconda/NUMFocus
• Holoviews
• Declarative objects that wrap your data
and visualize themselves
• Variety of data backends: Pandas, Dask,
XArray, GeoPandas, etc.
• Configurable plotting backends: Matplotlib
(original), Bokeh (main), Plotly (in dev.)
• Born out of PhD work in 2013
• Other related libraries
• hvPlot (based on Holoviews and Bokeh)
• Pandas-Bokeh by Patrik Hlobil
• Chartify from Spotify
![Page 41: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/41.jpg)
Background
MATLAB
Ggplot2 (R)
Web / Javascript
Matplotlib
plotnine
Bokeh
Charting libraries
Holoviews
Seaborn
@bencearato
hvPlot
Chartify
Pandas-Bokeh
![Page 42: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/42.jpg)
Group #3
![Page 43: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/43.jpg)
Plotly
![Page 44: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/44.jpg)
Plotly
plotly.com/graphing-libraries
![Page 45: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/45.jpg)
Plotly
plot.ly/python
![Page 46: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/46.jpg)
Plotly
plotly.com/python/basic-charts
![Page 47: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/47.jpg)
Background
MATLAB
Ggplot2 (R)
Web / Javascript
Matplotlib
plotnine
Plotly Graph Objects
Bokeh
Charting libraries
Holoviews
Seaborn
@bencearato
hvPlot
Chartify
Pandas-Bokeh
![Page 48: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/48.jpg)
Plotly Express
![Page 49: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/49.jpg)
Plotly
plotly.com/python/plotly-express
![Page 50: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/50.jpg)
Plotly Express
![Page 51: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/51.jpg)
Plotly
• Background
• Plotly (a Canadian company) founded in 2013, offering a hosted service powered by
Plotly.js
• In 2015 the core technologies has been open sourced, currently most of the Plotly
stack is open source and free
• Plotly has client libraries for Python and R
• Since 2019 the recommended way to use Plotly is the Plotly Express library
• Open source components
• Plotly.js, the core Javascript dataviz library
• Plotly Graph Objects, a lower-level Python chart library
• Plotly Express, a higher-level declarative Python library
• Dash Open Source for creating dashboards and analytical apps
• Plotly also offers paid commercial products
• Dash Enterprise
![Page 52: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/52.jpg)
Background
MATLAB
Ggplot2 (R)
Web / Javascript
Matplotlib
plotnine
Plotly Graph Objects Plotly Express
Bokeh
Charting libraries
Holoviews
Seaborn
@bencearato
hvPlot
Chartify
Pandas-Bokeh
![Page 53: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/53.jpg)
Group #4
![Page 54: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/54.jpg)
Vega & Vega-lite
![Page 55: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/55.jpg)
Vega & Vega-Lite
vega.github.io/vega
![Page 56: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/56.jpg)
Bar chart in Vega
vega.github.io/editor/#/examples/vega/bar-chart
![Page 57: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/57.jpg)
Vega & Vega-Lite
vega.github.io/vega-lite
![Page 58: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/58.jpg)
Bar chart in Vega-Lite
vega.github.io/editor/#/examples/vega-lite/bar
![Page 59: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/59.jpg)
Altair
![Page 60: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/60.jpg)
Altair
altair-viz.github.io
![Page 61: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/61.jpg)
Altair
altair-viz.github.io/gallery/index
![Page 62: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/62.jpg)
Altair
![Page 63: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/63.jpg)
Vega, Vega-Lite and Altair
• Vega
• Vega is a visualization grammar, a declarative language for interactive visualization designs
• The visual appearance and behavior of a visualization is defined in a JSON format
• The JSON specification then can be rendered by JavaScript using Canvas or SVG
• Vega-Lite
• A higher-level visualization grammar for building interactive graphs quickly
• Many visual components (axes, labels etc.) are automatically created (but can be customized)
• Vega-Lite supports both data transformations (e.g., aggregation, binning, filtering, sorting) and
visual transformations (e.g., stacking and faceting)
• Altair
• A high-level, declarative visualization library for Python, based on Vega and Vega-Lite
• Started in 2016 as a collaboration between Jake VanderPlas, Brian Granger and the Interactive
Data Lab at the University of Washington (UW)
![Page 64: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/64.jpg)
Background
MATLAB
Ggplot2 (R)
Web / Javascript
Matplotlib
plotnine
Plotly Graph Objects Plotly Express
Vega & Vega-lite Altair
Bokeh
Charting libraries
Holoviews
Seaborn
@bencearato
hvPlot
Chartify
Pandas-Bokeh
![Page 65: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/65.jpg)
Dashboards and data apps
![Page 66: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/66.jpg)
Plotly Dash
![Page 67: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/67.jpg)
Dash
plot.ly/dash
![Page 68: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/68.jpg)
Dash
dash-gallery.plotly.host/Portal
![Page 69: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/69.jpg)
Dash
dash-gallery.plotly.host/dash-oil-and-gas
![Page 70: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/70.jpg)
Panel
![Page 71: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/71.jpg)
Panel
panel.pyviz.org
![Page 72: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/72.jpg)
Panel
gapminder.pyviz.demo.anaconda.com/gapminders
![Page 73: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/73.jpg)
Panel
awesome-panel.org
![Page 74: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/74.jpg)
Voilà
![Page 75: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/75.jpg)
Voilà
voila.readthedocs.io/en/stable
![Page 76: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/76.jpg)
Voilà
voila-gallery.org/services/gallery
![Page 77: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/77.jpg)
Streamlit
![Page 78: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/78.jpg)
Streamlit
www.streamlit.io
![Page 79: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/79.jpg)
Streamlit
www.streamlit.io/gallery
![Page 80: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/80.jpg)
Streamlit
awesome-streamlit.org
![Page 81: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/81.jpg)
Background
MATLAB
Ggplot2 (R)
Web / Javascript
Matplotlib
plotnine
Plotly Graph Objects Plotly Express
Plotly Dash
Vega & Vega-lite Altair
Bokeh
Charting librariesDashboards &
Analytic apps
Holoviews
Voilà
Panel
Seaborn
@bencearato
Streamlit
hvPlot
Chartify
Pandas-Bokeh
![Page 82: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/82.jpg)
Next Steps
![Page 83: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/83.jpg)
PyViz.org
PyViz.org, an open guide to all Python dataviz toools
![Page 84: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/84.jpg)
PyViz.org
pyviz.org/overviews
![Page 85: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/85.jpg)
PyViz.org
Statistics for various libraries on PyViz.org
![Page 86: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/86.jpg)
Recommended watching/reading
Jim Bendar’s talk at AnacondaCon 2020 - anacondacon.io
![Page 87: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/87.jpg)
Recommended watching/reading
Talk materials from the PyData Budapest Dataviz Evolution meetup:
adat.blog/2020/06/pydata-budapest-5-meetup-dataviz-evolution
![Page 88: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/88.jpg)
Conclusions
• We are living in the golden age of Python dataviz
• Many great libraries and active development
• Strong open source community and cooperation
• Looking forward to what next year brings!
• Talk materials
• Slides will be posted on the EuroPython website and Discord
• The example charts are available as a public Google Colab notebook
• https://colab.research.google.com/drive/1ASlHn2VwJf4FKHJJRn4v3RssVowwsKGt
• Find me on Twitter and LinkedIn:
• twitter.com/bencearato
• linkedin.com/in/bencearato
![Page 89: The Python Data Visualization Landscape · 2020. 7. 25. · •A high-level, declarative visualization library for Python, based on Vega and Vega-Lite •Started in 2016 as a collaboration](https://reader036.fdocuments.in/reader036/viewer/2022071608/614614938f9ff81254200873/html5/thumbnails/89.jpg)
Thank You