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

Commit56ee1b2

Browse files
authored
Merge pull request#12017 from meeseeksmachine/auto-backport-of-pr-12016-on-v3.0.x
Backport PR#12016 on branch v3.0.x (Fix AttributeError in GTK3Agg backend)
2 parents0e3d8bc +b7aa194 commit56ee1b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎lib/matplotlib/backends/backend_gtk3agg.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
importnumpyasnp
44

5+
from ..importcbook
56
from .importbackend_agg,backend_cairo,backend_gtk3
67
from ._gtk3_compatimportgi
78
from .backend_cairoimportcairo
@@ -45,7 +46,7 @@ def on_draw_event(self, widget, ctx):
4546
width=int(bbox.x1)-int(bbox.x0)
4647
height=int(bbox.y1)-int(bbox.y0)
4748

48-
buf=backend_cairo._unmultipled_rgba8888_to_premultiplied_argb32(
49+
buf=cbook._unmultipled_rgba8888_to_premultiplied_argb32(
4950
np.asarray(self.copy_from_bbox(bbox)))
5051
image=cairo.ImageSurface.create_for_data(
5152
buf.ravel().data,cairo.FORMAT_ARGB32,width,height)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp