このプロットを描きたいのですが、どうやって描けばいいでしょうか?

このプロットを描きたいのですが、どうやって描けばいいでしょうか?

LaTeX ではまさにこの曲線が必要です:

希望のプロットを表示するターゲット画像

答え1

これはあなたの曲線によく似た曲線のスケッチです。これは標準的な楕円三次曲線の 1 つです。私は以下を使用しましたpst-plot:

\documentclass[11pt, a4paper, x11names]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fourier}

\usepackage{pst-plot}
\usepackage{pst-node}
\usepackage{auto-pst-pdf}
\def\f{sqrt(2.2*x*(x^2-4))}


\begin{document}

\psset{plotpoints=200, plotstyle=curve, algebraic, arrowinset=0.12, }%
\begin{pspicture*}(-4.5,-7.5)(5,8)
    \psaxes[linecolor=LightSteelBlue3, tickcolor=LightSteelBlue3, ticksize=-2pt 2pt, labels =none, arrows=->, ](0,0)(-4.5,-7.5)(5,8)[$x$, -120][$y$, -135]
    %
    \psset{linewidth=1.5pt, linecolor=IndianRed3}
    \psplot{-2}{0}{\f}%
    \psplot{2}{5}{\f}%
    \psplot{-2}{0}{-\f}%
    \psplot{2}{5}{-\f}%
\end{pspicture*}

\end{document}

ここに画像の説明を入力してください

関連情報