Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6630175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:21:54+00:00 2026-05-25T22:21:54+00:00

May be that is a simple question – but I tried to solve it

  • 0

May be that is a simple question – but I tried to solve it several times – and just can’t make it work. My problem is that – my plot is larger than the canvas: Plot is larger then the canvas!

Is there a way to make plot fit to the canvas – without changing the canvas size?

Here’s the code that I use to make a plot (thanks to the Louis):

da = plt.figure()
l1 = da.add_subplot(111).plot(dummyZ, delta_a, "k-")
da.add_subplot(111).set_xlabel(r"$z/L$")
da.add_subplot(111).set_ylabel(r"$\delta a(z)$")
da.add_subplot(111).grid(True)
da.savefig("da.png")

And here’s the preambule:

import matplotlib.pyplot as plt
plt.rcParams['font.size']=18

Edit:

That’s what I’m using now:

da = plt.figure()
l1 = da.add_subplot(111).plot(dummyZ, delta_a, "k-")
da.add_subplot(111).set_xlabel(r"$z/L$")
da.add_subplot(111).set_ylabel(r"$\delta a(z)$")
da.add_subplot(111).grid(True)
da.subplots_adjust(left=0.2, bottom=0.15) # !!!
da.savefig("da.png")
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T22:21:54+00:00Added an answer on May 25, 2026 at 10:21 pm

    If I understand correctly the question, you want more room on the left to get the scale title ?

    This is to be done with

    fig.subplots_adjust(left=None, bottom=None, right=None, top=None, wspace=None, hspace=None)
    

    I had it with a simple

    subplots_adjust(top=0.8)
    

    to adjust the top of one of my draws.

    Hope this could help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This may seem like a simple question, but I can't find the answer anywhere
This is a relatively simple question that may just not have a solution. Is
This may be a simple question,but still it is a problem for me.I am
This may sound like a simple question, but I just cannot seem to find
I think this may be a very simple question, but I am only just
This may be a simple question, but I can't figure out a simple way
This may be a really simple question, but things I've tried don't seem to
This may be a fairly simple question, but I can't seem to find the
That may be really simple but I'm unable to find a good answer. How
You may thick that it is a silly question but I am confused! I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.