Skip to content

Commit 96d3480

Browse files
committed
Improve flat style by adjusting default fonts
1 parent 213e9cc commit 96d3480

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
`QwtPlot.axisMargin` to get the current value)
99
- Added an additional margin to the left of ticks labels: this margin is set to one
1010
character width, to avoid the labels to be truncated while keeping a tight layout
11+
- Slighly improved the new flat style (see V0.7.0) by selecting default fonts
1112

1213
## Version 0.11.2
1314

qwt/plot.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -341,13 +341,9 @@ def make_font(family=None, size=None, delta_size=None, weight=None):
341341

342342
if state:
343343
# New PythonQwt-exclusive flat style
344-
plot_title_font = make_font(
345-
family="Helvetica", delta_size=4, weight=QFont.Bold
346-
)
347-
axis_title_font = make_font(
348-
family="Helvetica", delta_size=2, weight=QFont.Bold
349-
)
350-
axis_label_font = make_font(family="Helvetica", delta_size=0)
344+
plot_title_font = make_font(size=12)
345+
axis_title_font = make_font(size=11)
346+
axis_label_font = make_font(size=10)
351347
tick_lighter_factors = (150, 125, 100)
352348
scale_margin = scale_spacing = 0
353349
canvas_frame_style = QFrame.NoFrame

0 commit comments

Comments
 (0)