nschloe/perfplot

feature request: monospace font for labels

Closed this issue · 2 comments

I'm using perfplot to time small code samples. Instead of giving each sample a name and having to think about which name refers to which code, I put the sample (or its essence) as the label. It would be nice if I could draw those labels in monospace.

Nevermind, I think you can already do this with

out = perfplot.bench(
    # ...
)
out.show()
out.save("perf.png", family="monospace")

Can't you already do that like:

import matplotlib

matplotlib.rc('font', family="monospace")

See here.