Tamim Addari
Tamim Addari

Reputation: 7821

How to show unicode characters in matplotlib pyplot?

I am trying to show unicode characters in matplotlib, but it is not showing as unicode, rather it is showing as boxes. Here is the code and the result

example

How can I show unicode strings in matplotlib?

Upvotes: 0

Views: 578

Answers (1)

Harry
Harry

Reputation: 318

use matplotlib.rc('font', family='Your Font') for displaying the required unicodes.

Upvotes: 1

Related Questions