GraphPlot.jl icon indicating copy to clipboard operation
GraphPlot.jl copied to clipboard

How can I control the output plot size in Juno's Plots pane?

Open AnselmJeong opened this issue 6 years ago • 3 comments

I've been using GraphPlot.jl in Juno IDE environment (add-on on ATOM).

The output from gplot() command in Juno's Plots pane is so small so that it is hard to identify node or edge labels. Unlike ordinary output from plot() command, zoom in or zoom out options are disabled. I cannot find any arguments in gplot() to control the overall size of the output plot. Do you know how?

g = graphfamous("karate")
gplot(g)

image

Thanks in advance…

AnselmJeong avatar Sep 07 '19 05:09 AnselmJeong

+1 for controlling of graph size, I'm on IJulia jupyter-notebook backend

lihebi avatar Sep 01 '20 13:09 lihebi

As GraphPlot uses Compose internally, you could just change the default settings there:

julia> using Compose
julia> set_default_graphic_size(20cm,20cm)

That should make the drawing area bigger.

simonschoelly avatar Sep 28 '20 22:09 simonschoelly

Might make sense to export set_default_graphic_size in GraphPlot and add this to the docs

hdavid16 avatar Jul 27 '22 16:07 hdavid16