Style of inner line of 'circle split' shape

View: New views
2 Messages — Rating Filter:   Alert me  

Style of inner line of 'circle split' shape

by Martin Scharrer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I drawing state machines using the 'circle split' shapes (over the 'automata' library) and would
like to modify the style of the inner separation line, i.e. make its line width smaller than the style of the outer circle or sometimes remove it completely.
This line seems to be drawn by the 'beforebackground' code while the circle is drawn by the 'background' code of the shape.

Does anyone know if/how this is possible?

Best Regards,
Martin
 

Re: Style of inner line of 'circle split' shape

by Mark Wibrow-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

very quick, and very dirty:

\documentclass{article}

\usepackage{tikz}
\usetikzlibrary{shapes.multipart}
\begin{document}

\makeatletter
\pgfutil@namelet{pgf@sh@fbg@circle split*}{pgf@sh@fbg@circle split}
\expandafter\gdef\csname pgf@sh@fbg@circle split\endcsname{%
        \pgfmathsetlengthmacro\radius{\radius*\pgfkeysvalueof{/tikz/circle
split line}}%
        \ifdim\radius=0pt\relax%
        \else%
                \csname pgf@sh@fbg@circle split*\endcsname%
        \fi%
}
\makeatother
\tikzset{circle split line/.initial=0}


\foreach \l in {0,0.1,...,0.9,1}
        \tikz\node[draw, circle split, circle split line=\l] {A \nodepart{lower} B};

\end{document}


hope this helps

Mark

2009/6/9 Martin Scharrer <mailinglists@...>:

>
> Hi,
>
> I drawing state machines using the 'circle split' shapes (over the
> 'automata' library) and would
> like to modify the style of the inner separation line, i.e. make its line
> width smaller than the style of the outer circle or sometimes remove it
> completely.
> This line seems to be drawn by the 'beforebackground' code while the circle
> is drawn by the 'background' code of the shape.
>
> Does anyone know if/how this is possible?
>
> Best Regards,
> Martin
>
> --
> View this message in context: http://www.nabble.com/Style-of-inner-line-of-%27circle-split%27-shape-tp23942853p23942853.html
> Sent from the pgf-users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> pgf-users mailing list
> pgf-users@...
> https://lists.sourceforge.net/lists/listinfo/pgf-users
>

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
pgf-users mailing list
pgf-users@...
https://lists.sourceforge.net/lists/listinfo/pgf-users