在参数图上添加箭头

在参数图上添加箭头

你好,我想在曲线上添加红色箭头,我在带有 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为其他内容以将箭头移至另一个位置。

相关内容