I want to shrink and expand the canvas based on the 2 variables \Base and \Angle. The following code still use a hard-coded value for the ordinate of pspicture, which is equal to 6, for example.
I want to avoid using such a hard-coded value. I want to replace it by something that equals to Angle tan Base mul. Is there any idea to do so?
\documentclass[border=12pt]{standalone}
\usepackage{pstricks-add}
\def\Base{3}
\def\Angle{60}
\pstVerb
{
/Base \Base\space def
/Angle \Angle\space def
}
\begin{document}
\begin{pspicture}[showgrid=top](\Base,6)
\pspolygon[fillcolor=yellow,fillstyle=solid](!Base 0)(!0 Angle tan Base mul)
\end{pspicture}
\end{document}

