Graphics, Figures & Tablespst-sigsys | Line crosses Block

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
SA_David
Posts: 2
Joined: Fri Oct 21, 2011 6:00 pm

pst-sigsys | Line crosses Block

Post by SA_David »

Hello,

I wrote the following Latex code, but there is something wrong with the figure it draws, where the line connecting the two blocks crosses one of the blocks. Why?

Code: Select all

\documentclass{article}
\usepackage{pst-sigsys}

\begin{document}
\begin{figure}
\begin{center}
\begin{pspicture}[showgrid](14,7)
\psset{style=RoundCorners}
\psblock(2.5,1){Dem}{Demodulator}
\psblock(5,3){DFT}{DFT}
\ncangle[angleB=90]{DFT}{Dem}
\nbput{$\{Y_k\}$}
\ncline{Dem}{Out}
\end{pspicture}
\end{center}
\end{figure}
\end{document}
Thanks in advance

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

SA_David
Posts: 2
Joined: Fri Oct 21, 2011 6:00 pm

Re: pst-sigsys | Line crosses Block

Post by SA_David »

Anyone familiar with block diagrams?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

pst-sigsys | Line crosses Block

Post by localghost »

You should always specify to angles for the connecting line. Otherwise the origin is always initialized with "0".

Code: Select all

\documentclass{article}
\usepackage{pst-sigsys}

\begin{document}
  \begin{pspicture}[showgrid](14,7)
    \psset{style=RoundCorners}
    \psblock(2.5,1){Dem}{Demodulator}
    \psblock(5,3){DFT}{DFT}
    \ncangle[angleA=180,angleB=90]{DFT}{Dem}
    \nbput{$\{Y_k\}$}
    \ncline{Dem}{Out}
  \end{pspicture}
\end{document}
The pst-sigsys manual has the details.


Thorsten
Post Reply