[pstricks] \psgrid without numbers? and \psFourier

Herbert Voss Herbert.Voss at FU-Berlin.DE
Thu Jul 7 11:05:26 CEST 2011


Am 07.07.2011 10:49, schrieb Hendrik Maryns:

> After some more research, I came up with this:

some small modifications:

\documentclass{scrartcl}
\usepackage{pst-plot}
\begin{document}

\psset{unit=.8cm,plotpoints=500}
\begin{pspicture}(-1,-3)(11,7)
   \psaxes[arrowscale=2,Dx=20,dx=2,Dy=20,dy=2,subticks=10,
   ,ticklinestyle=dashed,yticksize=0 10,xticksize=-3 7,
   tickcolor=black!50,subtickcolor=black!20,
   subticksize=1]{->}(0,0)(0,-3)(10.5,7.5)[$x$,-90][$y$,180]
   \psplot[linewidth=1.5pt,algebraic,
           linecolor=red]{0}{10}{4*sin(Pi/2.5*x)+2}
\end{pspicture}

\end{document}


Herbert


>
> \documentclass{scrartcl}
>
> \usepackage{pst-plot}
>
> \begin{document}
>
> \psset{unit=.8cm,plotpoints=500}
> \begin{pspicture}(-1,-3)(11,7)
> \psaxes[arrowscale=2,Dx=20,dx=2,Dy=20,dy=2,subticks=10
> ,ticklinestyle=dashed,yticksize=0 10,xticksize=-3 7,
> subticksize=1]{->}(0,0)(0,-3)(10.5,7)[$x$,-90][$y$,180]
> \psplot[linewidth=1.5pt]{0}{10}{72 x mul sin 4 mul 2 add}
> \end{pspicture}
>
> \end{document}
>
> Phew!
>
> H.
>
> Op 06-07-11 18:02, Hendrik Maryns schreef:
>> Hi all,
>>
>> I want to have a grid and axes. Both produce numbers, but I want those
>> of the axes, because they are easier to fit to my needs. But maybe
>> someone has another suggestion for this:
>>
>> \documentclass{scrartcl}
>>
>> \usepackage{pst-func}
>>
>> \begin{document}
>>
>> \psset{unit=1cm,plotpoints=500}
>> \begin{pspicture}(-1,-3)(10,7)
>> \psgrid[subgriddiv=5](0,0)(0,-3)(10,7)
>> \psaxes[showorigin=true,Dx=20,dx=2,Dy=20,dy=2]{->}(0,0)(0,-3)(10,7)
>> \psFourier[linewidth=1.5pt,cosCoeff=4,sinCoeff=4]{0}{10}
>> \end{pspicture}
>>
>> \end{document}
>>
>> What I want is a grid with distances of the main lines = 10 and 5
>> subdivisions. And axes which say 0, 20, 40, …
>>
>> This almost does it, but for the numbers \psgrid puts there.
>>
>> Furthermore, how can I influence the \omega parameter of \psFourier? I
>> want to condense the sine curve such that the first 0 is at x=30. Or do
>> I have to play with unit then?
>>
>> Of course, a suggestion with a plotting function is welcome too, but I
>> do not understand anything about PostScript functions (yet).
>
>
>



More information about the PSTricks mailing list