Discussion:
linecolor in pstricks
(too old to reply)
J***@gmail.com
2005-09-17 04:34:28 UTC
Permalink
Dear all,

There is some different in the output figure, when the
``linecolor=blue'' were removed from the following code or not. Why?

Any help will be appreciated!

---------->start code<------------------
\documentclass{article}
\usepackage{pstricks,pstricks-add}
\listfiles
\begin{document}
\begin{pspicture}(12,7)%\psgrid
\psbrace[linecolor=blue,linewidth=0.5pt,ref=rC,rot=180,linearc=2pt,braceWidth=0.2](7.75,5.40)(7.75,4.8861){\color{blue}$e_5$}

\psbrace[linecolor=blue,linewidth=0.5pt,ref=rC,rot=180,linearc=4pt,braceWidth=0.3](7.75,4.8861)(7.75,0){\color{blue}$\hat{y}_5$}

\psbrace[linecolor=blue,linewidth=0.5pt,ref=lC,linearc=4pt,braceWidth=0.3](7.75,0)(7.75,5.40){\color{blue}$y_5$}
\psaxes[Ox=0,Oy=0,Dx=1,Dy=1,dy=0.45,dx=0.75,ticksize=0
3pt]{->}(1,0)(11,7)
\psplot[plotstyle=line]{1}{10.5}{0.6858 x mul 0.42885 sub}
\psline[linestyle=dotted](7.75,0)(7.75,5.40)
\psdots(3.25,1.80)
\psdots(4.75,2.70)
\psdots(2.50,1.35)
\psdots(7.00,4.05)
\psdots(7.75,5.40)
\psdots(10.00,6.30)
\end{pspicture}
\end{document}
---------->end code<------------------

*File List*
article.cls 2001/04/21 v1.4e Standard LaTeX document class
size10.clo 2001/04/21 v1.4e Standard LaTeX file (size option)
pstricks.sty 2004/05/12 v0.2l LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex 2004/06/22 v1.04 `PSTricks' (tvz)
xcolor.sty 2004/07/04 v2.00 LaTeX color extensions (UK)
color.cfg 2001/08/31 v1.1 color configuration of teTeX/TeXLive
dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pstricks-add.sty 2004/07/18 package wrapper for pstricks-add.tex
(hv)
pstricks-add.tex 2004/11/13 v2.25 `PSTricks-add' (hv)
pst-xkey.tex 2005/02/22 v1.5 PSTricks specialization of xkeyval (HA)
xkeyval.sty 2005/08/12 v2.5d package option processing (HA)
xkeyval.tex 2005/08/12 v2.5d key=value parser (HA)
***********
Herbert Voss
2005-09-17 06:37:05 UTC
Permalink
Post by J***@gmail.com
There is some different in the output figure, when the
``linecolor=blue'' were removed from the following code or not. Why?
update your xcolor package and also pstricks-add.

Herbert

xcolor.sty 2005/09/11 v2.04a04 LaTeX color extensions (UK)
pstricks-add.sty 2005/03/03 package wrapper for pstricks-add.tex (hv)
pstricks-add.tex 2005/09/08 v2.61 `PSTricks-add' (hv)
--
http://TeXnik.de/
http://PSTricks.tug.org/
ftp://ftp.dante.de/tex-archive/info/math/voss/mathmode/Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
J***@gmail.com
2005-09-17 08:05:13 UTC
Permalink
I update all pstricks related package and xcolor package to the latest
version, that I can find in CTAN. I cannot got the version you give.

It seems that the previous problem disappear.

However, the color lines now seem wider than the black line. In fact,
it should thinner. And the least brace now change, and not the one I
want, it seems that the arm of the brace overlay...
Herbert Voss
2005-09-17 08:17:15 UTC
Permalink
Post by J***@gmail.com
I update all pstricks related package and xcolor package to the latest
version, that I can find in CTAN. I cannot got the version you give.
It seems that the previous problem disappear.
However, the color lines now seem wider than the black line. In fact,
it should thinner. And the least brace now change, and not the one I
want, it seems that the arm of the brace overlay...
here is what I get http://perce.de/temp/testA.pdf
with the following code

Herbert


\documentclass{article}
\usepackage{pstricks,pstricks-add}
\listfiles
\begin{document}

\begin{pspicture}(12,7)

\psbrace[linecolor=blue,ref=rC,rot=180,linearc=2pt,linewidth=0.5pt,braceWidth=0.2]%
(7.75,5.40)(7.75,4.8861){\color{blue}$e_5$}

\psbrace[linecolor=blue,ref=rC,rot=180,linearc=4pt,linewidth=0.5pt,braceWidth=0.3]%
(7.75,4.8861)(7.75,0){\color{blue}$\hat{y}_5$}

\psbrace[linecolor=blue,ref=lC,linearc=4pt,linewidth=0.5pt,braceWidth=0.3]%
(7.75,0)(7.75,5.40){\color{blue}$y_5$}
\psaxes[dy=0.45,dx=0.75,ticksize=0 3pt]{->}(1,0)(11,7)
\psplot[plotstyle=line]{1}{10.5}{0.6858 x mul 0.42885 sub}
\psline[linestyle=dotted](7.75,0)(7.75,5.40)
\psdots(3.25,1.80)\psdots(4.75,2.70)\psdots(2.50,1.35)
\psdots(7.00,4.05)\psdots(7.75,5.40)\psdots(10.00,6.30)
\end{pspicture}

\end{document}
--
http://TeXnik.de/
http://PSTricks.tug.org/
ftp://ftp.dante.de/tex-archive/info/math/voss/mathmode/Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
J***@gmail.com
2005-09-17 08:39:41 UTC
Permalink
It's that I want.
However, I cannot get that result in my system. Would you like to give
me a temperary downloadable pstricks and related pacage.

You can see the result I get from:
http://www.ctex.org/forums/index.php?act=Attach&type=post&id=18053
or
http://www.newsmth.net/bbscon.php?bid=460&id=224829&ap=1052

*File List*
article.cls 2001/04/21 v1.4e Standard LaTeX document class
size10.clo 2001/04/21 v1.4e Standard LaTeX file (size option)
pstricks.sty 2005/06/02 v0.24 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex 2005/08/13 v1.10 `PSTricks' (tvz)
xcolor.sty 2005/06/06 v2.03 LaTeX color extensions (UK)
color.cfg 2001/08/31 v1.1 color configuration of teTeX/TeXLive
dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pstricks-add.sty 2005/03/03 package wrapper for pstricks-add.tex
(hv)
pstricks-add.tex 2005/08/06 v2.59 `PSTricks-add' (hv)
pst-xkey.tex 2005/02/22 v1.5 PSTricks specialization of xkeyval (HA)
xkeyval.sty 2005/08/12 v2.5d package option processing (HA)
xkeyval.tex 2005/08/12 v2.5d key=value parser (HA)
***********
Herbert Voss
2005-09-17 08:47:48 UTC
Permalink
Post by J***@gmail.com
It's that I want.
However, I cannot get that result in my system. Would you like to give
me a temperary downloadable pstricks and related pacage.
http://www.ctex.org/forums/index.php?act=Attach&type=post&id=18053
or
http://www.newsmth.net/bbscon.php?bid=460&id=224829&ap=1052
pstricks-add.tex 2005/08/06 v2.59 `PSTricks-add' (hv)
try the pstricks-add.tex from
http://www.perce.de/LaTeX/pstricks-add/

if it doesn't help, I'll send you all of my files.

Herbert
--
http://TeXnik.de/
http://PSTricks.tug.org/
ftp://ftp.dante.de/tex-archive/info/math/voss/mathmode/Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
J***@gmail.com
2005-09-17 08:54:32 UTC
Permalink
Now it works.

Thank you very much!

Jinsong

Loading...