I ran into a minor annoyance while using Luxor.jl to draw simple shapes: the drawing doesn’t show centered in the Juno plots panel, but is “zoomed in”.
So when I run
@svg begin
juliacircles()
end
I have to scroll downwards in the plots panel to see the bottom two circles of the Julia logo.
How can I ensure that drawings fit in the plots panel when displayed?
Using @png results in a similar behaviour, except that I have to click and drag downwards in order to see the bottom two circles from the example above. It seems that drawings are shown zoomed-in regardless of the macro.
I experimented using the dimension arguments in Drawing():
@png begin
Drawing(200, 200)
juliacircles()
end
which is small enough to fit in the plots panel (I believe the default dimensions were 600x600).
It seems that the plots panel shows the drawing in its entirety. It would be nice if the panel displayed a scaled version of the drawing instead.
Thank you for showing me Main.Atom.plotsize(), I’ll use it for setting the canvas size in Drawing(). However, I wish the plots panel would scale the canvas when displaying a drawing.