Skip to content

Instantly share code, notes, and snippets.

@richlysakowski
Last active June 13, 2019 05:06
Show Gist options
  • Save richlysakowski/1b0d71b6783e43ba649b2151c59659aa to your computer and use it in GitHub Desktop.
Save richlysakowski/1b0d71b6783e43ba649b2151c59659aa to your computer and use it in GitHub Desktop.
[my_first_chart.py] self-contained chart code snippet. #chart #matplotlib
# 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