Quarto sizes of graphviz etc figures
I couldn’t make a graph large enough to fill the screen, increasing fig-width didn’t help.
Solution: increase both fig-width and fig-height!
{dot}
//| fig-width: 12
//| fig-height: 9
digraph G {
rankdir=LR;
..
Execution Options – Quarto has figure options that lists the default sizes of figures based on output formats. Couldn’t find them because was looking in figures/graphviz etc. pages, not execution. …
For reveal slides, it’s 9 x 5.
Apparently it didn’t want to increase the 5 till I explicitly told it to, then width started increasing as well.
Both superscripts and subscripts
… are hard and you have to use a table.
digraph Neural_Network {
rankdir=LR;
ranksep=1.3;
node [shape=circle, style=filled, fontcolor=white, fontsize=25, fillcolor="blue", color="black"];
subgraph cluster_0 {
node [fillcolor="#2c3e50", style="filled"];
x1 [label=<
<TABLE border="0" cellborder="0" cellspacing="0">
<TR><TD rowspan="2" style="...">X</TD><TD style="...">1</TD></TR>
<TR> <TD style="...">1</TD></TR>
</TABLE>>];
x2 [label=<
<TABLE border="0" cellborder="0" cellspacing="0">
<TR><TD rowspan="2" style="...">X</TD><TD style="...">1</TD></TR>
<TR> <TD style="...">2</TD></TR>
</TABLE>>];
}
sum [label=<∑<FONT color="yellow" point-size="10">(⎰)</FONT>>, fillcolor="#27ae60", width=0.8, height=0.8, fixedsize=true];
y [label=<y<sup>1</sup>>];
edge [style=solid, color="#2c3e50"];
x2 -> sum;
x1 -> sum;
edge [style=solid, color="#27ae60"];
sum -> y;
{rank=same; x1; x2;}
}
Nel mezzo del deserto posso dire tutto quello che voglio.
comments powered by Disqus