0

I would like to change the size of a graph (with multiple plots) in python to make it larger. using 'plt.figure(figsize=(6,3))' for example makes a new graph of a different size but its empty with just the axes, the actual plots do not show. can someone help me understand where i am going wrong? i have attached an image of my code in this question. thank you in advance enter image description here

jojo
  • 41
  • 1
  • 1
  • 9
  • `plt.figure(figuresize=size))` should work. Can you provide minimum reproducible code where you tried this and didn't work so we can check if there is something else wrong in the code? Please don't send the code as image. – Flavio Moraes Nov 14 '20 at 22:39
  • I have seen where i was going wrong and was able to fix the code. Thank you very much for the reply – jojo Nov 14 '20 at 22:41
  • The keyword is `figsize`, though. And don't post code/data as images - always post the text directly here on SO. – Mr. T Nov 14 '20 at 23:29
  • **[No Screenshots](https://meta.stackoverflow.com/questions/303812/)** of code or data. Always provide a [mre] with code, **data, errors, current output, and expected output**, as **[formatted text](https://stackoverflow.com/help/formatting)**. If relevant, plot images are okay. Please see [How to ask a good question](https://stackoverflow.com/help/how-to-ask). – Trenton McKinney Nov 15 '20 at 00:39

1 Answers1

4

Always write the plt.figure(figsize=(x,y)) before the line of code that will create the plot and end it by plt.show()

ombk
  • 2,036
  • 1
  • 4
  • 16