[pstricks] \psgrid without numbers? and \psFourier

Hendrik Maryns hamaryns at googlemail.com
Thu Jul 7 10:49:36 CEST 2011


Hi,

After some more research, I came up with this:

\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).



-- 
Hendrik Maryns

Drielandenhoek 24
NL-2034 LV Haarlem
+31237370263
+31634861841 (staat meestal uit, enkel nootgevallen)
http://www.tcl-sfs.uni-tuebingen.de/hendrik/
===========
signature.asc?!?
→ http://en.wikipedia.org/wiki/PGPhttp://mindprod.com/project/mailreadernewsreader.html
.eml?!?
→ http://www.ehow.com/how_5829197_open-_eml-files.html
Spelling?!?
→ http://www.tcl-sfs.uni-tuebingen.de/hendrik/spelling.php


More information about the PSTricks mailing list