[pstricks] Drawing algorithm diagrams and conceptual figures
Herbert Voss
herbert49 at googlemail.com
Sun Sep 9 21:34:50 CEST 2007
chojny wrote:
> > Herbert Voss wrote:
>>> >>>
>>> >>> - PSTricks
>> >>
>> >> no problem, for more infos/examples go to
>> >>
>> >> http://PSTricks.tug.org
>> >>
> >
> > Thank you.
> > I draw first figure (http://link.imgshare.us/99jAV7) almost completely
> > within few minutes but I get stuck.
> >
> > I can't draw wide curly braces. I make curly brace by:
> > $\rotateleft\lbrace$.
> > I tried to use \scalebox macro to widen it but without success.
works best with latest pstricks-add from CTAN, which has an updated
\psbrace macro
http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pstricks-add/
files pstricks-add.tex and pstricks-add.pro
but should also work with recent pstricks-add and \psbrace.
Here is my output: http://perce.de/temp/demo.png
Herbert
\documentclass{article}
\usepackage{pstricks-add}
\newcommand{\mybox}[1]{\pscirclebox[linecolor=gray,shadowcolor=lightgray]{\ensuremath{#1}}}
\begin{document}
\begin{figure}
\centering
%\hspace{1.5cm}
\begin{psmatrix}[mnode=r,colsep=1.8,rowsep=0.4]
[name=s1] \mybox{s_1(t)} & [name=x1] \mybox{x_1(t)} & [name=y1]
\mybox{y_1(t)}\\[0pt]
[name=s2] \mybox{s_2(t)} & [name=x2] \mybox{x_2(t)} & [name=y2]
\mybox{y_2(t)}\\[0pt]
\\[0pt]
\\[0pt]
[name=sn] \mybox{s_n(t)} & [name=xn] \mybox{x_n(t)} & [name=yn]
\mybox{y_n(t)}\\[-5pt]
[name=SN] & [name=XN] & [name=YN]
\ncline{->}{s1}{x1} \ncline{->}{s1}{x2} \ncline{->}{s1}{xn}
\ncline{->}{s2}{x1} \ncline{->}{s2}{x2} \ncline{->}{s2}{xn}
\ncline{->}{sn}{x1} \ncline{->}{sn}{x2} \ncline{->}{sn}{xn}
\ncline{->}{x1}{y1} \ncline{->}{x1}{y2} \ncline{->}{x1}{yn}
\ncline{->}{x2}{y1} \ncline{->}{x2}{y2} \ncline{->}{x2}{yn}
\ncline{->}{xn}{y1} \ncline{->}{xn}{y2} \ncline{->}{xn}{yn}
\ncline[linestyle=dotted]{s2}{sn}
\ncline[linestyle=dotted]{x2}{xn}
\ncline[linestyle=dotted]{y2}{yn}
\end{psmatrix}
\psbrace[ref=cb,rot=90,nodesepB=12pt](SN)(XN){\tabular{c}signal
missing\\$x(t)=As(t)$\endtabular}
\psbrace[ref=cb,rot=90,nodesepB=12pt](XN)(YN){\tabular{c}signal
separation\\$y(t)=Wx(t)$\endtabular}
\vspace{1.3cm}
\caption{ Figure test}
\end{figure}
\end{document}
chojny wrote:
> Herbert Voss wrote:
>>>
>>> - PSTricks
>>
>> no problem, for more infos/examples go to
>>
>> http://PSTricks.tug.org
>>
>
> Thank you.
> I draw first figure (http://link.imgshare.us/99jAV7) almost completely
> within few minutes but I get stuck.
>
> I can't draw wide curly braces. I make curly brace by:
> $\rotateleft\lbrace$.
> I tried to use \scalebox macro to widen it but without success.
>
> Could you help me?
>
> My code is below.
>
--
http://PSTricks.tug.org
http://www.dante.de/CTAN/info/math/voss/
More information about the PSTricks
mailing list