This commit is contained in:
Julien Palard 2022-09-02 21:31:31 +02:00
parent 73d8ce5ad8
commit 7c64c595eb
Signed by: mdk
GPG Key ID: 0EFC1AC1006886F8
1 changed files with 0 additions and 18 deletions

18
cy.py
View File

@ -1,18 +0,0 @@
from cycler import cycler
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(0, 2 * np.pi, 50)
offsets = np.linspace(0, 2 * np.pi, 4, endpoint=False)
yy = np.transpose([np.sin(x + phi) for phi in offsets])
plt.rc("axes", prop_cycle=cycler(linestyle=["-", "--", ":", "-."]))
# fig, (ax0, ax1) = plt.subplots(nrows=2)
plt.plot(yy)
# ax0.set_title("Set default color cycle to rgby")
# Add a bit more space between the two plots.
# fig.subplots_adjust(hspace=0.3)
plt.show()