Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add scale(x)(y) parameter(s) to imshow as in plot #18970

Closed as not planned
Labels
@alexiscoutinho

Description

@alexiscoutinho

Problem

In situations where anAxes has a large background image/map (extent greater than axis limits) and the axis limits are supposed to be controlled by other artists, like paths, it would be very helpful to have toggling parameters likescalex andscaley as inAxes.plot. Right now, even if you fix the limits afterimshow, the moment you let autoscale do its thing (which is desired) it rescales to show the whole image.

Proposed Solution

A very simple and probably naive solution would be to wrap theimshow line below in anif wherescalexy isTrue by default:

ifscalexy:im.set_extent(im.get_extent())

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp