在參數圖上新增箭頭

在參數圖上新增箭頭

您好,我正在嘗試在曲線上添加紅色箭頭,我在 ArrowInside 線上得到了箭頭,但在參數圖中無法獲得它。 在此輸入影像描述

\psset{arrowscale=2,ArrowFill=true}
\begin{pspicture}(-5,-4)(5,4)%\grilla
\psaxes[linewidth=1.1pt,labels=none,
ticks=none]{-}(0,0)(-4,-4)(4,4)[$x$,0][$y$,90]
\psset{algebraic,linewidth=1.3pt}

\foreach \expr in {SINH(t)|COSH(t),COSH(t)|SINH(t),SINH(t)|-COSH(t),-COSH(t)|SINH(t)}
{\psparametricplot[linewidth=1.3pt,ArrowInside=->>,ArrowInsideNo=2]{-2}{2}{\expr}}

\psline[linewidth=1.3pt, linewidth=1.3pt,ArrowInside=->>, ArrowInsideNo=2,ArrowInsideOffset=0.1](-4,-4)(0,0)
\psline[linewidth=1.3pt, linewidth=1.3pt,ArrowInside=->>, ArrowInsideNo=2,ArrowInsideOffset=0.1](4,4)(0,0)
\psline[linewidth=1.3pt, linewidth=1.3pt,ArrowInside=->>, ArrowInsideNo=2,ArrowInsideOffset=0.1](0,0)(4,-4)
\psline[linewidth=1.3pt, linewidth=1.3pt,ArrowInside=->>, ArrowInsideNo=2,ArrowInsideOffset=0.1](0,0)(-4,4)

\end{pspicture}

答案1

與以下方法相同這裡:使用 重繪multido。為了讓箭頭指向所需的方向,請變更SINH(t)|COSH(t)-SINH(t)|COSH(t)和。COSH(t)|SINH(t)COSH(t)|-SINH(t)

\documentclass{standalone}
\usepackage{pstricks-add}

\begin{document}

\psset{arrowscale=2,ArrowFill=true}
\begin{pspicture}(-5,-5)(5,5)%\grilla
\psaxes[linewidth=1.1pt,labels=none,
ticks=none]{-}(0,0)(-4,-4)(4,4)[$x$,0][$y$,90]
\psset{algebraic,linewidth=1.3pt}

\foreach \expr in {-SINH(t)|COSH(t),COSH(t)|-SINH(t),SINH(t)|-COSH(t),-COSH(t)|SINH(t)}{
 \psparametricplot[linewidth=1.3pt]{-2}{2}{\expr}
 \multido{\n=-1+0.8}{4}{%
  \parametricplot[plotpoints=2,linecolor=red,linewidth=0.1pt,arrows=->,arrowscale=5]{\n}{\n\space 0.01 add}{\expr}
 }
}

\psline[linewidth=1.3pt, linewidth=1.3pt,ArrowInside=->>, ArrowInsideNo=2,ArrowInsideOffset=0.1](-4,-4)(0,0)
\psline[linewidth=1.3pt, linewidth=1.3pt,ArrowInside=->>, ArrowInsideNo=2,ArrowInsideOffset=0.1](4,4)(0,0)
\psline[linewidth=1.3pt, linewidth=1.3pt,ArrowInside=->>, ArrowInsideNo=2,ArrowInsideOffset=0.1](0,0)(4,-4)
\psline[linewidth=1.3pt, linewidth=1.3pt,ArrowInside=->>, ArrowInsideNo=2,ArrowInsideOffset=0.1](0,0)(-4,4)

\end{pspicture}

\end{document}

產量:

在此輸入影像描述

您可能想要變更\n=-1+0.8為其他內容,以便將箭頭移動到另一個位置。

相關內容