Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix zlabel on 3D axes being cut off#28576

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
juanis2112 wants to merge2 commits intomatplotlib:main
base:main
Choose a base branch
Loading
fromjuanis2112:fix-zlabel
Open
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletionslib/mpl_toolkits/mplot3d/axis3d.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -720,9 +720,9 @@ def get_tightbbox(self, renderer=None, *, for_layout_only=False):

if self.line.get_visible():
other.append(self.line.get_window_extent(renderer))
if (self.label.get_visible() andnot for_layout_only and
self.label.get_text()):
other.append(self.label.get_window_extent(renderer))
if (self.label.get_visible() andself.label.get_text()):
bb =self.label.get_window_extent(renderer)
other.append(bb)

return mtransforms.Bbox.union([*bb_1, *bb_2, *other])

Expand Down
View file
Open in desktop
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Request that a fix for this image change be made prior to merging in the original fix.

Loading
Sorry, something went wrong.Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong.Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletionslib/mpl_toolkits/mplot3d/tests/test_axes3d.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -670,6 +670,16 @@ def test_surface3d_label_offset_tick_position():
ax.figure.canvas.draw()


@mpl3d_image_comparison(['axis3d_zlabel.png'], style='mpl20')
def test_surface3d_zlabel():
fig = plt.figure()
ax = fig.add_subplot(projection="3d")

ax.set_zlabel("Z Label")

ax.figure.canvas.draw()


@mpl3d_image_comparison(['surface3d_shaded.png'], style='mpl20')
def test_surface3d_shaded():
fig = plt.figure()
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp