-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
size attribute ignored #30
Comments
I also tried, as explained in the README, but it doesn't work: DEFAULTS_INSPECTDR = Dict(
:rendersvg => true,
#Special options available @ initialization:
:droppoints => :always, #One of: {:always, :never, :noglyph, :hasline}
:notation_x => :SI, #Change x-axis notation
:notation_y => :SI, #Change y-axis notation
:fontname => "Sans", #Change default font family
:fontscale => 1.2, #Scale up/down font default sizes
#Basic plot options:
:halloc_data => 1000,
:valloc_data => 700,
)
using Plots; inspectdr() |
Solution from discourse: using Plots; inspectdr()
x=0:0.05:100
y1=sin.(x)
p1 = plot(x,y1, legend=false)
pIDR=display(p1); #Display with InspectDR and keep plot object
resize!(pIDR.wnd, 1200, 700) #Resize GTK window directly Well, this is more like a work-around. Other plotting backends of Plots.jl use the size attribute also for as window size, so I think for consistency it would be good if InspectDR would behave in the same way. |
That does sound like a very good argument - even if I wasn't initially looking at it that way. I admit, I'm not 100% certain on how to do this... because the I don't see myself looking into this in the near future, but feel free to take a look that the code in Plots.jl: I typically use one of the more complete/actively developed backends as an example (like GR): |
I am not able to change the size of the plot window. Example code:
The size is always small, about 640x480. How can I increase the initial size of the plot window?
The text was updated successfully, but these errors were encountered: