Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project!

## pyx-user

 [PyX-user] block diagrams and flow charts From: Ryan Krauss - 2006-03-03 16:43:49 Is anyone aware of existing python code to easily make flow charts or block diagrams using PyX? I currently use a program called flow to make flow charts and another called diagraph to make block diagrams.=20 Both bascially allow you to use a simple script language to say put a block here with this label, then draw a right arrow and another block... So that the program does the math behind positioning and layout for you. They both output LaTeX picture commands, which is really nice. My only real complaint is that the picture environment in LaTeX seems to use very small arrow heads which there doesn't seem to be a way to change. It would be nice to have a little more control over these kinds of things, but drawing an entire flowchart in PyX without this layer that does the layout would be considerably more effort. Does anyone have a good solution for this? Thanks, Ryan 
 [PyX-user] Re: block diagrams and flow charts From: Ryan Krauss - 2006-03-03 17:15:12 Attachments: flow_chart.png If it helps, here is an example of the input to the flow program: Right Box 5 3 Call \lstinline!EigError!($j\omega$) in an implied for loop to get Characteristic Determinant($\omega$) Box 5 3 Plot Characteristic Determinant vs. $\omega$ to find good initial guesses for numerical search Box 5 3 Call \lstinline!FindEig!(guess) for each guess taken from the plot of Characteristic Determinant vs. $\omega$ Skip 0 0 1 1 SetTrack none Down 0.7 TxtPos [l] [l] Text 5 5 \lstinline!FindEig! calls either \lstinline!newton! to find the root of the characteristic determinant or \lstinline!fmin! to find the local minimum of the absolute value of the characteristic determinant. In both cases, \lstinline!EigError! is the cost function. and the output is attached. Thanks, Ryan On 3/3/06, Ryan Krauss wrote: > Is anyone aware of existing python code to easily make flow charts or > block diagrams using PyX? I currently use a program called flow to > make flow charts and another called diagraph to make block diagrams. > Both bascially allow you to use a simple script language to say put a > block here with this label, then draw a right arrow and another > block... So that the program does the math behind positioning and > layout for you. They both output LaTeX picture commands, which is > really nice. My only real complaint is that the picture environment > in LaTeX seems to use very small arrow heads which there doesn't seem > to be a way to change. It would be nice to have a little more control > over these kinds of things, but drawing an entire flowchart in PyX > without this layer that does the layout would be considerably more > effort. > > Does anyone have a good solution for this? > > Thanks, > > Ryan > 
 Re: [PyX-user] Re: block diagrams and flow charts From: Andre Wobst - 2006-03-05 18:09:50 Hi Ryan, On 03.03.06, Ryan Krauss wrote: > If it helps, here is an example of the input to the flow program: > Right > Box 5 3 > Call \lstinline!EigError!($j\omega$) > in an implied for loop > to get Characteristic > Determinant($\omega$) > Box 5 3 > Plot Characteristic > Determinant vs. $\omega$ > to find good initial > guesses for numerical > search > Box 5 3 > Call \lstinline!FindEig!(guess) > for each guess taken > from the plot of > Characteristic > Determinant vs. $\omega$ > Skip 0 0 1 1 > SetTrack none > Down 0.7 > TxtPos [l] [l] > Text 5 5 > \lstinline!FindEig! calls either \lstinline!newton! > to find the root of the > characteristic determinant > or \lstinline!fmin! to find the local > minimum of the absolute > value of the characteristic > determinant. In both cases, > \lstinline!EigError! is the cost function. > > and the output is attached. Nice. But I'm sorry I have to say that we don't yet have a solution in the PyX core at the moment. In the end I want to have "boxes" in PyX, which are like canvases, but have additional features like - a border - connectors between boxes - alignment functions - clip the content (maybe optionally only) While you'll find the concept of boxes and connectors within PyX already, they are not end-user friendly yet. It might be an option to use what we already have or write some small own functions (or classes or similar) to simplify the task you want to do to some simple function calls. André -- by _ _ _ Dr. André Wobst / \ \ / ) wobsta@..., http://www.wobsta.de/ / _ \ \/\/ / PyX - High quality PostScript and PDF figures (_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/