I am trying to increase the size of the image resulting from this function:
plt.figure()); data_ordertotal.plot(); plt.legend(loc='best')
I tried this but the size remains the same
plt.figure(figsize=(40,40)); data_ordertotal.plot(); plt.legend(loc='best')
I am coding using spyder and the output in the console remains always the same size. Any solution? Thanks
I guess you're using pandas, and you should use:
data_ordertotal.plot(figsize=(40,40))
It doesn't work with plt.figure(figsize=(40,40))
because pandas will create a new figure if you don't pass it an axe
object.
It would work with:
fig, ax = plt.subplots(1, 1, figsize=(40,40))
data_ordertotal.plot(ax=ax)
...Assuming you're using pandas, if not you should detail a bit more what is data_ordertotal
HTH
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With