回転曲線 (ガウス曲線) をプロットしたいのですが、方法がわかりません。インターネットで検索したところ、ガウス曲線が含まれていないため、定義する必要があることがわかりました。しかし、270° 回転したこのような関数をプロットするにはどうすればよいでしょうか。
ありがとう!
答え1
1/sqrt(2pi)e^{-x^2/2}
内でガウス曲線をプロットできますPGFPlots
。次に、パッケージを使用してstandalone
図を含め、オプションを使用して画像を回転できます。
\begin{figure}
\includestandalone[mode = image]{myplot}
\end{figure}
ここでは、図形を回転させる 4 つの異なる方法についての投稿を紹介します。キャプション付きの画像を回転する
または、オプション rotate around = 270 を使用して PGFPlots を回転し、スタンドアロンの図を挿入することもできます。
プロットを回転させる方法:
\documentclass[tikz]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat = newest}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
anchor = origin,
rotate around={270:(current axis.origin)},
hide axis
]
\addplot[smooth, domain=-5:5] {1/sqrt(2*pi)*exp(-\x^2/2)};
\end{axis}
\end{tikzpicture}
\end{document}