1
submitted 6 days ago* (last edited 6 days ago) by activistPnk@slrpnk.net to c/dataviz

I have something like this just as a sample starting experiment:

digraph unix {
        margin=0;
        ratio=0.5625; /* 9/16 */
        subgraph cluster_cf {
                label = "imperial Cloudflare empire";           
rankdir="LR";orientation="landscape";/*newrank=true;*/
shitjustworks_philly [shape=rectangle, label="🏰[!philly@sh.itjust.works](/c/philly@sh.itjust.works) “philodelphia”"];
shitjustworks_philosophy [shape=rectangle, label="🏰[!philosophy@sh.itjust.works](/c/philosophy@sh.itjust.works) “Philosophy”"];
philosophycafe_philosophy_cafe_ja [shape=rectangle, label="🏰[!philosophy_cafe_ja@philosophy.cafe](/c/philosophy_cafe_ja@philosophy.cafe) “哲学カフェ(日本語)”"];
literaturecafe_Philosophy [shape=rectangle, label="🏰[!Philosophy@literature.cafe](/c/Philosophy@literature.cafe) “philosophy”"];
literaturecafe_philosophicalpoetry [shape=rectangle, label="🏰[!philosophicalpoetry@literature.cafe](/c/philosophicalpoetry@literature.cafe) “Philosophical Poetry”"];
lemmyworld_askphilosophy [shape=rectangle, label="🏰[!askphilosophy@lemmy.world](/c/askphilosophy@lemmy.world) “askphilosophy”"];
lemmyworld_debatephilosophy [shape=rectangle, label="🏰[!debatephilosophy@lemmy.world](/c/debatephilosophy@lemmy.world) “Debate Philosophy”"];
lemmyworld_indianphilosophy [shape=rectangle, label="🏰[!indianphilosophy@lemmy.world](/c/indianphilosophy@lemmy.world) “Hehehh”"];
lemmyworld_philos [shape=rectangle, label="🏰[!philos@lemmy.world](/c/philos@lemmy.world) “Philos”"];
lemmyworld_philosophy [shape=rectangle, label="🏰[!philosophy@lemmy.world](/c/philosophy@lemmy.world) “Philosophy”"];
        }
        123           [shape=rectangle, label="🗽☯[!naturalphilosophy@slrpnk.net](/c/naturalphilosophy@slrpnk.net)"];
        123 -> shitjustworks_philly [label="blocks",fontcolor=red,color=red];
        { rankdir=TB; cluster_cf}
}

The problem is that the nodes are wide due to wide labels. So they should be vertically stacked inside the subgraph. But they are horizontally all on the same line, making the graph extremely wide. I have fiddled with various rankdir settings (TB and LR), and tried orientation="landscape". These settings have no influence.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here
this post was submitted on 09 Aug 2025
1 points (100.0% liked)

Dataviz and Infographics

31 readers
1 users here now

Logo adapted from VectorStock / Razzan99

Welcome! This is where information gets condensed and presented in an easily digestable manner. We encourage all forms of statistics, including text/tables for the visually challenged.

Unless you made the graphics yourself (preface title with [OC]), please credit the author(s). Cite your sources whenever possible. I will occasionally update and tidy-up the sidebar. Thanks for reading!

founded 2 years ago
MODERATORS