<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # 屏幕截圖 > 原文:[Screenshots](http://matplotlib.org/users/screenshots.html) > 譯者:[飛龍](https://github.com/) > 協議:[CC BY-NC-SA 4.0](http://creativecommons.org/licenses/by-nc-sa/4.0/) 這里你會找到一些示例圖和生成它們的代碼。 ## 簡單繪圖 這里是一個帶有文本標簽的基本的繪圖: [源代碼](http://matplotlib.org/mpl_examples/pylab_examples/simple_plot.py) ![](http://matplotlib.org/_images/simple_plot1.png) ## 子圖示例 多個軸域(例如子圖)可使用`subplot()`命令創建: [源代碼](http://matplotlib.org/mpl_examples/subplots_axes_and_figures/subplot_demo.py) ![](http://matplotlib.org/_images/subplot_demo3.png) ## 直方圖 `hist()`命令自動生成直方圖,并返回項數或者概率: [源代碼](http://matplotlib.org/mpl_examples/statistics/histogram_demo_features.py) ![](http://matplotlib.org/_images/histogram_demo_features2.png) ## 路徑示例 你可以使用` matplotlib.path`模塊,在`maplotlib`中添加任意路徑: [源代碼](http://matplotlib.org/mpl_examples/shapes_and_collections/path_patch_demo.py) ![](http://matplotlib.org/_images/path_patch_demo1.png) ## mplot3d mplot3d 工具包(見 [mplot3d 教程](http://matplotlib.org/mpl_toolkits/mplot3d/tutorial.html#toolkit-mplot3d-tutorial)和 [mplot3d 示例](http://matplotlib.org/examples/mplot3d/index.html#mplot3d-examples-index))支持簡單的三維圖形,包括平臺、線框圖、散點圖和條形圖。 [源代碼](http://matplotlib.org/mpl_examples/mplot3d/surface3d_demo.py) ![](http://matplotlib.org/_images/surface3d_demo4.png) 感謝 John Porter,Jonathan Taylor,Reinier Heeres 和 Ben Root 開發了 mplot3d 工具包。 此工具包包含于所有標準 matplotlib 安裝中。 ## Streamplot `streamplot()`函數繪制向量場的流線圖。 除了簡單地繪制流線之外,它還允許將流線的顏色和/或線寬映射到單獨的參數,例如向量場的速度或局部密度。 [源代碼](http://matplotlib.org/mpl_examples/images_contours_and_fields/streamplot_demo_features.py) ![](http://matplotlib.org/_images/streamplot_demo_features_001.png) ![](http://matplotlib.org/_images/streamplot_demo_features_011.png) 這個特性完善了繪制向量場的`quiver()`函數。 感謝 Tom Flanagan 和 Tony You 添加`streamplot`函數。 ## 橢圓 為了支持 [Phoenix Mars Mission](http://www.jpl.nasa.gov/news/phoenix/main.php)(使用 matplotlib 展示地面跟蹤的航天器),Michael Droettboom 在 Charlie Moad 的工作基礎上提供了非常精確的橢圓弧的 8-樣條近似(見[`Arc`](http://matplotlib.org/api/patches_api.html#matplotlib.patches.Arc)),它對縮放級別并不敏感。 [源代碼](http://matplotlib.org/mpl_examples/pylab_examples/ellipse_demo.py) ![](http://matplotlib.org/_images/ellipse_demo1.png) ## 條形圖 使用`bar()`命令創建條形圖十分容易,其中包括一些定制(如誤差條): [源代碼](http://matplotlib.org/mpl_examples/pylab_examples/barchart_demo.py) ![](http://matplotlib.org/_images/barchart_demo3.png) 創建堆疊條([`bar_stacked.py`](http://matplotlib.org/examples/pylab_examples/bar_stacked.html)),蠟燭條([`finance_demo.py`](http://matplotlib.org/examples/pylab_examples/finance_demo.html))和水平條形圖([`barh_demo.py`](http://matplotlib.org/examples/lines_bars_and_markers/barh_demo.html))也很簡單。 ## 餅圖 `pie()`命令允許您輕松創建餅圖。 可選功能包括自動標記區域的百分比,從餅圖中心向外生成一個或多個楔形以及陰影效果。 仔細查看附加的代碼,它用幾行代碼來生成這個圖像。 [源代碼](http://matplotlib.org/mpl_examples/pie_and_polar_charts/pie_demo_features.py) ![](http://matplotlib.org/_images/pie_demo_features_001.png) ![](http://matplotlib.org/_images/pie_demo_features_011.png) ## 表格示例 `table()`命令向軸域添加文本表格。 [源代碼](http://matplotlib.org/mpl_examples/pylab_examples/table_demo.py) ![](http://matplotlib.org/_images/table_demo1.png) ## 散點圖示例 `scatter()`命令使用(可選的)大小和顏色參數創建散點圖。 此示例描繪了 Google 股票價格的變化,標記的尺寸反映了交易量,并且顏色隨時間變化。 這里,ALPHA 屬性用于制作半透明圓形標記。 [源代碼](http://matplotlib.org/mpl_examples/pylab_examples/scatter_demo2.py) ![](http://matplotlib.org/_images/scatter_demo21.png) ## 滑塊示例 Matplotlib 擁有基本的 GUI 小部件,它們獨立于您正在使用的圖形用戶界面,允許您編寫 GUI 交叉圖形和小部件。 請參閱[`matplotlib.widgets`](http://matplotlib.org/api/widgets_api.html#module-matplotlib.widgets)和[小部件示例](http://matplotlib.org/examples/widgets/index.html)。 [源代碼](http://matplotlib.org/mpl_examples/widgets/slider_demo.py) ![](http://matplotlib.org/_images/slider_demo.png) ## 填充示例 `fill()`命令可以繪制填充曲線和多邊形: [源代碼](http://matplotlib.org/mpl_examples/lines_bars_and_markers/fill_demo.py) ![](http://matplotlib.org/_images/fill_demo2.png) 感謝 Andrew Straw 添加了這個函數。 ## 日期示例 您可以繪制日期數據與主要和次要刻度,以及用于二者的自定義刻度格式化器。 [源代碼](http://matplotlib.org/mpl_examples/api/date_demo.py) ![](http://matplotlib.org/_images/date_demo3.png) 詳細信息和用法請參閱[`matplotlib.ticker`](http://matplotlib.org/api/ticker_api.html#module-matplotlib.ticker)和[`matplotlib.dates`](http://matplotlib.org/api/dates_api.html#module-matplotlib.dates)。 ## 金融圖表 您可以通過結合 matplotlib 提供的各種繪圖函數,布局命令和標簽工具來創建復雜的金融圖表。 以下示例模擬 ChartDirector 中的一個財務圖: [源代碼](http://matplotlib.org/mpl_examples/pylab_examples/finance_work2.py) ![](http://matplotlib.org/_images/finance_work21.png) ## 地圖示例 Jeff Whitaker 的 [Basemap](http://matplotlib.org/mpl_toolkits/index.html#toolkit-basemap) 附加工具包可以在許多不同的地圖投影上繪制數據。 此示例展示了如何在直角投影上繪制輪廓,標記和文本,以 NASA 的“藍色大理石”衛星圖像作為背景。 [源代碼](http://matplotlib.org/pyplots/plotmap.py) ## 對數繪圖 `semilogx()`,`semilogy()`和`loglog()`函數簡化了對數繪圖的創建。 [源代碼](http://matplotlib.org/mpl_examples/pylab_examples/log_demo.py) ![](http://matplotlib.org/_images/log_demo2.png) ## 極軸繪圖 `polar()`命令生成極軸繪圖。 [源代碼](http://matplotlib.org/mpl_examples/pylab_examples/polar_demo.py) ![](http://matplotlib.org/_images/polar_demo1.png) ## 圖例 `legend()`命令使用 MATLAB 兼容的圖例布局命令自動生成圖形圖例。 [源代碼](http://matplotlib.org/mpl_examples/api/legend_demo.py) ![](http://matplotlib.org/_images/legend_demo6.png) 感謝 Charles Twardy 編寫了圖例命令的輸入。 ## 數學公式示例 下面是 matplotlib 內部數學公式引擎現在支持的許多 TeX 表達式的示例。 `mathtext`模塊使用 [freetype2](http://www.freetype.org/) 和 BaKoMa 或 [STIX](http://www.stixfonts.org/) 現代字體提供 TeX 風格的數學表達式。 其他詳細信息請參閱[`matplotlib.mathtext`](http://matplotlib.org/api/mathtext_api.html#module-matplotlib.mathtext)模塊。 [源代碼](http://matplotlib.org/mpl_examples/pylab_examples/mathtext_examples.py) ![](http://matplotlib.org/_images/mathtext_examples_01_001.png) Matplotlib 的`mathtext`基礎結構是一個獨立的實現,不需要 TeX 或計算機上安裝的任何外部軟件包。 請參閱[編寫數學表達式](http://matplotlib.org/users/mathtext.html#mathtext-tutorial)教程。 ## TeX 原生渲染 雖然 matplotlib 的內部數學渲染引擎相當強大,但有時你還是需要 TeX。Matplotlib 支持帶有 usetex 選項的 TeX 外部字符串渲染。 [源代碼](http://matplotlib.org/pyplots/tex_demo.py) ![](http://matplotlib.org/_images/tex_demo1.png) ## EEG 示例 您可以將 matplotlib 嵌入到 pygtk,wx,Tk,FLTK 或 Qt 應用程序中。 這是一個名為 [pbrain](http://github.com/nipy/pbrain) 的 EEG 查看器的屏幕截圖。 ![](http://matplotlib.org/_images/eeg_small.png) 下軸使用`specgram()`繪制其中一個 EEG 通道的頻譜圖。 有關將 matplotlib 嵌入不同工具包的示例,請參閱: + [`user_interfaces`示例代碼:`embedding_in_gtk2.py`](http://matplotlib.org/examples/user_interfaces/embedding_in_gtk2.html#user-interfaces-embedding-in-gtk2) + [`user_interfaces`示例代碼:`embedding_in_wx2.py`](http://matplotlib.org/examples/user_interfaces/embedding_in_wx2.html#user-interfaces-embedding-in-wx2) + [`user_interfaces`示例代碼:`mpl_with_glade.py`](http://matplotlib.org/examples/user_interfaces/mpl_with_glade.html#user-interfaces-mpl-with-glade) + [`user_interfaces`示例代碼:`embedding_in_qt4.py`](http://matplotlib.org/examples/user_interfaces/embedding_in_qt4.html#user-interfaces-embedding-in-qt4) + [`user_interfaces`示例代碼:`embedding_in_tk.py`](http://matplotlib.org/examples/user_interfaces/embedding_in_tk.html#user-interfaces-embedding-in-tk) ## XKCD 風格的手繪圖 matplotlib 支持`xkcd`風格的繪圖。 [源代碼](http://matplotlib.org/mpl_examples/showcase/xkcd.py) ![](http://matplotlib.org/_images/xkcd_001.png) ![](http://matplotlib.org/_images/xkcd_011.png)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看