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

Skip to content

Commit 5fa34fc

Browse files
committed
Fix direction of horizontal and vertical hatching.
svn path=/branches/v0_91_maint/; revision=5675
1 parent 1ee56a8 commit 5fa34fc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2008-06-26 Fix direction of horizontal/vertical hatches - MGD
2+
13
===============================================================
24
2008-06-22 Released 0.91.4 at revision 5638
35

lib/matplotlib/backends/backend_ps.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,12 +254,12 @@ def do_hatch(angle, density):
254254
hatchr cvi hatchgap idiv hatchgap mul
255255
{hatcht moveto 0 hatchb hatcht sub rlineto}
256256
for
257-
stroke
257+
strokeCHAN
258258
grestore
259259
""" % (angle, 12/density)
260260
self._pswriter.write("gsave\n")
261-
self._pswriter.write(do_hatch(0, hatches['horiz']))
262-
self._pswriter.write(do_hatch(90, hatches['vert']))
261+
self._pswriter.write(do_hatch(90, hatches['horiz']))
262+
self._pswriter.write(do_hatch(0, hatches['vert']))
263263
self._pswriter.write(do_hatch(45, hatches['diag1']))
264264
self._pswriter.write(do_hatch(-45, hatches['diag2']))
265265
self._pswriter.write("grestore\n")

0 commit comments

Comments
 (0)