实例介绍
Matplotlib Release 1.2.0 I User’s Guide 1 1 Introduction 3 2 Installing 5 2.1 Manually installing pre-built packages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2.2 Installing from source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.3 Build requirement
CONTENTS User's guide 1 Introduction 2 Installing 5 2.1 Manually installing pre-built packages 2.2 Installing from source 2.3 Build requirements 2. 4 Building on OsX 8 3 Pyplot tutorial 3.1 Controlling line properties 11 3.2 Working with multiple figures and axes 3. 3 Working with text 4 Interactive navigation 19 4.1 Navigation Keyboard Shortcuts 20 5 Customizing matplotlib 23 5.1 The matplotlibrc file 番套 23 5.2 Dynamic rc settings 23 6 Using matplotlib in a python shell 33 6. 1 Ipy thon to the rescue 33 6.2 Other python interpreters 34 6.3 Controlling interactive updating 4 7 Working with text 37 7.1 Text introduction 37 7.2 Basic text commands 37 7.3 Text propert d layout 39 7.4 Writing mathematical expressions 42 7.5 Typesetting With XeLaTeX/ LuaLaTeX 53 7.6 Text rendering with latex 57 7.7 Annot 62 8 Image tutorial 67 8.1 Startup commands 67 8.2 Importing image data into Numpy arrays 67 8.3 Plotting numpy arrays as images 69 9 Artist tutorial 81 9.1 Customizing your objects 83 9.2 Object containers 85 9.3 Figure container 85 9. 4 Axes container 87 9.5 Axis containers 89 9.6 Tick containers 92 10 Customizing Location of Subplot Using GridSpec 95 10.1 Basic Example of using subplot2grid ..95 10.2 GridSpec and Subplotspec 96 10.3 Adjust GridSpec layout 97 10.4 Grid Spec using Subplot spec 98 10.5 A Complex Nested GridSpec using SubplotSpec 10.6 GridSpec with Varying Cell Sizes 100 11 Tight Layout guide 103 11. 1 Simple example 103 L2 Legend guide 119 12.1 What to be displayed 119 12.2 Multicolumn legend 121 12. 3 Legend location 121 12.4 Multiple legend 122 12.5 Legend of Complex Plots 123 13 Event handling and picking 127 13.1 Event 127 13.2 Event attributes 128 13.3 Mouse enter and leave 132 13.4 Object picking 134 14 Transformations Tutorial 137 14.1 Data coordinates .137 14.2 Axes coordinates 140 14.3 Blended transformations 142 14.4 USing offset transforms to create a shadow effect 144 14.5 The transformation pipeline 145 15 Path Tutorial 149 15.1 Bezier example 150 15.2 Compound paths 152 16 Annotating Axes 155 6.1 Annotating with Text with box 155 16.2 Annotating with Arrow 157 16.3 Placing artist at the anchored location of the axes 16. 4 USing Complex Coordinate with Annotation 164 16.5 USing ConnectorPatch 167 16.6 Zoom effect between axes 168 16.7 Define Custom BoxStyle 168 17 Our Favorite Recipes 173 17.1 Sharing axis limits and views ..173 17.2 Easily creating subplots ,,,,,,,,,,,,173 17.3 Fixing common date annoyances 174 17.4 Fill Bctween and Alpha 176 17.5 Transparent, fancy legends 180 17.6 Placing text boxes 181 18 Screenshots 183 18.1 Simple plot 183 18.2 Subplot demo 184 18.3 Histograms .184 18.4 Path demo ,,,,,185 18.5 mplot3d ,,,186 18.6 Ellipses 187 18.7 Bar charts 188 18.8 Pie charts ,,189 18.9 Table demo 18.10 Scatter demo .191 18.11 Slider demo .192 18.12 Fill demo .193 18.13 Date demo 194 18 14 Financial charts 195 18 15 Basemap demo 196 18.16 Log plots 197 18.17 Polar plots 198 18.18 Legends 199 18.19 Mathtext_examples 200 18.20 Native TeX rendering 202 18.21 EEG demo 202 19 What's new in matplotlib 205 19.1 new in matplotlib-12 19.2 new in matplotlib-11 217 19.3 new in matplotlib-10 224 19.4 new in matplotl1b-099 229 19.5 new In0.98.4 232 20 Github stats 241 21 License 255 21.1 License agreement for matplotlib 1.2.0 255 22 Credits 257 II The Matplotlib FAQ 261 3 nstallatic 263 23.1 Report a compilation problem 263 23.2 matplotlib compiled fine, but nothing shows up when I use it 263 23. 3 How to completely remove matplotlib 264 23. 4 How to Install 265 3.5Li Notes 266 23.6 OS-X Notes 266 23. 7 Windows notes ..268 24 Usage 24.1 General Concepts 269 24.2 Matplotlib, pylab, and pyplot: how are they related 70 24.3 Coding Styles 270 24.4 What is a backend? 71 24.5 What is interactive mode? 273 25 How-TC 277 25.1 Plotting: howto .,,..278 25.2 Contributing: howto 288 25.3 Matplotlib in a web application server 289 25.4 Search examples .5.5 Cite Matplotlib 290 26 Troubleshooting 293 26.1 Obtaining matplotlib version 293 26.2 matplotlib install location .....293 26.3 .matplotlib directory location 293 26.4 Getting help 294 26.5 Problems with recent git versions .295 27 Environment variables 97 27.1 Setting environment variables in Linux and os-X 297 27.2 Setting environment variables in windows ..,,,298 III The Matplotlib Developers? Guide 299 28 Coding guide 301 28.1 Committing changes 301 28.2 Style guide....,.,..,.,. ..301 28.3 Documentation and docstrings 304 28.4 Developing a new backend 305 28.5 Writing examples 306 28.6 Writing a new pyplot function 28.7 Testing 306 28.8 Licenses 309 29 Working with matplotlib source code 29.1 Introduction 311 29.2 Install git 29. 3 Following the latest source ,,312 29.4 Making a patch ,,..312 29.5 Git for development 314 29.6 git resources 324 30 Documenting matplotlib 327 30.1 Getting started 327 30.2 Organization of matplotlib's documentation 327 30.3 Formatting 328 30.4『 ' igures,,, 330 30.5 Referring to mpl documents 333 30.6 Internal section references .,,.334 30.7 Section names, etc 334 30.8 Inheritance diagrams 30.9 Emacs helpers 335 31 Doing a matplolib release 337 31.1 Testing 337 31.2 Branching 337 31.3 Packagin g 38 31.4 Release candidate testing 338 31.5 Announcing 338 32 Working with transformations 339 32.1 matplotlib transforms 339 33 Adding new scales and projections to matplotlib 361 33. Creating a new scale 361 33.2 Creating a new projection 362 33.3 API documentation 363 34 Docs outline 373 34.1 Reviewer notes 376 Iv Matplotlib Axes Grid Toolkit 379 35 Overview of AxesGrid toolkit 383 35.1 What is Axes grid toolkit? 383 35.2 AXES GRID 1 385 35.3 AXISARTIST 399 36 The Matplotlib Axes Grid Toolkit User's Guide 405 36.1 AxesDivider 405 36.2 AXISARTIST namespace 408 37 The Matplotlib Axes Grid Toolkit API 421 37.1 mpl_toolkits axes_grid axes_size .421 37.2 mpl_toolkits axes_grid axes_divider 422 37.3 mpl_toolkits axes_grid axes_grid 425 37.4 mpl_toolkits axes_grid axis_artist 426 v mplot3d 431 38 Matplotlib mplot3d toolkit 433 38.1 mplot3d tutorial 434 38.2 mplot3d API 452 38.3 mplot3d FAQ 475 VI Toolkits 477 39 Basemap 481 40 GTK Tools 483 41 Excel Tools 485 42 Natgrid 487 43 mplot3d 489 44 Axesgrid 91 vIl The Matplotlib API 493 45 Plotting commands summary 495 46 API Changes 503 46.1 Changes in 1. 2.x 503 46.2 Changes in 1. 1.x 505 46.3 Changes beyond 0.99.x 506 46. 4 Changes in 0.9 507 46.5 Changes for 0.98.x 508 46.6 Changes for 0.98.1 509 46.7 Changes for 0.98.0 509 46.8 Changes for 0.91.2 ,,,,,..514 46.9 Changes for 0. 91.1 ,514 46.10 Changes for 0.91.0 514 46.11 Changes for 0.90.1 515 46 12 Changes for 0.90.0 516 46.13 Changes for 0.87.7 517 46.14 Changes for 0.86 .519 46.15 Changes for 0.85 519 46.16 Changes for 0.84 520 46.17 Changes for 0.83 46.18 Changes for 0.82 .52 46.19 Changes for o8 46.20Ch for 0.80 523 46.21Cha for o.73 523 46.22 Changes for 0.72 523 46.23Ch for 0.71 524 46.24 Changes for 0.70 .524 46.25Ch for0.65.1 525 46.26 Changes for 0.65 .525 46.27 Changes for 0.63 525 46.28 Changes for 0.61 526 46.29 Changes for 0.60 ,526 46.30 Changes for 0.54.3 526 46.31 Changes for 0.54 527 46.32 Changes for 0.50 .530 46.33 Changes for 0.42 ..531 46.34 Changes for 0.40 垂+ 532 47 configuration 535 47.1 matplotlib ,,,,.,.535 48 afm(Adobe Font Metrics interface) 539 48.1 matplotlib afm 539 49 animation 543 49.1 matplotlib animation ..543 50 artists 549 50.1 matplotlib. artist 549 50.2 matplotlib lines 559 50.3 matplotlib patches 568 50.4 matplotlibtext 605 51 axes 617 51.1 matplotlibaxes .617 52 axis 789 52.1 matplotlib axis 789 53 backends 799 53.1 matplotlib backend bases 799 53.2 matplotlib, backends, backend_-gtkagg 817 53.3 matplotlib backends, backend_-at4agg 818 53.4 matplotlib backends. backend_wagg 818 53.5 matplotlib backends, backend_pdf 819 53.6 matplotlib. dviread .822 53.7 matplotlib type lfont 824 54 book 827 54.1 matplotlib. cook .827 55 cm(colormap 837 55.1 matplotlibcm .837 56 collections 841 56.1 matplotlib collections 57 colorbar 855 57.1 matplotlib colorbar 855 58 colors 859 58.1 matplotlib colors 859 59 dates 867 59.1 matplotlib dates .867 60 figure 875 60.1 matplotlib figure 875 61 font manager 895 61.1 matplotlib font manager 895 61.2 matplotlib fontconfig_patt 62 grids 903 62.1 matplotlib. gridspec .903 egen 907 63 1 matplotlib. legend 907 64 mathtext 64.1 matplotlib. mathtext .913 65 mlab 927 65.1 matplotlib mlab 927 66 nxutils 951 66.1 matplotlib, nxutils 951 67 path 953 67.1 matplotlib path 953 【实例截图】
【核心代码】
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论