From 04b1ff8e33c0b648d828ca2c7cce49035177a4a0 Mon Sep 17 00:00:00 2001 From: Mr-Milk Date: Thu, 13 Oct 2022 10:08:18 +0800 Subject: [PATCH] make title alignment default to left --- legendkit/_colorart.py | 2 +- legendkit/_colorbar.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/legendkit/_colorart.py b/legendkit/_colorart.py index d775c47..02b7c8e 100644 --- a/legendkit/_colorart.py +++ b/legendkit/_colorart.py @@ -100,7 +100,7 @@ def __init__(self, title=None, # legend title title_fontsize=None, # legend title font size title_fontproperties=None, # legend title font size - alignment="baseline", + alignment="left", loc=None, deviation=0.05, diff --git a/legendkit/_colorbar.py b/legendkit/_colorbar.py index b02336a..6b108f3 100644 --- a/legendkit/_colorbar.py +++ b/legendkit/_colorbar.py @@ -66,7 +66,7 @@ def __init__( borderpad: Any = 0, orientation: str = "vertical", title: str = None, - alignment: str = "center", + alignment: str = "left", title_fontproperties: Dict = None, **colorbar_options, ):