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

Skip to content

Commit 472ca7f

Browse files
committed
Merged revisions 8092,8116 via svnmerge from
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v0_99_maint ........ r8092 | leejjoon | 2010-01-18 19:26:16 -0500 (Mon, 18 Jan 2010) | 1 line update annotate documentation to explain *annotation_clip* parameter ........ r8116 | mdboom | 2010-02-08 10:57:45 -0500 (Mon, 08 Feb 2010) | 1 line Fix for libpng-1.4 compatibility ........ svn path=/trunk/matplotlib/; revision=8117
1 parent 34e3236 commit 472ca7f

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

lib/matplotlib/text.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1668,6 +1668,14 @@ def __init__(self, s, xy,
16681668
# 5 points below the top border
16691669
xy=(10,-5), xycoords='axes points'
16701670
1671+
1672+
The *annotation_clip* attribute contols the visibility of the
1673+
annotation when it goes outside the axes area. If True, the
1674+
annotation will only be drawn when the *xy* is inside the
1675+
axes. If False, the annotation will always be drawn regardless
1676+
of its position. The default is *None*, which behave as True
1677+
only if *xycoords* is"data".
1678+
16711679
Additional kwargs are Text properties:
16721680
16731681
%(Text)s

src/_png.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,11 @@ _png_module::read_png(const Py::Tuple& args) {
336336

337337
//free the png memory
338338
png_read_end(png_ptr, info_ptr);
339+
#ifndef png_infopp_NULL
340+
png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
341+
#else
339342
png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL);
343+
#endif
340344
if (close_file) {
341345
fclose(fp);
342346
}

0 commit comments

Comments
 (0)