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

Skip to content

If path clipping introduces MOVETO operations, change final CLOSEPOLY to LINETO #817

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 13, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix issue #804 by altering path clipping
  • Loading branch information
jkseppan committed Apr 6, 2012
commit 4cd75cdf87361a5995cf3de7569ee87c94addbcc
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2012-04-06 When path clipping changes a LINETO to a MOVETO, it also
changes any CLOSEPOLY command to a LINETO to the initial
point. This fixes a problem with pdf and svg where the
CLOSEPOLY would then draw a line to the latest MOVETO
position instead of the intended initial position. - JKS

2012-01-23 The radius labels in polar plots no longer use a fixed
padding, but use a different alignment depending on the
quadrant they are in. This fixes numerical problems when
Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
343 changes: 343 additions & 0 deletions lib/matplotlib/tests/baseline_images/test_axes/hist_log.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions lib/matplotlib/tests/test_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,15 @@ def test_markevery_line():
ax.plot(x, y, '-+', markevery=(5, 20), label='mark every 5 starting at 10')
ax.legend()

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

if __name__=='__main__':
import nose
Expand Down
Loading