Last active
June 13, 2019 05:06
-
-
Save richlysakowski/1b0d71b6783e43ba649b2151c59659aa to your computer and use it in GitHub Desktop.
[my_first_chart.py] self-contained chart code snippet. #chart #matplotlib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
import matplotlib.pyplot as plt | |
import numpy as np | |
from matplotlib.pyplot import figure | |
zt = np.arange(0,2.5,0.1) | |
y1 = np.sin(math.pi*t) | |
y2 = np.sin(math.pi*t+math.pi/2) | |
y3 = np.sin(math.pi*t-math.pi/2) | |
plt.plot(zt, y1, 'b*', zt, y2,'g^', zt, y3, 'rs') | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment