I have the following graph written in PSTricks (I apologize for the length, but it was the most simple example I could think of):
Code: Select all
\documentclass{article}
\usepackage{pstricks, pst-node, pst-plot, pst-circ}
\usepackage{moredefs}
\usepackage[%
paperwidth = 10.67523cm, % add 0.5%
paperheight= 8.5754881cm, % add 0.5%
lmargin = -5.25mm, % do not know why this offset is needed.
rmargin = 0mm, %
tmargin = 0mm, %
bmargin = 0mm, %
]{geometry}
\begin{document}
% Global Parameters that can be changed:
\providelength{\AxesLineWidth} \setlength{\AxesLineWidth}{0.5pt}%
\providelength{\GridLineWidth} \setlength{\GridLineWidth}{0.4pt}%
\providelength{\GridLineDotSep} \setlength{\GridLineDotSep}{0.4pt}%
\providelength{\MinorGridLineWidth} \setlength{\MinorGridLineWidth}{0.4pt}%
\providelength{\MinorGridLineDotSep} \setlength{\MinorGridLineDotSep}{0.8pt}%
\providelength{\plotwidth} \setlength{\plotwidth}{10cm}% width of the axes only
\providelength{\LineWidth} \setlength{\LineWidth}{0.7pt}%
\providelength{\EdgeLineWidth} \setlength{\EdgeLineWidth}{0.4pt}%
\providelength{\MarkerSize} \setlength{\MarkerSize}{4pt}%
\newrgbcolor{GridColor}{0.8 0.8 0.8}%
%
% Begin Figure:-------------------------------------------
\psset{xunit=0.142857\plotwidth,yunit=0.197177\plotwidth}%
\begin{pspicture}(-0.354839,-0.233918)(7.080645,4.093567)%
% Draw bounding box for test aspects: ----
% \psframe(-0.354839,-0.233918)(7.080645,4.093567)
% Total width: 10.622120 cm
% Total height: 8.532824 cm
% Draw Grid: ----
% x-Grid:
\psline[linestyle=dashed,dash=2pt 3pt,dotsep=\GridLineDotSep,linewidth=\GridLineWidth,linecolor=GridColor](0.000000,0.000000)(0.000000,4.000000)
\psline[linestyle=dashed,dash=2pt 3pt,dotsep=\GridLineDotSep,linewidth=\GridLineWidth,linecolor=GridColor](1.000000,0.000000)(1.000000,4.000000)
\psline[linestyle=dashed,dash=2pt 3pt,dotsep=\GridLineDotSep,linewidth=\GridLineWidth,linecolor=GridColor](2.000000,0.000000)(2.000000,4.000000)
\psline[linestyle=dashed,dash=2pt 3pt,dotsep=\GridLineDotSep,linewidth=\GridLineWidth,linecolor=GridColor](3.000000,0.000000)(3.000000,4.000000)
\psline[linestyle=dashed,dash=2pt 3pt,dotsep=\GridLineDotSep,linewidth=\GridLineWidth,linecolor=GridColor](4.000000,0.000000)(4.000000,4.000000)
\psline[linestyle=dashed,dash=2pt 3pt,dotsep=\GridLineDotSep,linewidth=\GridLineWidth,linecolor=GridColor](5.000000,0.000000)(5.000000,4.000000)
\psline[linestyle=dashed,dash=2pt 3pt,dotsep=\GridLineDotSep,linewidth=\GridLineWidth,linecolor=GridColor](6.000000,0.000000)(6.000000,4.000000)
\psline[linestyle=dashed,dash=2pt 3pt,dotsep=\GridLineDotSep,linewidth=\GridLineWidth,linecolor=GridColor](7.000000,0.000000)(7.000000,4.000000)
% y-Grid:
\psline[linestyle=dashed,dash=2pt 3pt,dotsep=\GridLineDotSep,linewidth=\GridLineWidth,linecolor=GridColor](0.000000,0.000000)(7.000000,0.000000)
\psline[linestyle=dashed,dash=2pt 3pt,dotsep=\GridLineDotSep,linewidth=\GridLineWidth,linecolor=GridColor](0.000000,0.500000)(7.000000,0.500000)
\psline[linestyle=dashed,dash=2pt 3pt,dotsep=\GridLineDotSep,linewidth=\GridLineWidth,linecolor=GridColor](0.000000,1.000000)(7.000000,1.000000)
\psline[linestyle=dashed,dash=2pt 3pt,dotsep=\GridLineDotSep,linewidth=\GridLineWidth,linecolor=GridColor](0.000000,1.500000)(7.000000,1.500000)
\psline[linestyle=dashed,dash=2pt 3pt,dotsep=\GridLineDotSep,linewidth=\GridLineWidth,linecolor=GridColor](0.000000,2.000000)(7.000000,2.000000)
\psline[linestyle=dashed,dash=2pt 3pt,dotsep=\GridLineDotSep,linewidth=\GridLineWidth,linecolor=GridColor](0.000000,2.500000)(7.000000,2.500000)
\psline[linestyle=dashed,dash=2pt 3pt,dotsep=\GridLineDotSep,linewidth=\GridLineWidth,linecolor=GridColor](0.000000,3.000000)(7.000000,3.000000)
\psline[linestyle=dashed,dash=2pt 3pt,dotsep=\GridLineDotSep,linewidth=\GridLineWidth,linecolor=GridColor](0.000000,3.500000)(7.000000,3.500000)
\psline[linestyle=dashed,dash=2pt 3pt,dotsep=\GridLineDotSep,linewidth=\GridLineWidth,linecolor=GridColor](0.000000,4.000000)(7.000000,4.000000)
% Draw Ticks: ----
% x-Ticks:
\psline[linewidth=\AxesLineWidth,linecolor=GridColor](0.000000,0.000000)(0.000000,0.060859)
\psline[linewidth=\AxesLineWidth,linecolor=GridColor](1.000000,0.000000)(1.000000,0.060859)
\psline[linewidth=\AxesLineWidth,linecolor=GridColor](2.000000,0.000000)(2.000000,0.060859)
\psline[linewidth=\AxesLineWidth,linecolor=GridColor](3.000000,0.000000)(3.000000,0.060859)
\psline[linewidth=\AxesLineWidth,linecolor=GridColor](4.000000,0.000000)(4.000000,0.060859)
\psline[linewidth=\AxesLineWidth,linecolor=GridColor](5.000000,0.000000)(5.000000,0.060859)
\psline[linewidth=\AxesLineWidth,linecolor=GridColor](6.000000,0.000000)(6.000000,0.060859)
\psline[linewidth=\AxesLineWidth,linecolor=GridColor](7.000000,0.000000)(7.000000,0.060859)
% y-Ticks:
\psline[linewidth=\AxesLineWidth,linecolor=GridColor](0.000000,0.000000)(0.084000,0.000000)
\psline[linewidth=\AxesLineWidth,linecolor=GridColor](0.000000,0.500000)(0.084000,0.500000)
\psline[linewidth=\AxesLineWidth,linecolor=GridColor](0.000000,1.000000)(0.084000,1.000000)
\psline[linewidth=\AxesLineWidth,linecolor=GridColor](0.000000,1.500000)(0.084000,1.500000)
\psline[linewidth=\AxesLineWidth,linecolor=GridColor](0.000000,2.000000)(0.084000,2.000000)
\psline[linewidth=\AxesLineWidth,linecolor=GridColor](0.000000,2.500000)(0.084000,2.500000)
\psline[linewidth=\AxesLineWidth,linecolor=GridColor](0.000000,3.000000)(0.084000,3.000000)
\psline[linewidth=\AxesLineWidth,linecolor=GridColor](0.000000,3.500000)(0.084000,3.500000)
\psline[linewidth=\AxesLineWidth,linecolor=GridColor](0.000000,4.000000)(0.084000,4.000000)
{ \footnotesize % FontSizeTickLabels
% Draw x-Labels: ----
\rput[t](0.000000,-0.060859){$0$}
\rput[t](1.000000,-0.060859){$1$}
\rput[t](2.000000,-0.060859){$2$}
\rput[t](3.000000,-0.060859){$3$}
\rput[t](4.000000,-0.060859){$4$}
\rput[t](5.000000,-0.060859){$5$}
\rput[t](6.000000,-0.060859){$6$}
\rput[t](7.000000,-0.060859){$7$}
% Draw y-Labels: ----
\rput[r](-0.084000,0.000000){$0$}
\rput[r](-0.084000,0.500000){$0.5$}
\rput[r](-0.084000,1.000000){$1$}
\rput[r](-0.084000,1.500000){$1.5$}
\rput[r](-0.084000,2.000000){$2$}
\rput[r](-0.084000,2.500000){$2.5$}
\rput[r](-0.084000,3.000000){$3$}
\rput[r](-0.084000,3.500000){$3.5$}
\rput[r](-0.084000,4.000000){$4$}
} % End FontSizeTickLabels
% Draw Axes: ----
\psframe[linewidth=\AxesLineWidth,dimen=middle](0.000000,0.000000)(7.000000,4.000000)
{ \small % FontSizeXYlabel
} % End FontSizeXYlabel
% New Patch DATA: ----
\newrgbcolor{Lcolor181.0161}{0 0 0}
\newrgbcolor{Fcolor181.0161}{0.4 0 0}
\savedata{\mydata}[{
{1.884956,3.553058},{1.994391,4.000000},{6.283185,4.000000},{6.283185,0.000000},{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}
}]
\dataplot[fillstyle=solid,fillcolor=Fcolor181.0161,plotstyle=line,linestyle=solid,linewidth=\EdgeLineWidth,linecolor=Lcolor181.0161]{\mydata}
\end{pspicture}%
\end{document}Thanks for the help in advance.
Best,
Niles.