From 82648e06b9a5e20a693151851e7d8c5c3420a4fe Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Wed, 6 Mar 2019 23:22:22 +0100 Subject: [PATCH] Fix text position in Fancytextbox demo --- examples/text_labels_and_annotations/fancytextbox_demo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/text_labels_and_annotations/fancytextbox_demo.py b/examples/text_labels_and_annotations/fancytextbox_demo.py index cca4f6d50f92..f7616b37bedc 100644 --- a/examples/text_labels_and_annotations/fancytextbox_demo.py +++ b/examples/text_labels_and_annotations/fancytextbox_demo.py @@ -6,7 +6,7 @@ """ import matplotlib.pyplot as plt -plt.text(0.6, 0.5, "test", size=50, rotation=30., +plt.text(0.6, 0.7, "eggs", size=50, rotation=30., ha="center", va="center", bbox=dict(boxstyle="round", ec=(1., 0.5, 0.5), @@ -14,7 +14,7 @@ ) ) -plt.text(0.5, 0.4, "test", size=50, rotation=-30., +plt.text(0.55, 0.6, "spam", size=50, rotation=-25., ha="right", va="top", bbox=dict(boxstyle="square", ec=(1., 0.5, 0.5),