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

Height parameter of the "Floating & rotated axis" in Figure 2.9 #83

Open
furutaka opened this issue Feb 24, 2023 · 1 comment
Open

Height parameter of the "Floating & rotated axis" in Figure 2.9 #83

furutaka opened this issue Feb 24, 2023 · 1 comment

Comments

@furutaka
Copy link

Hi, thanks for your excellent book!

It seems to me that the 50th line of coordinates/transforms‐floating‐axis.py, as well as the corresponding line of the code in rst/coordinates.rst,
ax2.set_position((xmin, ymin, xmax - xmin, ymax - xmin))
should read
ax2.set_position((xmin, ymin, xmax - xmin, ymax - ymin)),
although the difference between ymax-xmin=0.40836979896182274 and ymax-ymin=0.38490475395717544 happens to be small and not apparent in the figure...

By the way, in the official document of Matplotlib there seems to be no description of FloatingAxesHostAxes, of which FloatingSubplot is an alias; I'd be glad if you kindly lead me to it...

Thanks,
Kazuyoshi

@rougier
Copy link
Owner

rougier commented Feb 27, 2023

Thanks, can you make a PR?

As for FloatingAxesHostAxes, isn't it the other way around? (FloatingAxesHostAxes is an alias name for FloatingSubplot?)

If you check the floating_axes.py code, I think it is defined at the end.

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

2 participants