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

Henry Proudhon henry.proudhon at insa-lyon.fr
Thu Mar 9 18:56:12 CET 2006



Christer Gustafsson wrote:
>
>
> 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
>
>
>
Hi Christer,

 * no need to load the color package
 * the starred version of \pspolygon (and \psframe and so on) fill it 
with black...
   instead use unstarred with [fillstyle=solid,fillcolor=yellow]//
// * you can use \psframe to draw a rectangle
//
//this looks fine on my system:

\documentclass[12pt,a4paper,dvips]{article}
\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[fillstyle=solid,fillcolor=yellow](14.7,0.1)(15.6,0.1)(15.6,0.9)(14.7,0.9)/
\psframe[fillstyle=solid,fillcolor=yellow](14.7,0.1)(15.6,0.9)
\end{pspicture}
\end{center}
\caption[Short]{Figure}
\end{figure}
\end{document} 

Henry

 *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)
pst-plot.sty    2004/07/15 package wrapper for pst-plot.tex
pstricks.sty    2005/11/17 v0.30 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex    2005/12/15 v1.13 `PSTricks' (tvz)
  xcolor.sty    2004/07/04 v2.00 LaTeX color extensions (UK)
   color.cfg    2005/02/03 v1.3 color configuration of teTeX/TeXLive
   dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pst-plot.tex    2004/05/18 1.41 `pst-plot' (tvz)
 ***********




More information about the PSTricks mailing list