Relative Content

Tag Archive for matplotlib

y-axis being automatically shifted; centered on zero

I’m trying to make a simple line plot where all the values around very close to 1. However, when I plot it the y-axis gets shifted down so all values are centered around 0. It indicates this with a +1 at the top of the y-axis. How do I make it stop shifting the y-axis?

Matplotlib unable to render Chinese characters

I am trying to plot graphs using matplotlib with labels and titles written in Mandarin (Chinese). However matplotlib renders them as boxes. I have tried the following approaches to try to solve the problem: