From e0fccceec5028916e76b751bd60d640f1a77b53d Mon Sep 17 00:00:00 2001 From: Manos Katsomallos Date: Fri, 18 Feb 2022 00:49:42 +0100 Subject: [PATCH] lmdk_lib: Deal with Type 3 fonts --- code/lib/lmdk_lib.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/lib/lmdk_lib.py b/code/lib/lmdk_lib.py index 1072461..271a1a6 100644 --- a/code/lib/lmdk_lib.py +++ b/code/lib/lmdk_lib.py @@ -24,7 +24,6 @@ marker_size = 14.0 tick_length = 8.0 - def add_polar_noise(loc, epsilon): ''' Add noise from planar Laplace. @@ -639,6 +638,9 @@ def plot_init(): plt.rc('font', family='sans-serif') plt.rc('font', **{'sans-serif':['Liberation Sans']}) plt.rc('font', size=font_size) + # Deal with Type 3 fonts + plt.rcParams['pdf.fonttype'] = 42 + plt.rcParams['ps.fonttype'] = 42 # Grid plt.setp(plt.figure().add_subplot(111).spines.values(), linewidth=line_width) plt.grid(True, axis='y', linewidth=line_width)