Skip to content

Commit f1077bb

Browse files
committed
more robust tex
1 parent 4be13bf commit f1077bb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/Spec.hs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,13 @@ mxcorr = xacorr xs ys [o2 "usevlines" True, o2 "maxlags" 50, o2 "normed" True, o
257257
(ys :: [Double]) = take 100 normals
258258

259259
-- | http://matplotlib.org/examples/pylab_examples/tex_unicode_demo.html
260-
mtex = plotMapLinear cos 0 1 100
261-
% setTeX True
260+
mtex = setTeX True
262261
% setUnicode True
262+
% figure
263+
% addSubplot 1 1 1
264+
% plotMapLinear cos 0 1 100
263265
% xlabel [r|\textbf{time (s)}|]
264-
% ylabel [r|\textit{Velocity (\u00B0/sec)}|] @@ [o2 "fontsize" 16]
266+
% ylabel "\\textit{Velocity (°/sec)}" @@ [o2 "fontsize" 16]
265267
% title [r|\TeX\ is Number $\displaystyle\sum_{n=1}^\infty\frac{-e^{i\pi}}{2^n}$!"|] @@ [o2 "fontsize" 16, o2 "color" "r"]
266268
% grid True
267269

0 commit comments

Comments
 (0)