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 5992031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:28:22+00:00 2026-05-22T23:28:22+00:00

I have some data plotted which includes some limits on each subplot: Both axes

  • 0

I have some data plotted which includes some limits on each subplot: aerodynamic angles with limits Both axes have the limits, but since the data fits so nicely within the limits on the second plot, the limits themselves set the boudaries for the y-axis, making them invisible.

To make them visible, I could do something like this:

axes.set_ylim(1.1*lowerLimit,1.1*upperLimit)

where lowerLimit and upperLimit are the data used to generate the limits in the first place, but I am wondering if matplotlib has a mechanism to tell it to not be so zealous in it’s automatic setting of the limits. The solution I have now also has the limitation that if the data deviates from the boundaries, it risks going outside the lines, so I searched for a complement to set_ylim() which would tell me what the limits are, somehting like get_ylim() but it does not seem to exist in the documentation.

Thanks for your help.

  • 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-22T23:28:23+00:00Added an answer on May 22, 2026 at 11:28 pm

    In regards to your request for a function to change the y-axis limits, would this suit your purposes?:

    def larger_axlim( axlim ):
        """ argument axlim expects 2-tuple 
            returns slightly larger 2-tuple """
        axmin,axmax = axlim
        axrng = axmax - axmin
        new_min = axmin - 0.1 * axrng
        new_max = axmax + 0.1 * axrng
        return new_min,new_max
    ...
    ax.set_ylim( larger_axlim( ax.get_ylim() ) )
    ...
    

    Documentation: get_ylim()

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

Sidebar

Related Questions

I have some code which needs to ensure some data is in a mysql
I'm considering the following: I have some data stream which I'd like to protect
I have some data which looks like: <data> <row> <v>0.0264</v> <v>1073655665.0000</v> <!-- select this
i have a input tag which is non editable, but some times i need
I have some data stored on client side which I need to fetch thru
I have file which contains some data, like this 2011-01-02 100100 1 2011-01-02 100200
I have some data with messed-up accented characters. For example in the data we
I have some data grouped in a table by a certain criteria, and for
I have some data of the form Key ID Link 1 MASTER 123 2
I have some data. I want to go through that data and change cells

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.