Skip to content

Commit 376dcb8

Browse files
committed
Merge pull request #817 from jkseppan/issue-804
If path clipping introduces MOVETO operations, change final CLOSEPOLY to LINETO
2 parents fe1e48a + 4cd75cd commit 376dcb8

File tree

7 files changed

+404
-3
lines changed

7 files changed

+404
-3
lines changed

CHANGELOG

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2012-04-06 When path clipping changes a LINETO to a MOVETO, it also
2+
changes any CLOSEPOLY command to a LINETO to the initial
3+
point. This fixes a problem with pdf and svg where the
4+
CLOSEPOLY would then draw a line to the latest MOVETO
5+
position instead of the intended initial position. - JKS
6+
17
2012-01-23 The radius labels in polar plots no longer use a fixed
28
padding, but use a different alignment depending on the
39
quadrant they are in. This fixes numerical problems when
Binary file not shown.

lib/matplotlib/tests/test_axes.py

+9
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,15 @@ def test_markevery_line():
631631
ax.plot(x, y, '-+', markevery=(5, 20), label='mark every 5 starting at 10')
632632
ax.legend()
633633

634+
@image_comparison(baseline_images=['hist_log'])
635+
def test_hist_log():
636+
data0 = np.linspace(0,1,200)**3
637+
data = np.r_[1-data0, 1+data0]
638+
fig = plt.figure()
639+
ax = fig.add_subplot(111)
640+
ax.hist(data, fill=False, log=True)
641+
ax.set_xticks([])
642+
ax.set_yticks([])
634643

635644
if __name__=='__main__':
636645
import nose

0 commit comments

Comments
 (0)