- Python:Data Analytics and Visualization
- Phuong Vo.T.H Martin Czygan Ashish Kumar Kirthi Raman
- 318字
- 2021-07-09 18:51:41
Additional Python data visualization tools
Besides matplotlib, there are other powerful data visualization toolkits based on Python. While we cannot pe deeper into these libraries, we would like to at least briefly introduce them in this session.
Bokeh
Bokeh is a project by Peter Wang, Hugo Shi, and others at Continuum Analytics. It aims to provide elegant and engaging visualizations in the style of D3.js
. The library can quickly and easily create interactive plots, dashboards, and data applications. Here are a few differences between matplotlib and Bokeh:
- Bokeh achieves cross-platform ubiquity through IPython's new model of in-browser client-side rendering
- Bokeh uses a syntax familiar to R and ggplot users, while matplotlib is more familiar to Matlab users
- Bokeh has a coherent vision to build a ggplot-inspired in-browser interactive visualization tool, while Matplotlib has a coherent vision of focusing on 2D cross-platform graphics.
The basic steps for creating plots with Bokeh are as follows:
- Prepare some data in a list, series, and Dataframe
- Tell Bokeh where you want to generate the output
- Call
figure()
to create a plot with some overall options, similar to the matplotlib options discussed earlier - Add renderers for your data, with visual customizations such as colors, legends, and width
- Ask Bokeh to
show()
orsave()
the results
MayaVi
MayaVi is a library for interactive scientific data visualization and 3D plotting, built on top of the award-winning visualization toolkit (VTK), which is a traits-based wrapper for the open-source visualization library. It offers the following:
- The possibility to interact with the data and object in the visualization through dialogs.
- An interface in Python for scripting. MayaVi can work with Numpy and scipy for 3D plotting out of the box and can be used within IPython notebooks, which is similar to matplotlib.
- An abstraction over VTK that offers a simpler programming model.
Let's view an illustration made entirely using MayaVi based on VTK examples and their provided data:

- GNU-Linux Rapid Embedded Programming
- Deep Learning Quick Reference
- 3D Printing with RepRap Cookbook
- 輕松學PHP
- 計算機應用復習與練習
- Windows 8應用開發實戰
- Splunk Operational Intelligence Cookbook
- 變頻器、軟啟動器及PLC實用技術260問
- 悟透AutoCAD 2009完全自學手冊
- Azure PowerShell Quick Start Guide
- Extending Ansible
- Java組件設計
- Eclipse全程指南
- SQL Server 2019 Administrator's Guide
- Oracle 11g基礎與提高