Skip to content

Commit effe3ea

Browse files
committed
adapt readme plot
1 parent fe18c59 commit effe3ea

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@ more easily understood, and is more easily editable than [raw TikZ output](http:
2222
For example, the matplotlib figure
2323
```python,test
2424
import matplotlib.pyplot as plt
25-
from matplotlib import style
2625
import numpy as np
2726
28-
fig = plt.figure()
29-
style.use('ggplot')
27+
plt.style.use('ggplot')
28+
3029
t = np.arange(0.0, 2.0, 0.1)
3130
s = np.sin(2*np.pi*t)
3231
s2 = np.cos(2*np.pi*t)

0 commit comments

Comments
 (0)