Skip to content

Commit

Permalink
Update to mpl 3.5.0
Browse files Browse the repository at this point in the history
- make room for two additional annotation arrow styles
- add possibility to set tick labels together with tick positions
  • Loading branch information
StefRe committed Dec 13, 2021
1 parent 91ebc86 commit 6bf57ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cheatsheets.tex
Original file line number Diff line number Diff line change
Expand Up @@ -711,8 +711,8 @@
ax.patch.\textbf{set\_alpha}(0)\\
ax.\textbf{set\_[xy]lim}(vmin, vmax)\\
ax.\textbf{set\_[xy]label}(label)\\
ax.\textbf{set\_[xy]ticks}(list)\\
ax.\textbf{set\_[xy]ticklabels}(list)\\
ax.\textbf{set\_[xy]ticks}(ticks, [labels])\\
ax.\textbf{set\_[xy]ticklabels}(labels)\\
ax.\textbf{set\_[sup]title}(title)\\
ax.\textbf{tick\_params}(width=10, …)\\
ax.\textbf{set\_axis\_[on|off]}()\\
Expand Down
2 changes: 1 addition & 1 deletion scripts/annotation-arrow-styles.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def demo_con_style(ax, connectionstyle):
transform=ax.transAxes, ha="left", va="top", size="x-small")


(fig, axes) = plt.subplots(5, 3, figsize=(4, 2.5), frameon=False)
(fig, axes) = plt.subplots(4, 4, figsize=(4, 2.5), frameon=False)
for ax in axes.flatten():
ax.axis("off")
for i, (ax, style) in enumerate(zip(axes.flatten(), mpatches.ArrowStyle.get_styles())):
Expand Down

0 comments on commit 6bf57ae

Please sign in to comment.