[pstricks] tilted ellipses
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Mon Mar 15 14:42:10 CET 2010
Am 15.03.2010 14:09, schrieb Zbigniew Nitecki:
> The macro \pstellipse allows one to draw an ellipse with specified major and minor axes, provided these are parallel to the coordinate axes.
> If I want to draw an ellipse whose axes are not parallel to the coordinate axes, it seems my choice is either to draw a \pstellipse and then rotate
> it, or to use \pstThreeDEllipse, arranging my viewpoint to be from the z-axis. Is there a planar macro with the functionality of the pstThreeD macro,
> namely specify a center and a vector giving each of the semi-axes?
\documentclass{article}
\usepackage{pstricks}
\SpecialCoor
\begin{document}
\begin{pspicture}[showgrid=true](-4,-2)(4,2)
\psellipse(0,0)(3,1.5)
\rput{30}{\psellipse[linecolor=red](0,0)(3,1.5)}
\rput{! 3 1.5 atan}{\psellipse[linecolor=blue](0,0)(3,1.5)}
\psdot(0,0)
\end{pspicture}
\end{document}
Herbert
More information about the PSTricks
mailing list