From 536160666e59ccf9bbd3faebd134e10b03365288 Mon Sep 17 00:00:00 2001 From: rasmusthog Date: Thu, 13 Oct 2022 20:51:54 +0200 Subject: [PATCH] Fix bug that didn't plot text in correct Axes-obj --- nafuma/plotting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nafuma/plotting.py b/nafuma/plotting.py index 3a0b71b..6d9bf09 100644 --- a/nafuma/plotting.py +++ b/nafuma/plotting.py @@ -305,7 +305,7 @@ def adjust_plot(fig, ax, options): # Plot all passed texts for text in options['text']: - plt.text(x=text[1][0], y=text[1][1], s=text[0]) + ax.text(x=text[1][0], y=text[1][1], s=text[0]) return fig, ax