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

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.

主站蜘蛛池模板: 奉贤区| 八宿县| 京山县| 关岭| 三原县| 乌兰察布市| 宣恩县| 兰西县| 奇台县| 南川市| 鹰潭市| 兴安盟| 临夏市| 高要市| 肥乡县| 中牟县| 突泉县| 大竹县| 辽阳县| 江永县| 晋宁县| 阜康市| 绥棱县| 枞阳县| 若尔盖县| 武城县| 万山特区| 吉林省| 襄城县| 纳雍县| 巫山县| 日土县| 库尔勒市| 康保县| 广西| 洱源县| 德钦县| 即墨市| 永春县| 五寨县| 卢龙县|