lmdk_lib: Deal with Type 3 fonts

This commit is contained in:
Manos Katsomallos 2022-02-18 00:49:42 +01:00
parent 6f611b4a5f
commit e0fccceec5

View File

@ -24,7 +24,6 @@ marker_size = 14.0
tick_length = 8.0 tick_length = 8.0
def add_polar_noise(loc, epsilon): def add_polar_noise(loc, epsilon):
''' '''
Add noise from planar Laplace. Add noise from planar Laplace.
@ -639,6 +638,9 @@ def plot_init():
plt.rc('font', family='sans-serif') plt.rc('font', family='sans-serif')
plt.rc('font', **{'sans-serif':['Liberation Sans']}) plt.rc('font', **{'sans-serif':['Liberation Sans']})
plt.rc('font', size=font_size) plt.rc('font', size=font_size)
# Deal with Type 3 fonts
plt.rcParams['pdf.fonttype'] = 42
plt.rcParams['ps.fonttype'] = 42
# Grid # Grid
plt.setp(plt.figure().add_subplot(111).spines.values(), linewidth=line_width) plt.setp(plt.figure().add_subplot(111).spines.values(), linewidth=line_width)
plt.grid(True, axis='y', linewidth=line_width) plt.grid(True, axis='y', linewidth=line_width)