Keep hints when exporting GraphPlot

I have a very large, dense, labeled graph that I visualized using GraphPlot. I would like to show vertex labels using Tooltip, but should distribute them among people without Mathematica. Unfortunately, tooltips are removed when exporting to PDF.

Then I tried to export to HTML. Tooltips persist, but when my chart converts to .gif, it is too small to see. Is there a way to specify the size of images when exporting to HTML?

Or can someone help me figure out how to export to another format while keeping the hints?

Thanks!

+6
source share
1 answer

You just need to specify an explicit ImageSize . This can be set in the initial GraphPlot or changed using Show as follows:

 gp = GraphPlot[ {3 -> 4, 3 -> 5, {3 -> 6, "edge 3->6"}, 4 -> 6, 5 -> 6}, EdgeLabeling -> Automatic ] Export["graphplot.html", Show[gp, ImageSize -> 800], "HTML"] 
+3
source

Source: https://habr.com/ru/post/905797/


All Articles