Graphics, Figures & TablesPSTricks | Problem with Fill Style for Dots

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
niles
Posts: 92
Joined: Mon Dec 01, 2008 9:35 pm

PSTricks | Problem with Fill Style for Dots

Post by niles »

Hi

The following PS-figure has been generated for me using a script

Code: Select all

\documentclass{article}
\usepackage{pstricks, pst-node, pst-plot, pst-circ}
\usepackage{moredefs}
\usepackage[%
    paperwidth = 11.508871cm, % add 0.5%
    paperheight= 8.992674cm, % 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{\MarkerSize}          \setlength{\MarkerSize}{4pt}%
\newrgbcolor{GridColor}{0.8 0.8 0.8}%
%
% Begin Figure:-------------------------------------------
\psset{xunit=0.200000\plotwidth,yunit=0.157742\plotwidth}%
\begin{pspicture}(-4.564516,1.444444)(1.161290,7.116959)%


% New Line DATA: ----
\newrgbcolor{color361.0049}{0  0  1}
\psline[plotstyle=line,linejoin=1,showpoints=true,dotstyle=Bo,dotsize=\MarkerSize,linestyle=none,linewidth=\LineWidth,linecolor=color361.0049]
(-3.397983,6.065815)(-3.096953,5.648616)(-2.795923,5.614319)(-2.699013,5.394890)(-2.494893,5.243411)
(-2.397983,5.227808)(-2.193863,5.150207)(-2.096953,4.989232)(-2.000043,4.942066)(-1.795923,4.606563)
(-1.699013,4.427153)(-1.494893,4.425839)(-1.397983,4.168267)(-1.301073,4.298931)(-1.096953,4.039365)
(-1.000043,4.013362)(-0.795923,3.900368)(-0.699013,3.923646)(-0.602103,3.930792)(-0.397983,3.628397)
(-0.301073,3.802975)(-0.096953,3.479803)(-0.000043,3.433223)(0.300987,3.023036)

\end{pspicture}%
\end{document}
What I am interested in is to fill the circles with the same color as the linecolor. What I have tried to use is

Code: Select all

fillstyle=solid, fillcolor=blue
but this also changes the color between the data points. I don't understand why I get this behavior. If anyone can shed some light on this, I would be very happy.

Best,
Niles.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

PSTricks | Problem with Fill Style for Dots

Post by localghost »

Code: Select all

\psline[showpoints=true,dotsize=\MarkerSize,linestyle=none,linecolor=color361.0049]
(-3.397983,6.065815)(-3.096953,5.648616)(-2.795923,5.614319)(-2.699013,5.394890)(-2.494893,5.243411)
(-2.397983,5.227808)(-2.193863,5.150207)(-2.096953,4.989232)(-2.000043,4.942066)(-1.795923,4.606563)
(-1.699013,4.427153)(-1.494893,4.425839)(-1.397983,4.168267)(-1.301073,4.298931)(-1.096953,4.039365)
(-1.000043,4.013362)(-0.795923,3.900368)(-0.699013,3.923646)(-0.602103,3.930792)(-0.397983,3.628397)
(-0.301073,3.802975)(-0.096953,3.479803)(-0.000043,3.433223)(0.300987,3.023036)

Thorsten
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

PSTricks | Problem with Fill Style for Dots

Post by CrazyHorse »

niles wrote:Hi

The following PS-figure has been generated for me using a script

Code: Select all

% New Line DATA: ----
\newrgbcolor{color361.0049}{0  0  1}
\psline[plotstyle=line,linejoin=1,showpoints=true,dotstyle=Bo,dotsize=\MarkerSize,linestyle=none,linewidth=\LineWidth,linecolor=color361.0049]
use

Code: Select all

dotstyle=*,
niles
Posts: 92
Joined: Mon Dec 01, 2008 9:35 pm

Re: PSTricks | Problem with Fill Style for Dots

Post by niles »

Thanks for the help to both of you.
Post Reply