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

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.

主站蜘蛛池模板: 灌南县| 石渠县| 潢川县| 土默特右旗| 海盐县| 马边| 醴陵市| 宁乡县| 巴塘县| 额济纳旗| 突泉县| 颍上县| 胶南市| 阿坝县| 开原市| 洪泽县| 大邑县| 东光县| 香格里拉县| 吴堡县| 商南县| 安义县| 香河县| 将乐县| 天祝| 洛宁县| 逊克县| 青川县| 江达县| 郧西县| 桓仁| 海林市| 巴东县| 昌宁县| 甘南县| 五河县| 万山特区| 竹溪县| 汉源县| 宜都市| 叶城县|