Skip to content

Commit 6816823

Browse files
committed
adapt readme
1 parent b2a8867 commit 6816823

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ For example, the matplotlib figure
2424
import matplotlib.pyplot as plt
2525
import numpy as np
2626
27+
plt.style.use('ggplot')
28+
2729
t = np.arange(0.0, 2.0, 0.1)
2830
s = np.sin(2*np.pi*t)
2931
s2 = np.cos(2*np.pi*t)
@@ -49,24 +51,25 @@ tikz_save('test.tex')
4951
title={Simple plot $\frac{\alpha}{2}$},
5052
xlabel={time(s)},
5153
ylabel={Voltage (mV)},
52-
xmin=0, xmax=2,
53-
ymin=-1, ymax=1,
54+
xmin=-0.095, xmax=1.995,
55+
ymin=-1.1, ymax=1.1,
5456
tick align=outside,
57+
tick pos=left,
5558
xmajorgrids,
5659
x grid style={white},
5760
ymajorgrids,
5861
y grid style={white},
5962
axis line style={white},
6063
axis background/.style={fill=white!89.803921568627459!black}
6164
]
62-
\addplot [line width=1.64pt, color0, mark=*, mark size=3, mark options={solid,draw=black}]
65+
\addplot [line width=1.64pt, color0, mark=*, mark size=3, mark options={solid}]
6366
table {%
6467
0 0
6568
0.1 0.587785252292473
6669
% [...]
6770
1.9 -0.587785252292473
6871
};
69-
\addplot [line width=1.64pt, color1, mark=*, mark size=3, mark options={solid,draw=black}]
72+
\addplot [line width=1.64pt, color1, mark=*, mark size=3, mark options={solid}]
7073
table {%
7174
0 1
7275
0.1 0.809016994374947

0 commit comments

Comments
 (0)