Skip to content

Commit b693534

Browse files
authored
Merge pull request #29 from wiseodd/times
Change default serif font to Times for compatibility
2 parents 7c3e486 + b040e0b commit b693534

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

examples/simple_plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
########################################################################################
99
with (
1010
prp.get_context(
11-
layout=prp.Layout.POSTER_LANDSCAPE, # or "iclr", "neurips", "poster-portrait", "poster-landscape"
11+
layout=prp.Layout.NEURIPS, # or "iclr", "neurips", "poster-portrait", "poster-landscape"
1212
width_frac=1, # between 0 and 1
1313
height_frac=0.15, # between 0 and 1
1414
) as (fig, ax)

pub_ready_plots/styles.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
cmfont = font_manager.FontProperties(fname=mpl.get_data_path() + "/fonts/ttf/cmr10.ttf")
88
FONT_NAME_CM = cmfont.get_name()
9-
FONT_NAME_TNR = "Times New Roman"
9+
FONT_NAME_TIMES = "Times"
1010
FONT_NAME_ARIAL = "Arial"
1111
FONT_NAME_AVENIR = "Avenir Next Condensed"
1212

@@ -42,7 +42,7 @@ class Style:
4242
text_width=6.00117,
4343
col_width=3.25063,
4444
text_height=8.50166,
45-
font_name=FONT_NAME_TNR,
45+
font_name=FONT_NAME_TIMES,
4646
footnote_size=8,
4747
script_size=7,
4848
linewidth=1.25,
@@ -53,7 +53,7 @@ class Style:
5353
text_width=5.50107,
5454
col_width=5.50107,
5555
text_height=9.00177,
56-
font_name=FONT_NAME_TNR,
56+
font_name=FONT_NAME_TIMES,
5757
footnote_size=8,
5858
script_size=7,
5959
linewidth=1.25,
@@ -64,7 +64,7 @@ class Style:
6464
text_width=5.50107,
6565
col_width=5.50107,
6666
text_height=9.00177,
67-
font_name=FONT_NAME_TNR,
67+
font_name=FONT_NAME_TIMES,
6868
footnote_size=8,
6969
script_size=7,
7070
linewidth=1.25,
@@ -97,7 +97,7 @@ class Style:
9797
text_width=6.75133,
9898
col_width=3.25063,
9999
text_height=9.25182,
100-
font_name=FONT_NAME_TNR,
100+
font_name=FONT_NAME_TIMES,
101101
footnote_size=8,
102102
script_size=7,
103103
linewidth=1.25,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pub-ready-plots"
3-
version = "1.2.2"
3+
version = "1.2.3"
44
description = "Easy publication-ready matplotlib plots for ML papers and posters."
55
authors = [{ name = "Agustinus Kristiadi", email = "agustinus@kristia.de" }]
66
classifiers = [

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)