Skip to content

Commit

Permalink
Change the default fontweight, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Milk committed Jan 8, 2024
1 parent 5e50e82 commit c4a0b56
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from matplotlib import cycler

project = 'legendkit'
copyright = '2023, Mr-Milk'
copyright = '2024, Mr-Milk'
author = 'Mr-Milk'
release = '0.3.2'
release = '0.3.3'

extensions = [
'numpydoc',
Expand Down
2 changes: 1 addition & 1 deletion legendkit/_colorart.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def _make_cbar_box(self):

if self.title is not None:
if self.title_fontproperties is None:
textprops = dict(fontweight=600, fontsize=self.title_fontsize)
textprops = dict(fontweight='bold', fontsize=self.title_fontsize)
else:
textprops = dict(fontproperties=self.title_fontproperties)
title_canvas = TextArea(self.title, textprops=textprops)
Expand Down
2 changes: 1 addition & 1 deletion legendkit/_colorbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def __init__(

if title is not None:
if title_fontproperties is None:
title_fontproperties = {'weight': 600, 'size': 'medium'}
title_fontproperties = {'weight': 'bold', 'size': 'medium'}
self.ax.set_title(title, loc=alignment,
fontdict=title_fontproperties)
self.ax.set_facecolor('none')
Expand Down
2 changes: 1 addition & 1 deletion legendkit/_legend.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def val_or_rc(val, rc_name):
bbox_to_anchor=bbox_to_anchor,
bbox_transform=bbox_transform,
# Make the title bold if user supply no style
title_fontproperties={'weight': 600},
title_fontproperties={'weight': 'bold'},
handler_map=handler_map,
fontsize=self._fontsize,
handleheight=self.handleheight,
Expand Down
2 changes: 1 addition & 1 deletion legendkit/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def stack(legends,
)
if title is not None:
if title_fontproperties is None:
title_fontproperties = {'weight': 600}
title_fontproperties = {'weight': 'bold'}
title_box = TextArea(title, textprops=title_fontproperties)

content = [title_box, children_pack]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "legendkit"
version = "0.3.2"
version = "0.3.3"
description = "Legend creation and manipulation with ease for matplotlib"
authors = ["Mr-Milk <yb97643@um.edu.mo>"]
license = "MIT"
Expand Down
3 changes: 1 addition & 2 deletions readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ python:
install:
- requirements: docs/requirements.txt
- method: pip
path: .
system_packages: true
path: .

0 comments on commit c4a0b56

Please sign in to comment.