| Description: |
The following code produces a simple diagram with two boxes and two arrows. While superficially the arrows are created with a very similar command, the second one is drawn incorrectly:
package require diagram
pack [canvas .c -width 750 -height 800]
::diagram d .c {
move to [350 20]
set HYDRO [box "Hydrodynamic\nmodel" width 200 justify center]
set WQ [box "Water quality\nmodel" width 200 justify center with north at [[$HYDRO south] - [0 -100]] ]
arrow from [$HYDRO south] to [$WQ north] text "Flow field" textfont "Helvetica 12 italic" rjust south
set NEWPOS [[$WQ south] + [0 70]]
arrow from [$WQ south] to $NEWPOS text "Results" textfont "Helvetica 12 italic" rjust south
}
|