Data_Python/Matplotlib

    [Matplotlib] pie 그래프와 예제 plt.pie()

    [Matplotlib] pie 그래프와 예제 plt.pie()

    Logout Menu Kernel File New NotebookDropdown Open... Make a Copy... Save as... Rename... Save and Checkpoint Revert to CheckpointDropdown Print Preview Download asDropdown AsciiDoc (.asciidoc) HTML (.html) LaTeX (.tex) Markdown (.md) Notebook (.ipynb) PDF via LaTeX (.pdf) reST (.rst) Script () Reveal.js slides (.slides.html) PDF via HTML (.pdf) Deploy as Trust Notebook Close and Halt Edit Cut Ce..

    [Matplotlib] Scatter 그래프와 예제 plt.scatter

    [Matplotlib] Scatter 그래프와 예제 plt.scatter

    Logout Menu Kernel File New NotebookDropdown Open... Make a Copy... Save as... Rename... Save and Checkpoint Revert to CheckpointDropdown Print Preview Download asDropdown AsciiDoc (.asciidoc) HTML (.html) LaTeX (.tex) Markdown (.md) Notebook (.ipynb) PDF via LaTeX (.pdf) reST (.rst) Script () Reveal.js slides (.slides.html) PDF via HTML (.pdf) Deploy as Trust Notebook Close and Halt Edit Cut Ce..

    [Matplotlib] Bar 그래프와 예제 plt.bar()

    [Matplotlib] Bar 그래프와 예제 plt.bar()

    matplotlib¶ matplotlib.pyplot 라이브러리 import In [1]: import matplotlib.pyplot as plt Bar¶ show how some quantity varies In [10]: plt.bar([1,3,0,10], [10,23,30,1]) plt.show() width¶ default = 0.8 (기본 0.8로 설정되어 있음) In [11]: plt.bar([1,2,3,4,5],[10,20,30,40,50], width=0.1) plt.show() Bar의 위치 변경¶ In [12]: def make_chart_simple_bar_chart(): movies = ["Annie Hall", "Ben-hur", "Casablanca", "Gandhi"] num..

    [Matplotlib] Plot (line) 그래프 / plt.plot(), plt.axis(), plt.title(), plt.xlabel(), plt.ylabel(), plt.legend(), plt.xticks(), plt.yticks()

    [Matplotlib] Plot (line) 그래프 / plt.plot(), plt.axis(), plt.title(), plt.xlabel(), plt.ylabel(), plt.legend(), plt.xticks(), plt.yticks()

    matplotlib¶ matplotlib.pyplot 라이브러리 import In [1]: import matplotlib.pyplot as plt plot¶plt.plot()¶ 기본 그래프 그리기 In [2]: plt.plot([1,2,10], [10,20,5])#x,y 값 (1,10) (2,20) (10, 5) plt.show() In [3]: plt.plot(['a', 'b', 'c'], [10, 29 ,5]) plt.show Out[3]: axis()¶ 축의 범위 지정 In [4]: plt.axis([-0.5, 2.2, 0, 21]) #[xmin, xmax, ymin, ymax] plt.plot(['z', 'b', 'a..