Skip to content
Advertisement

Zoom Region Not Working Properly – Matplotlib

So, I was trying to get a subplot of a region from an plot that should be zoomed in.

Code: (Minimal, Reproducible one)

JavaScript

It is showing this:

Problem

It should show somewhat like this:

Probable Solution

or somewhat like this: (Collected)

Probable Solution 2

What should I do now?

Thanks.

Advertisement

Answer

Solution:

I just forgot to adding the scatter function.

axins.scatter(xpoints, ypoints)

Advertisement