1
$\begingroup$

I looked at Labeling vertices by number in Graph: Getting text to display at the right size but did not find an answer for my case.

I want to save a table of graphs on file, pdf or PNG, for a presentation.

In my Notebook, I can see the table of graph like this:

enter image description here

I tried with Graph options:

VertexLabels -> "Name",
VertexSize -> Automatic

but still labels get clogged.

I can manually stretch the output size to make it readable, like this:

enter image description here

However, when I save it, the size of labels get not consistent with what I see.

Is there a way to automatically adjust the output file dimensions in function of the size of labels and number of vertexes, so that there is no overlapping and graph is readable?

An alternative solution, it can also be change the size of text in function of a centrality measure. I can do it in my notebook, but it is challenging on saved file for some text get rendered supersmall (that is, on pdf, you gotta zoom it quite much).

$\endgroup$
  • $\begingroup$ Can you show the saved version to compare? $\endgroup$ – rhermans Jul 31 '18 at 20:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.