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

Skip to content

Commit 58c8efc

Browse files
gepcelpre-commit-ci[bot]cvanelteren
authored
Change rectangle to non-square for geolegend (#730)
* change rectangle to non-square for geolegend * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Casper van Elteren <[email protected]>
1 parent f415fef commit 58c8efc

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

ultraplot/legend.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,14 @@ def marker(cls, label=None, marker="o", **kwargs):
138138
"pentagon": mpath.Path.unit_regular_polygon(5),
139139
"hexagon": mpath.Path.unit_regular_polygon(6),
140140
"star": mpath.Path.unit_regular_star(5),
141+
"rectangle": mpath.Path(
142+
[[0, 0], [2, 0], [2, 1], [0, 1], [0, 0]], closed=True, readonly=True
143+
),
141144
}
142145
_GEOMETRY_SHAPE_ALIASES = {
143146
"box": "square",
144-
"rect": "square",
145-
"rectangle": "square",
147+
"rect": "rectangle",
148+
"rec": "rectangle",
146149
"tri": "triangle",
147150
"pent": "pentagon",
148151
"hex": "hexagon",

0 commit comments

Comments
 (0)