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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:51:33+00:00 2026-06-18T07:51:33+00:00

I am trying to create a pair of scatter plots on the same figure

  • 0

I am trying to create a pair of scatter plots on the same figure

If scatter plot 1 is zoomed or panned I want to redisplay scatter plot 2 such that only the new data set is displayed

The sub plots share the same underlying dataset but don’t share equivalent axes so I can;t use sharex, sharey etc., .e.g. scatterplot 2 is the result of applying a different function to the same data shown in scatterplot 1 that results in different axes

I think I need to somehow extract the data set displayed each tme scatter plot 1 is zoomed/panned and pass that data to the function that plots scatter plot 2 but I cannot find any info on how this could be done

must be very common – i’m surprised I haven’t unearthed any cook-book type scripts for it

i have had some luck with returning sets of scatter point indices using the ‘picker’ event – what i really need is something that returns the scatter point indices for all visible points triggered after a zoom/pan event

  • 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-06-18T07:51:34+00:00Added an answer on June 18, 2026 at 7:51 am

    You can retrieve the axes view intervals:

    xinterval, yinterval = ax.xaxis.get_view_interval(), ax.yaxis.get_view_interval()
    

    Then use the intervals to determine which points are visible in the first subplot and use that to decide what/how to show the second subplot. For example:

    plt.scatter(xs, ys)
    
    xmin, xmax = ax.xaxis.get_view_interval()
    ymin, ymax = ax.yaxis.get_view_interval()
    indices = np.where((xmin <= xs) & (xs <= xmax) & (ymin <= ys) & (ys <= ymin))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create my public/private rsa key pair with msysgit I run
I'm trying to create an application, that takes in multiple values with cookies, however
I am trying to create a function in a class that returns a const
For a present, I am trying to create a code that reads as a
I'm trying to create objects from a key/value list. My Problem is, that Object
I'm trying to pair together a bunch of elements in a list to create
I am trying to create a name,value pair in Hibernate which gets returned as
So I'm trying to create a function in powershell that nests all the groups
I'm trying to create an array of checkboxes dynamically and also want to put
I'm trying to create a resque worker that does some webscraping as a background

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.