From d72ab92635df378381345bc39df55ba44582dbfe Mon Sep 17 00:00:00 2001 From: Steffen Rehberg Date: Mon, 13 Dec 2021 08:32:33 +0100 Subject: [PATCH] Update to mpl 3.5.0 - make room for two additional annotation arrow styles - add possibility to set tick labels together with tick positions --- cheatsheets.tex | 4 ++-- scripts/annotation-arrow-styles.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cheatsheets.tex b/cheatsheets.tex index f79664b..d1b46f4 100644 --- a/cheatsheets.tex +++ b/cheatsheets.tex @@ -710,8 +710,8 @@ ax.\textbf{grid}()\\ 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\_title}(title)\\ ax.\textbf{tick\_params}(width=10, …)\\ ax.\textbf{set\_axis\_[on|off]}()\\ diff --git a/scripts/annotation-arrow-styles.py b/scripts/annotation-arrow-styles.py index 6bff923..648a4c4 100644 --- a/scripts/annotation-arrow-styles.py +++ b/scripts/annotation-arrow-styles.py @@ -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())):