我不會畫這張圖,該怎麼畫呢?

我不會畫這張圖,該怎麼畫呢?

我在 LaTeX 中正好需要這條曲線:

顯示所需繪圖的目標影像

答案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}

在此輸入影像描述

相關內容