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

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.

主站蜘蛛池模板: 辽宁省| 敖汉旗| 凌云县| 黄浦区| 额济纳旗| 山西省| 西藏| 合作市| 久治县| 浦北县| 定陶县| 原平市| 麟游县| 南溪县| 建宁县| 岑巩县| 乐清市| 柞水县| 新宁县| 皮山县| 韶山市| 土默特右旗| 昌宁县| 广元市| 苏州市| 曲松县| 临海市| 色达县| 千阳县| 西贡区| 元阳县| 高平市| 西乌珠穆沁旗| 新郑市| 荥阳市| 佳木斯市| 集贤县| 烟台市| 文昌市| 旬邑县| 安化县|