+ 16

Increase size of image [ solved ]

I made a matplotlib plot now I want to increase it height and width but sololearn isn't allowing me to do so. So is their any trick so that I can increase its dimensions? https://code.sololearn.com/c15u8Xysy6df/?ref=app

11th Sep 2021, 5:28 AM
Ayush Kumar
Ayush Kumar - avatar
3 Answers
+ 10
#Try add this: from matplotlib.pyplot import figure figure(figsize=(8, 16), dpi=80)
11th Sep 2021, 5:34 AM
Cmurio
Cmurio - avatar
+ 5
Ahorra solo juega con los parametros para encontrar la mejor dimensiĂłn Now just play with the parameters to find the best dimension
11th Sep 2021, 5:35 AM
Cmurio
Cmurio - avatar
+ 3
Thanks JESUS EDUARDO CANUL KOYOC acctuly we need to modify original plot this can be done using save fig I guess ? In ide I was able to do the same with savefig too
11th Sep 2021, 6:03 AM
Ayush Kumar
Ayush Kumar - avatar