From b40aacd80142a540a9d6953c9c6e7908232c869f Mon Sep 17 00:00:00 2001 From: james-choncholas Date: Mon, 22 Apr 2024 15:55:32 -0400 Subject: [PATCH] matplotlib uses true type fonts. --- scripts/insetplotter.py | 3 +++ scripts/plotter-do-vs-sil.py | 3 +++ scripts/plotter-emp-vs-aby.py | 3 +++ scripts/plotter-mult-add.py | 3 +++ scripts/plotter-netio.py | 3 +++ scripts/plotter.py | 3 +++ 6 files changed, 18 insertions(+) diff --git a/scripts/insetplotter.py b/scripts/insetplotter.py index 1974b63..a8b23e1 100644 --- a/scripts/insetplotter.py +++ b/scripts/insetplotter.py @@ -12,6 +12,9 @@ import json import re +matplotlib.rcParams['pdf.fonttype'] = 42 +matplotlib.rcParams['ps.fonttype'] = 42 + from mpl_toolkits.axes_grid1.inset_locator import zoomed_inset_axes from mpl_toolkits.axes_grid1.inset_locator import mark_inset diff --git a/scripts/plotter-do-vs-sil.py b/scripts/plotter-do-vs-sil.py index 9a548c6..0510850 100644 --- a/scripts/plotter-do-vs-sil.py +++ b/scripts/plotter-do-vs-sil.py @@ -11,6 +11,9 @@ import json import re +matplotlib.rcParams['pdf.fonttype'] = 42 +matplotlib.rcParams['ps.fonttype'] = 42 + sentinalStr = "SeNtInAl" tmpFile = "plotlines.tmp" maxColumns = 7 diff --git a/scripts/plotter-emp-vs-aby.py b/scripts/plotter-emp-vs-aby.py index 458510c..9ce6e45 100644 --- a/scripts/plotter-emp-vs-aby.py +++ b/scripts/plotter-emp-vs-aby.py @@ -11,6 +11,9 @@ import json import re +matplotlib.rcParams['pdf.fonttype'] = 42 +matplotlib.rcParams['ps.fonttype'] = 42 + sentinalStr = "SeNtInAl" tmpFile = "plotlines.tmp" maxColumns = 7 diff --git a/scripts/plotter-mult-add.py b/scripts/plotter-mult-add.py index 231b0ea..7253cd8 100644 --- a/scripts/plotter-mult-add.py +++ b/scripts/plotter-mult-add.py @@ -11,6 +11,9 @@ import json import re +matplotlib.rcParams['pdf.fonttype'] = 42 +matplotlib.rcParams['ps.fonttype'] = 42 + sentinalStr = "SeNtInAl" tmpFile = "plotlines.tmp" maxColumns = 7 diff --git a/scripts/plotter-netio.py b/scripts/plotter-netio.py index 4a9c21b..0931d83 100644 --- a/scripts/plotter-netio.py +++ b/scripts/plotter-netio.py @@ -11,6 +11,9 @@ import json import re +matplotlib.rcParams['pdf.fonttype'] = 42 +matplotlib.rcParams['ps.fonttype'] = 42 + sentinalStr = "SeNtInAl" tmpFile = "plotlines.tmp" maxColumns = 7 diff --git a/scripts/plotter.py b/scripts/plotter.py index 747391a..eb02aa4 100644 --- a/scripts/plotter.py +++ b/scripts/plotter.py @@ -11,6 +11,9 @@ import json import re +matplotlib.rcParams['pdf.fonttype'] = 42 +matplotlib.rcParams['ps.fonttype'] = 42 + sentinalStr = "SeNtInAl" tmpFile = "plotlines.tmp" maxColumns = 7