Skip to content

Commit 84dccc3

Browse files
authored
Merge pull request #12020 from meeseeksmachine/auto-backport-of-pr-12019-on-v3.0.x
Backport PR #12019 on branch v3.0.x (typo: s/unmultipled/unmultiplied)
2 parents af1bce3 + 98c3dd4 commit 84dccc3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/matplotlib/backends/backend_cairo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ def _draw_paths():
338338
_draw_paths()
339339

340340
def draw_image(self, gc, x, y, im):
341-
im = cbook._unmultipled_rgba8888_to_premultiplied_argb32(im[::-1])
341+
im = cbook._unmultiplied_rgba8888_to_premultiplied_argb32(im[::-1])
342342
surface = cairo.ImageSurface.create_for_data(
343343
im.ravel().data, cairo.FORMAT_ARGB32,
344344
im.shape[1], im.shape[0], im.shape[1] * 4)

lib/matplotlib/backends/backend_gtk3agg.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def on_draw_event(self, widget, ctx):
4646
width = int(bbox.x1) - int(bbox.x0)
4747
height = int(bbox.y1) - int(bbox.y0)
4848

49-
buf = cbook._unmultipled_rgba8888_to_premultiplied_argb32(
49+
buf = cbook._unmultiplied_rgba8888_to_premultiplied_argb32(
5050
np.asarray(self.copy_from_bbox(bbox)))
5151
image = cairo.ImageSurface.create_for_data(
5252
buf.ravel().data, cairo.FORMAT_ARGB32, width, height)

lib/matplotlib/backends/backend_qt5agg.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def paintEvent(self, event):
5353
[[left, self.renderer.height - (top + height * self._dpi_ratio)],
5454
[left + width * self._dpi_ratio, self.renderer.height - top]])
5555
reg = self.copy_from_bbox(bbox)
56-
buf = cbook._unmultipled_rgba8888_to_premultiplied_argb32(
56+
buf = cbook._unmultiplied_rgba8888_to_premultiplied_argb32(
5757
memoryview(reg))
5858
qimage = QtGui.QImage(buf, buf.shape[1], buf.shape[0],
5959
QtGui.QImage.Format_ARGB32_Premultiplied)

lib/matplotlib/cbook/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2057,7 +2057,7 @@ def _premultiplied_argb32_to_unmultiplied_rgba8888(buf):
20572057
return rgba
20582058

20592059

2060-
def _unmultipled_rgba8888_to_premultiplied_argb32(rgba8888):
2060+
def _unmultiplied_rgba8888_to_premultiplied_argb32(rgba8888):
20612061
"""
20622062
Convert an unmultiplied RGBA8888 buffer to a premultiplied ARGB32 buffer.
20632063
"""

0 commit comments

Comments
 (0)