matplotlib cheat sheet
In [0]:import numpy as np import matplotlib.pyplot as plt plt.style.use('seaborn-whitegrid') In [2]:x=np.linspace(0, 10, 20) y=np.cos(x) fig, ax = plt.subplots(2, 3) fig.suptitle('test') ax[0, 0].plot(y) ax[0, 1].plot(x, y, '-c', label="legend2") ax[0, 1].plot(x+5, y, ':r', label="legend") ax[0, 2].plot(x, y, '-p', color='gray', markersize=10, linewidth=4, markerfacecolor='white', markeredgecolo..
더보기