[pstricks] psgrid and gridpara
Poul Riis
poul.riis at skolekom.dk
Tue Feb 5 21:08:29 CET 2019
1) Who can explain the behavior of the following example (two graphs, with
and without psgrid)?
\documentclass{article}
\usepackage{pst-plot,pstricks-add}
\usepackage[left=1cm,top=1cm,right=1cm,bottom=1cm]{geometry}
\newrgbcolor{Lcolor181.0161}{0 0 0}
\newrgbcolor{Fcolor181.0161}{0.4 0 0}
\begin{document}
Without psgrid:\\[1cm]
\psset{
llx=-1cm,
lly=-1cm,
xAxisLabel={x axis},
xAxisLabelPos={c,-0.55cm},
yAxisLabel={y axis},
yAxisLabelPos={-1cm,c}
}
\begin{psgraph}[
axesstyle=frame,
%psgrid,
Dy=.5,
xticksize=0 4,
yticksize=0 7,
ticklinestyle=dotted,
](0,0)(7,4){10cm}{7cm}
\savedata{\mydata}[{
{0.000000,0.000000},
{0.314159,0.098696},
{0.628319,0.394784},
{0.942478,0.888264},
{1.256637,1.579137},
{1.570796,2.467401},
{1.884956,3.553058},
{1.994391,4.000000}
}]
\pscustom[
linestyle=none,
fillstyle=solid,
opacity=0.25,
fillcolor=Fcolor181.0161,
]{
\dataplot[
plotstyle=curve,
linestyle=solid,
linecolor=Lcolor181.0161
]{\mydata}
\psline(1.994391,4)(6.3,4)(6.3,0)
}
\end{psgraph}
\\[1cm]
With psgrid:\\[4cm]
\begin{psgraph}[
axesstyle=frame,
psgrid,
Dy=.5,
xticksize=0 4,
yticksize=0 7,
ticklinestyle=dotted,
](0,0)(7,4){10cm}{7cm}
\savedata{\mydata}[{
{0.000000,0.000000},
{0.314159,0.098696},
{0.628319,0.394784},
{0.942478,0.888264},
{1.256637,1.579137},
{1.570796,2.467401},
{1.884956,3.553058},
{1.994391,4.000000}
}]
\pscustom[
linestyle=none,
fillstyle=solid,
opacity=0.25,
fillcolor=Fcolor181.0161,
]{
\dataplot[
plotstyle=curve,
linestyle=solid,
linecolor=Lcolor181.0161
]{\mydata}
\psline(1.994391,4)(6.3,4)(6.3,0)
}
\end{psgraph}
\end{document}
2) I cannot find the exact syntax for the parameter gridpara. Can someone
give a minimal example?
Poul Riis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/pstricks/attachments/20190205/7a11a6d3/attachment.html>
More information about the PSTricks
mailing list