Graph 썸네일형 리스트형 How to plot a graph : mathplotlib library In matlab, it is very easy to plot a graph. However, in python, you need to know which library do I have to import before plotting the graph. In python, mathplotlib library supports plotting a graph like matlab. Here is an example. Enjoy! import numpy as np import math import matplotlib.pyplot as plt x = range(0, 100) # x-axis (index) y = np.zeros(100) # y-axis (value) for i in range(0, 100): y[.. 더보기 이전 1 다음