* [NTG-context] Question about drawing flowchart using chart module
@ 2023-12-27 22:47 Jeong Dal via ntg-context
0 siblings, 0 replies; only message in thread
From: Jeong Dal via ntg-context @ 2023-12-27 22:47 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Jeong Dal
[-- Attachment #1.1: Type: text/plain, Size: 1898 bytes --]
Dear all,
I tried to draw a flow chart using the module[chart].
Following the examples, I draw one.
The problem is that the size of the chart is not changed even though I changed the numbers dx,dy, width, height, and maxwidth in the \setupFLOWcharts
Please tell me how to resize the chart.
Thank you.
Dalyoung
%%%%%%
\usemodule[chart]
\starttext
\startFLOWchart[bigger]
\setupFLOWcharts
[option=test,
nx=3,
ny=6,
dx=\bodyfontsize,
dy=\bodyfontsize,
width=6cm,%.5\bodyfontsize,
height=10cm,%.3\bodyfontsize,
maxwidth=.5\textwidth
]
\startFLOWcell
\name{a} \location{2,1} \shape{loop} \text{start}
\connection[bt]{b}
\stopFLOWcell
\startFLOWcell
\name{b} \location{2,2} \shape{79} \text{input $a,b$}
\connection[bt]{c}
\stopFLOWcell
\startFLOWcell
\name{c} \location{2,3} \shape{decision} \text{$a-b > 0$}
\connection[lt]{d} \comment[l]{Yes}
\connection[rt]{g} \comment[r]{No}
\stopFLOWcell
\startFLOWcell
\name{d} \location{1,5} \shape{76} \text{$a$ is bigger \\ than $b$}
\connection[bt]{f}
\stopFLOWcell
\startFLOWcell
\name{e} \location{2,5} \shape{76} \text{$b$ is bigger \\ than $a$}
\connection[bt]{f}
\stopFLOWcell
\startFLOWcell
\name{g} \location{3,4} \shape{decision} \text{$a - b < 0$}
\connection[lt]{e} \comment[l]{Yes}
\connection[bt]{h} \comment[b]{No}
\stopFLOWcell
\startFLOWcell
\name{h} \location{3,5} \shape{76} \text{$a$ is equal \\ to $b$}
\connection[bt]{f}
\stopFLOWcell
\startFLOWcell
\name{f} \location{2,6} \shape{loop} \text{stop}
\stopFLOWcell
\stopFLOWchart
\placefigure
[here][fig:bigger]
{Which is bigger?}
{\tx\setupFLOWcharts\FLOWchart[bigger]}
\stoptext
[-- Attachment #1.2: Type: text/html, Size: 16390 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-27 22:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-27 22:47 [NTG-context] Question about drawing flowchart using chart module Jeong Dal via ntg-context
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).