Skip to content
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

Image does not scale properly in the window after rotating the image #397

Open
logankilpatrick opened this issue Oct 11, 2019 · 6 comments

Comments

@logankilpatrick
Copy link
Contributor

Has there been any further dev on this? I remember @asinghvi17 saying it was sort of fixed in a branch somewhere but that it wasn’t done yet.

@SimonDanisch
Copy link
Member

Can you please post a short code that reproduces the behavior?

@logankilpatrick
Copy link
Contributor Author

I guess:

using Makie

image1 = image(AbstractPlotting.logo(), scale_plot = false)
rotate!(image1, 0.5pi)

 holder = vbox(
     image1,
     image(rand(100, 500), scale_plot = false),
 )
 
 display(holder)

will show the issue. But it's better seen here where the energy plot on the bottom right is at it's full size since it hasnt been rotated, but the rest are all sized weirdly since they were rotated:

issueWithMakie

@logankilpatrick
Copy link
Contributor Author

@SimonDanisch how can I get my makie plots on the left to be sized the same like they are on the Plot's pane on the right?

@logankilpatrick
Copy link
Contributor Author

The essence of what I want: the plot/sub-scene to automatically take up all available space. You can see the difference in the two sizings above. I am looking for the uniform size that plots.jl gives. @asinghvi17

@asinghvi17
Copy link
Member

Ah, that would need better layouting support. Right now it's sort of patched together AFAIU...there is a layout constraint solver, we just have to integrate it with axes and all that.

@SimonDanisch
Copy link
Member

@jkrumbiegel and I are trying to figure this out atm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants