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

Skip to content

Commit c09692e

Browse files
committed
Fix the triangular mark rendering error. The "Up" triangle was rendered
instead of "Right" triangle and vice-versa.
1 parent 9466260 commit c09692e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2014-04-10 Fixed the triangular marker rendering error. The "Up" triangle was
2+
rendered instead of "Right" triangle and vice-versa.
3+
14
2014-04-08 Fixed a bug in parasite_axes.py by making a list out
25
of a generator at line 263.
36

lib/matplotlib/markers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ def _set_tri_down(self):
725725
self._path = self._tri_path
726726

727727
def _set_tri_up(self):
728-
self._transform = Affine2D().scale(0.5).rotate_deg(90)
728+
self._transform = Affine2D().scale(0.5).rotate_deg(180)
729729
self._snap_threshold = 5.0
730730
self._filled = False
731731
self._path = self._tri_path
@@ -737,7 +737,7 @@ def _set_tri_left(self):
737737
self._path = self._tri_path
738738

739739
def _set_tri_right(self):
740-
self._transform = Affine2D().scale(0.5).rotate_deg(180)
740+
self._transform = Affine2D().scale(0.5).rotate_deg(90)
741741
self._snap_threshold = 5.0
742742
self._filled = False
743743
self._path = self._tri_path

0 commit comments

Comments
 (0)