[pstricks] Cannot get a color. One line is not drawn.

Christer Gustafsson gustaf at powertech.no
Thu Mar 9 11:59:28 CET 2006



The graph is meant to produce one horisontal and one vertical axis; both 
with annotated tick marks.
Within the domain of the axes I wish to draw a yellow rectangle.

I use latex, dvips and then ps2pdf from the latest TeXLive CD.

The result seen in the Acrobat Reader is:

1. Horisontal axis is perfect.
2. The vertical axis is not shown; only the tickmarks and the annotation.
3. The colour of the rectangel is black, not yellow.

Please show me what errors I do in order to get a bad y axis and no colour.

Ch G



-- 

   Christer Gustafsson


\documentclass[12pt,a4paper,dvips]{article}
\usepackage{color}
\usepackage{pst-plot}
\listfiles
\begin{document}
\psset{xunit=12.5cm,yunit=12.5cm,runit=12.5cm}
\begin{figure}[ht]
\begin{center}
\begin{pspicture}(14.6,0.0)(15.8,1.0)
\psaxes[tickstyle=top,dy=0, Dy=0.05,dx=0, Dx=0.05,linewidth=0.6pt,labels=none]%
(14.6,0)(14.6,0)(15.8,1)
\psaxes[tickstyle=top,ticksize=8pt,dy=0, Dy=0.2,Oy=0,dx=0,Dx=0.2,Ox=14.6,linewidth=0.9pt,labels=all]%
(14.6,0)(14.6,0)(15.8,1)
\pspolygon*[fillcolor=yellow](14.7,0.1)(15.6,0.1)(15.6,0.9)(14.7,0.9)
\end{pspicture}
\end{center}
\caption[Short]{Figure}
\end{figure}
\end{document}





 Directory of G:\sys\TeXLive\xemtex\gslib  (this is where I find ps2pdf)


This is pdfeTeXk, Version 3.141592-1.30.3-2.2 (Web2c 7.5.5) (format=latex 2006.1.14)  9 MAR 2006 11:38
entering extended mode
 %&-line parsing enabled.
**question.tex
(./question.tex
LaTeX2e <2003/12/01>

...

 *File List*
 article.cls    2004/02/16 v1.4f Standard LaTeX document class
  size12.clo    2004/02/16 v1.4f Standard LaTeX file (size option)
   color.sty    1999/02/16
   color.cfg    2001/08/31 v1.1 color configuration of teTeX/TeXLive
   dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
dvipsnam.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pst-plot.sty    2004/07/15 package wrapper for pst-plot.tex
pstricks.sty    2005/10/07 v0.25 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex    2005/10/25 v1.12 `PSTricks' (tvz)
  xcolor.sty    2005/10/15 v2.06 LaTeX color extensions (UK)
   color.cfg    2001/08/31 v1.1 color configuration of teTeX/TeXLive
pst-plot.tex    2004/05/18 1.41 `pst-plot' (tvz)
 ***********

 )





More information about the PSTricks mailing list