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

Skip to content

Commit c6b1c46

Browse files
committed
[ 2014183 ] multiple imshow() causes gray edges svn path=/trunk/matplotlib/; revision=5730
1 parent 41b91af commit c6b1c46

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2008-07-10 Bugfix: [ 2014183 ] multiple imshow() causes gray edges - MGD
2+
13
2008-07-09 Fix rectangular axes patch on polar plots bug - MGD
24

35
2008-07-09 Improve mathtext radical rendering - MGD

lib/matplotlib/backends/backend_agg.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,11 @@ def buffer_rgba(self,x,y):
211211
def clear(self):
212212
self._renderer.clear()
213213

214+
def option_image_nocomposite(self):
215+
# It is generally faster to composite each image directly to
216+
# the Figure, and there's no file size benefit to compositing
217+
# with the Agg backend
218+
return True
214219

215220

216221
def new_figure_manager(num, *args, **kwargs):

src/_image.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ _image_module::from_images(const Py::Tuple& args) {
742742
//clear the background of the rendering buffer with alpha 1 and the
743743
//gtkagg screen noise problem in figimage_demo.py goes away -- see
744744
//comment backend_gtkagg.py _render_figure method JDH
745-
//rb.clear(agg::rgba(1, 1, 1, 1));
745+
rb.clear(agg::rgba(1, 1, 1, 1));
746746

747747
for (size_t imnum=0; imnum< N; imnum++) {
748748
tup = Py::Tuple(tups[imnum]);

0 commit comments

Comments
 (0)