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

4
  • 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. Commented Nov 14, 2020 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 Commented Nov 14, 2020 at 22:41
  • The keyword is figsize, though. And don't post code/data as images - always post the text directly here on SO. Commented Nov 14, 2020 at 23:29
  • 1
    No Screenshots of code or data. Always provide a minimal reproducible example with code, data, errors, current output, and expected output, as formatted text. If relevant, plot images are okay. Please see How to ask a good question. Commented Nov 15, 2020 at 0:39

1 Answer 1

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()

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.