fix(battlecard): correct font size to 9pt minimum and remove unused imports
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 47 KiB |
@@ -3,7 +3,6 @@ import argparse
|
|||||||
import matplotlib
|
import matplotlib
|
||||||
matplotlib.use("Agg")
|
matplotlib.use("Agg")
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
import matplotlib.patches as mpatches
|
|
||||||
from matplotlib.path import Path as MPLPath
|
from matplotlib.path import Path as MPLPath
|
||||||
# Python 3.14 matplotlib patch (required)
|
# Python 3.14 matplotlib patch (required)
|
||||||
_orig = MPLPath.__deepcopy__
|
_orig = MPLPath.__deepcopy__
|
||||||
@@ -18,17 +17,14 @@ from pathlib import Path
|
|||||||
|
|
||||||
from src.utils.styling import (
|
from src.utils.styling import (
|
||||||
get_theme,
|
get_theme,
|
||||||
EXPORT_DPI,
|
|
||||||
BUBBLE_ZONE,
|
BUBBLE_ZONE,
|
||||||
AI_SPEND,
|
AI_SPEND,
|
||||||
REVENUE,
|
REVENUE,
|
||||||
WARNING_ZONE,
|
WARNING_ZONE,
|
||||||
NORMAL_ZONE,
|
|
||||||
GRAY_DARK,
|
GRAY_DARK,
|
||||||
GRAY_MEDIUM,
|
GRAY_MEDIUM,
|
||||||
WHITE,
|
WHITE,
|
||||||
)
|
)
|
||||||
from src.utils.export import save_chart
|
|
||||||
|
|
||||||
MINI_FIGURE_SIZE = (5, 3)
|
MINI_FIGURE_SIZE = (5, 3)
|
||||||
MINI_DPI = 300
|
MINI_DPI = 300
|
||||||
@@ -209,7 +205,7 @@ class MiniChartEngine:
|
|||||||
-0.55,
|
-0.55,
|
||||||
context_text,
|
context_text,
|
||||||
ha="center",
|
ha="center",
|
||||||
fontsize=MIN_LABEL_FONT_SIZE - 1,
|
fontsize=MIN_LABEL_FONT_SIZE,
|
||||||
color=GRAY_MEDIUM,
|
color=GRAY_MEDIUM,
|
||||||
style="italic",
|
style="italic",
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user