[pstricks] \psxTick error

Michael Sharpe mchl.sharpe at gmail.com
Thu Aug 13 00:11:48 CEST 2009


     \psset{xAxisLabel=,yAxisLabel=}
     \begin{psgraph}[ticks=none,Dx=2,Dy=2](0,0)(-5,-5)(5,5) 
{0.5\textwidth}{!}
       \psxTick(1.5){a^2}
       \psplot[linewidth=1.25pt,algebraic]{-4.0}{4.0} 
{ 3*sin(3.141592*x/8.0) }
     \end{psgraph}

works for me with a recent version of pstricks-add (4/29/2009). (Note  
that $a^2$ was replaced by a^2 as the last argument of \psxTick is  
assumed to be specified in math mode.

Perhaps you would post the results of \listfiles so we could see the  
version of pstricks-add you are using.

Michael


On Aug 12, 2009, at 11:20 AM, Johan Ekh wrote:

> Hi all,
> I'm trying to use \psxTick but I get "Undefined control sequence"  
> when I run LaTeX.
> Can anyone tell me what I am doing wrong?
>
> I've included the following packages:
>
> \usepackage{pstricks,pstricks-add,pst-math,pst-plot,pst-3dplot}
>
>
> This is my code:
>
> \begin{figure}[hbt]
>   \begin{center}
>     \psset{xAxisLabel=,yAxisLabel=}
>     \begin{psgraph}[ticks=none,Dx=2,Dy=2](0,0)(-5,-5)(5,5) 
> {0.5\textwidth}{!}
>       \psxTick(1.5){$a^2$}
>       \psplot[linewidth=1.25pt,algebraic]{-4.0}{4.0} 
> { 3*sin(3.141592*x/8.0) }
>     \end{psgraph}
>   \end{center}
> \end{figure
>



More information about the PSTricks mailing list