如何在pgfplots中绘制平滑曲线?以及如何删除y轴刻度线?

时间:2020-01-19 02:35:44

标签: latex pgf

我正在使用Latex Beamer准备演示文稿。我决定包括一个地块。

enter image description here

中间曲线应该是正态分布;但它有尖锐的角落。为什么呢?

还可以删除y轴上的刻度线吗?

这是我的代码:

\begin{frame}
\begin{tikzpicture}
\begin{axis}[domain=-1:1]
\addplot+[no markers] {4*exp(-4*(x+1))};
\addplot+[no markers] {1/sqrt(2*pi*0.02)*exp(-(x^2)/(2*0.02))};
\addplot+[no markers] {4*exp(4*(x-1))};
\end{axis}
\end{tikzpicture} 
\end{frame}

谢谢

1 个答案:

答案 0 :(得分:0)

  • 要获得平滑曲线,请增加采样点的数量,例如tensorflow.python.framework.errors_impl.NotFoundError: Key Accuracy/Mean/moving_avg_1 not found in checkpoint [[{{node save_6/RestoreV2}}]]

  • 要删除y轴标签:samples=100


yticklabels=\empty

enter image description here