Skip to content
Advertisement

How to plot a figure with Chinese Characters in label

When I draw a figure with Chinese Character label in Python 3, it doesn’t work correctly:

Screenshot]

My code:

JavaScript

Advertisement

Answer

You need to explicitly pass the font properties to legend function using the prop kwag:

JavaScript

Source

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement