[BlindMath] dot language: shrinking diagrams to fit the screen

Łukasz Grabowski graboluk at gmail.com
Fri Jun 15 22:54:14 UTC 2018


The resulting layout looks like this: 10 separate diagrams on a
horizontal line, each containing two nodes and a single vertical arrow
between them. 

What you probably want is 10 separate diagrams placed vertically one
after another, each containing two nodes and a single horizontal arrow
between them, right?	

Ok, I'll give you a possible solution without latex, but I think
learning some latex could be helpful. The point is that your
diagram is not really a single flowchart, it's 10 flowcharts which you
need to arrange in a correct way - I find working with dot awkward
when such layouting details are important.

But you can do something like this:

digraph All
{
packmode="array_u1";
rankdir=LR;

subgraph A
{
sortv=1;
"Analyst receives an alert from any source" -> "she checks the alert against
the triage matrix and incident classification criteria" ;
}

subgraph B
{
sortv=2;
"the analyst" -> "will escalate the event or series of events to the
incident manager"
}

and so on  (remember about final } to finish the digraph All)..

To explain: 
rankdir=LR will make your edges horizontal when possible.

packmode array_u1 means that the subgraphs will be placed
vertically

sortv commands make sure that they will be placed in
the correct order.

Now the dot layouting engine will not understand those extra commands,
you have to use another layouting engine, e.g.:
circo example.dot -Tsvg -o example.svg

(circo is also part of graphviz)

Best,
Lukasz
 


On Fri, 15 Jun 2018 23:22:05 +0530
Pranav Lal via BlindMath <blindmath at nfbnet.org> wrote:

> Hi,
> 
> Sure, see below for the code.
> The command I used to generate the graphic output is
> Dot -Tpng imp.gp -O
> Dot -Tsvg imp.gp -O
> 
> digraph "Incident management process"
> {
> "Analyst receives an alert from any source" -> "she checks the alert
> against the triage matrix and incident classification criteria";
> "the analyst" -> "will escalate the event or series of events to the
> incident manager";
> "the incident manager will verify the work done so far" -> "if he
> determines an incident must be raised he will raise it";
> "if the incident manager rejects the alert" -> "the analyst will then
> document the alert as a false positive";
> "The incident manager accepts the alert" -> "raises an incident";
> "the SOC uses communication matrices" -> "stake holders";
> "stakeholders act" -> "inform SOC";
> "SOC informs" -> "company security team";
> "the SOC tracks " -> "the incident to closure";
> "SOC captures lessons learnt" -> "in its knowledge base."
> }
> 
> -----Original Message-----
> From: BlindMath <blindmath-bounces at nfbnet.org> On Behalf Of Lukasz
> Grabowski via BlindMath
> Sent: Friday, June 15, 2018 3:19 PM
> To: blindmath at nfbnet.org
> Cc: Łukasz Grabowski <graboluk at gmail.com>
> Subject: Re: [BlindMath] dot language: shrinking diagrams to fit the
> screen
> 
> Pranav, Could you post the source code for your diagram and exact
> command which you used to get the svg and png outputs?
> 
> Lukasz
> 
> On Fri, 15 Jun 2018 15:09:38 +0530
> Pranav Lal via BlindMath <blindmath at nfbnet.org> wrote:
> 
> > Hi all,
> > 
> > I produced a flowchart using dot. I can read the diagram fine if I
> > use its svg output in Google  chrome. However, I had a sighted user
> > check the png output and the svg output. The png output is small
> > while the svg output is too big. How do I size these diagrams?
> > 
> > Note:
> > By a flowchart I mean a diagram consisting of lines and boxes. I
> > think the correct term for such diagrams is block diagrams.
> > 
> > Pranav
> > 
> > 
> > _______________________________________________
> > BlindMath mailing list
> > BlindMath at nfbnet.org
> > http://nfbnet.org/mailman/listinfo/blindmath_nfbnet.org
> > To unsubscribe, change your list options or get your account info
> > for BlindMath:
> > http://nfbnet.org/mailman/options/blindmath_nfbnet.org/graboluk%40gmai
> > l.com
> > BlindMath Gems can be found at
> > <http://www.blindscience.org/blindmath-gems-home>  
> 
> 
> _______________________________________________
> BlindMath mailing list
> BlindMath at nfbnet.org
> http://nfbnet.org/mailman/listinfo/blindmath_nfbnet.org
> To unsubscribe, change your list options or get your account info for
> BlindMath:
> http://nfbnet.org/mailman/options/blindmath_nfbnet.org/pranav.lal%40gmail.co
> m
> BlindMath Gems can be found at
> <http://www.blindscience.org/blindmath-gems-home>
> 
> 
> _______________________________________________
> BlindMath mailing list
> BlindMath at nfbnet.org
> http://nfbnet.org/mailman/listinfo/blindmath_nfbnet.org
> To unsubscribe, change your list options or get your account info for
> BlindMath:
> http://nfbnet.org/mailman/options/blindmath_nfbnet.org/graboluk%40gmail.com
> BlindMath Gems can be found at
> <http://www.blindscience.org/blindmath-gems-home>





More information about the BlindMath mailing list