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

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.

主站蜘蛛池模板: 武穴市| 海南省| 自贡市| 台山市| 伊春市| 河南省| 平顶山市| 乌恰县| 肃北| 石城县| 莱芜市| 罗甸县| 玉龙| 福海县| 手机| 专栏| 宕昌县| 中宁县| 平潭县| 西峡县| 卫辉市| 兴化市| 农安县| 噶尔县| 韶关市| 任丘市| 南溪县| 芜湖县| 通渭县| 丹阳市| 轮台县| 绥棱县| 东方市| 阿拉善盟| 通榆县| 罗平县| 金湖县| 广安市| 西乌| 明溪县| 万宁市|