Skip to content

Commit 7504127

Browse files
authored
Merge pull request #451 from nschloe/markers
Markers
2 parents eb3a9ff + 4cf8e00 commit 7504127

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = tikzplotlib
3-
version = 0.9.5
3+
version = 0.9.6
44
author = Nico Schlömer
55
author_email = [email protected]
66
description = Convert matplotlib figures into TikZ/PGFPlots

tikzplotlib/_markers.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,30 @@
1-
# for matplotlib markers, see: http://matplotlib.org/api/markers_api.html
1+
# for matplotlib markers, see https://matplotlib.org/api/markers_api.html
22
_MP_MARKER2PGF_MARKER = {
33
".": "*", # point
4+
# ",": # pixel
45
"o": "o", # circle
56
"+": "+", # plus
7+
"P": "+", # actually plus filled
68
"x": "x", # x
9+
"X": "x", # actually x filled
710
"None": None,
811
" ": None,
912
"": None,
1013
}
1114

1215
# the following markers are only available with PGF's plotmarks library
16+
# See
17+
# <https://mirror.clientvps.com/CTAN/graphics/pgf/contrib/pgfplots/doc/pgfplots.pdf>,
18+
# chapter 4.7, page 183 ff.
1319
_MP_MARKER2PLOTMARKS = {
1420
"v": ("triangle", ["rotate=180"]), # triangle down
15-
"1": ("triangle", ["rotate=180"]),
1621
"^": ("triangle", []), # triangle up
17-
"2": ("triangle", []),
1822
"<": ("triangle", ["rotate=270"]), # triangle left
19-
"3": ("triangle", ["rotate=270"]),
2023
">": ("triangle", ["rotate=90"]), # triangle right
21-
"4": ("triangle", ["rotate=90"]),
24+
"1": ("Mercedes star flipped", []),
25+
"2": ("Mercedes star", []),
26+
"3": ("Mercedes star", ["rotate=90"]),
27+
"4": ("Mercedes star", ["rotate=270"]),
2228
"s": ("square", []),
2329
"p": ("pentagon", []),
2430
"*": ("asterisk", []),

0 commit comments

Comments
 (0)