Skip to content

Matplotlib #
Find similar titles

Structured data

Programming Language
Python
URL

Matplotlib is a Python 2D plotting library which produces publication quality figures in a variety of hardcopy formats and interactive environments across platforms. Matplotlib can be used in Python scripts, the Python and IPython shell, the Jupyter notebook, web application servers, and four graphical user interface toolkits.

Types of plotting interfaces

  1. State-based (aka MATLAB-based): axes 대신 figure 초점
  2. Object oriented based: axes 위주 - 세밀한 제어를 위해서는 이 방식으로 해야 함

관련 프로젝트

사용 방식 #

State-based (MATLAB 유사) #

#!python
import matplotlib.pyplot as plt
import numpy as np

x = np.linspace(0, 1, 50)
y = np.cos(4*np.pi*x)
plt.plot(x, y)
plt.show()

Object-based #

#!python

fig = plt.figure()
ax = fig.subplots()   # 위 두줄은 fig, ax = plt.subplots()
ax.plot(x, y)

관련정보 #

Incoming Links #

Related Articles #

Related Codes #

Suggested Pages #

web biohackers.net
0.0.1_20140628_0