官术网_书友最值得收藏!

  • Mastering matplotlib
  • Duncan M. McGreggor
  • 160字
  • 2021-07-16 14:11:20

Advanced plots – a preview

To give a taste of what's to come, let's start up a matplotlib IPython Notebook and look at an example. You will need to download the example from a GitHub repository first:

$ git clone https://github.com/masteringmatplotlib/preview.git
$ cd preview

You only need to do the following in order to bootstrap an environment with all the notebook dependencies and start up the notebook server:

$ make

This will do several things for you automatically, some of which are as follows:

  • Clone a support repository holding various include files
  • Create a Python virtual environment
  • Install matplotlib and other scientific computing Python modules into this virtual environment
  • Start an IPython Notebook server that runs on local host
  • Open a browser window and load the preview notebook in it

In this browser window, you can run the code yourself by selecting each code section and hitting the Shift and Enter keys to execute it. Let's go through an example.

主站蜘蛛池模板: 神池县| 固原市| 卓尼县| 历史| 延安市| 永顺县| 门源| 贺兰县| 杨浦区| 万盛区| 商丘市| 鄂伦春自治旗| 蒙阴县| 丰原市| 黔西县| 高邑县| 河池市| 翁牛特旗| 绵阳市| 离岛区| 吉安市| 沁水县| 罗山县| 永顺县| 怀化市| 湄潭县| 宜宾市| 剑河县| 黄陵县| 贵港市| 香港 | 青岛市| 高密市| 安徽省| 隆回县| 泸州市| 洞口县| 黎城县| 营山县| 普洱| 宾阳县|