Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ee8e2ad

Browse files
authored
Merge pull request #12019 from anntzer/typo
typo: s/unmultipled/unmultiplied
2 parents 248399e + 54faaf1 commit ee8e2ad

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/matplotlib/backends/backend_cairo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ def _draw_paths():
337337
_draw_paths()
338338

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

lib/matplotlib/backends/backend_gtk3agg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def on_draw_event(self, widget, ctx):
4343
width = int(bbox.x1) - int(bbox.x0)
4444
height = int(bbox.y1) - int(bbox.y0)
4545

46-
buf = cbook._unmultipled_rgba8888_to_premultiplied_argb32(
46+
buf = cbook._unmultiplied_rgba8888_to_premultiplied_argb32(
4747
np.asarray(self.copy_from_bbox(bbox)))
4848
image = cairo.ImageSurface.create_for_data(
4949
buf.ravel().data, cairo.FORMAT_ARGB32, width, height)

lib/matplotlib/backends/backend_qt5agg.py

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2060,7 +2060,7 @@ def _premultiplied_argb32_to_unmultiplied_rgba8888(buf):
20602060
return rgba
20612061

20622062

2063-
def _unmultipled_rgba8888_to_premultiplied_argb32(rgba8888):
2063+
def _unmultiplied_rgba8888_to_premultiplied_argb32(rgba8888):
20642064
"""
20652065
Convert an unmultiplied RGBA8888 buffer to a premultiplied ARGB32 buffer.
20662066
"""

0 commit comments

Comments
 (0)