我正在使用 www.sharelatex.com 的编辑器来编译我的项目。但是,当我在项目中编写 gnuplot 代码时,绘图曲线不平滑。你能帮我修复它吗?
\begin{gnuplot}[terminal=epslatex, terminaloptions= color dashed,]
set xlabel '$x$'
set ylabel '$f(x)$'
set samples 10000
set key default
set xrange[-10:10]
set yrange[0:10]
f(x) = exp(x**2)
g(x) = 10*sin(x)/x
set label '$f(x)=e^{x^2}$' at graph 0.53,0.3 rotate by 90 left
set label '$g(x)=\frac{10sin(x)}{x}$' at graph 0.35,0.3 rotate by 80 left
plot f(x) title '$e^{x^2}$' lw 2 lt 1 lc 7,\
g(x) title '$\frac{10sin(x)}{x}$' lw 4 lt 1 lc 3
\end{gnuplot}