From 95c606bf538788c5e1699aa5f73d932d1629d604 Mon Sep 17 00:00:00 2001 From: Carl Pearson Date: Wed, 20 Feb 2019 14:41:23 -0600 Subject: [PATCH] try always using TrueType fonts --- scope_plot/backends/matplotlib.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scope_plot/backends/matplotlib.py b/scope_plot/backends/matplotlib.py index b099770..ba6ba48 100644 --- a/scope_plot/backends/matplotlib.py +++ b/scope_plot/backends/matplotlib.py @@ -14,7 +14,11 @@ except ImportError as e: import matplotlib matplotlib.use("agg") - import matplotlib.pyplot as plt + +matplotlib.rcParams['pdf.fonttype'] = 42 +matplotlib.rcParams['ps.fonttype'] = 42 + +import matplotlib.pyplot as plt import json import pprint