Skip to content
Advertisement

Matplotlib change Figure size

Good morning everyone,

I’ve been playing around with matplotlib recently and I drafted some Charts. Unfortunately, I’m currently stuck, as I cannot resize the chart (Code and Screenshots below, sorry for the chaos with the dates). I tried using figsize but it just doesn’t change the output image.

Do you guys have an idea, where I’m wrong?

Cheers and have a good evening! Nik

JavaScript

enter image description here

Advertisement

Answer

with below code, I save the plot with figsize that set before. in your code first set figsize then plot. in your code try this:

JavaScript

see this example:

JavaScript

output:

enter image description here

enter image description here

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