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

Aspect and layouts #1144

Open
vascotenner opened this issue Feb 22, 2017 · 1 comment
Open

Aspect and layouts #1144

vascotenner opened this issue Feb 22, 2017 · 1 comment

Comments

@vascotenner
Copy link
Contributor

vascotenner commented Feb 22, 2017

Changing the aspect ratio shrinks one of the axes:

hv.Curve((1,1))(plot=dict(aspect=0.5))

download

However, when combining in a layout, it elongates the y axis

hv.Curve((1,1))+hv.Curve((1,1))(plot=dict(aspect=0.5))

download 1

This behaviour would make sense if this:

  • Keeps the relevant axis aligned:
    • for horizontal layouts, always scale the x axis
    • vertical: scale y-axis
  • aligns the values on the axis

I would always shrink axes, never elongate them

Related: #199

Solution:

%%opts Layout [aspect_weight=1]
hv.Curve((1,1))+hv.Curve((1,1))(plot=dict(aspect=0.5))
@philippjfr
Copy link
Member

Consider enabling matplotlib aspect_weight=1 by default for v2.0

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

No branches or pull requests

2 participants