Menu

[r7974]: / branches / mathtex / doc / pyplots / pyplot_three.py  Maximize  Restore  History

Download this file

10 lines (6 with data), 221 Bytes

1
2
3
4
5
6
7
8
import numpy as np
import matplotlib.pyplot as plt
# evenly sampled time at 200ms intervals
t = np.arange(0., 5., 0.2)
# red dashes, blue squares and green triangles
plt.plot(t, t, 'r--', t, t**2, 'bs', t, t**3, 'g^')
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.