You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
imshow(..., alpha=0.5) produces different results in 2.x #6540
I think I have whittled this down sufficiently from the Cartopy example that is failing. Running imshow(..., alpha=0.5) produces a different result in 2.0.0b1 vs. 1.5.1 (both installed via conda.)
I think I have whittled this down sufficiently from the Cartopy example
that is failing. Running imshow(..., alpha=0.5) produces a different
result in 2.0.0b1 vs. 1.5.1 (both installed via conda.)
import numpy as npimport matplotlib.pyplot as pltimport matplotlib as mpl
I think I have whittled this down sufficiently from the Cartopy example
that is failing. Running imshow(..., alpha=0.5) produces a different
result in 2.0.0b1 vs. 1.5.1 (both installed via conda.)
import numpy as npimport matplotlib.pyplot as pltimport matplotlib as mpl
Traceback (most recent call last):
File ".../lib/matplotlib/backends/backend_gtk3cairo.py", line 45, in on_draw_event
self._render_figure(w, h)
File ".../lib/matplotlib/backends/backend_gtk3cairo.py", line 34, in _render_figure
self.figure.draw (self._renderer)
File ".../lib/matplotlib/artist.py", line 63, in draw_wrapper
draw(artist, renderer, *args, **kwargs)
File ".../lib/matplotlib/figure.py", line 1129, in draw
renderer, self, dsu, self.suppressComposite)
File ".../lib/matplotlib/image.py", line 139, in _draw_list_compositing_images
a.draw(renderer)
File ".../lib/matplotlib/artist.py", line 63, in draw_wrapper
draw(artist, renderer, *args, **kwargs)
File ".../lib/matplotlib/axes/_base.py", line 2373, in draw
mimage._draw_list_compositing_images(renderer, self, dsu)
File ".../lib/matplotlib/image.py", line 163, in _draw_list_compositing_images
flush_images()
File ".../lib/matplotlib/image.py", line 147, in flush_images
image_group[0].draw(renderer)
File ".../lib/matplotlib/artist.py", line 63, in draw_wrapper
draw(artist, renderer, *args, **kwargs)
File ".../lib/matplotlib/image.py", line 472, in draw
renderer.draw_image(gc, l, b, im)
File ".../lib/matplotlib/backends/backend_cairo.py", line 180, in draw_image
im.shape[1]*4)
TypeError: expected a writeable buffer object
Activity
WeatherGod commentedon Jun 7, 2016
@mdboom, is this a result of the image architecture overhaul?
On Mon, Jun 6, 2016 at 1:47 AM, Elliott Sales de Andrade <
notifications@github.com> wrote:
WeatherGod commentedon Jun 7, 2016
I would be curious to know how the result compares with output from
gtkcairo.
On Tue, Jun 7, 2016 at 11:32 AM, Benjamin Root ben.v.root@gmail.com wrote:
QuLogic commentedon Jun 8, 2016
I tried GTK3Cairo, but it's current broken:
tacaswell commentedon Jun 8, 2016
It looks like alpha is getting double applied?
FIX: only apply alpha once for images