STEM 隨筆︰古典力學︰模擬術【小工具】八《大數據》七

既然 bqplot 文件詳細︰

Introduction

bqplot is a Grammar of Graphics-based interactive plotting framework for the Jupyter notebook.

_images/bqplot-screencast.gif

In bqplot, every single attribute of the plot is an interactive widget. This allows the user to integrate any plot with IPython widgets to create a complex and feature rich GUI from just a few simple lines of Python code.

Goals

  • provide a unified framework for 2-D visualizations with a pythonic API.
  • provide a sensible API for adding user interactions (panning, zooming, selection, etc)

Two APIs are provided

  • Users can build custom visualizations using the internal object model, which is inspired by the constructs of the Grammar of Graphics (figure, marks, axes, scales), and enrich their visualization with our Interaction Layer.
  • Or they can use the context-based API similar to Matplotlib’s pyplot, which provides sensible default choices for most parameters.

 

用法介紹清楚︰

 

又有很多範例︰

bqplot/examples/

 

不必畫蛇添足矣。