lmdk_lib: Deal with Type 3 fonts
This commit is contained in:
		@ -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)
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user