Movatterモバイル変換


[0]ホーム

URL:


You are reading an old version of the documentation (v2.0.0). For the latest version seehttps://matplotlib.org/stable/devel/MEP/MEP15.html
matplotlib

Navigation


Travis-CI:

Table Of Contents

Related Topics

This Page

Quick search

MEP15 - Fix axis autoscaling when limits are specified for one axis only

Status

Discussion

Abstract

When one axis of a 2-dimensional plot if overridden viaxlim orylim,automatic scaling of the remaining axis should be based on the data that fallswithin the specified limits of the first axis.

Detailed description

When axis limits for a 2-D plot are specified for one axis only (viaxlim orylim), matplotlib currently does not currently rescale the other axis. Theresult is that the displayed curves or symbols may be compressed into a tinyportion of the available area, so that the final plot conveys much lessinformation than it would with appropriate axis scaling.

The proposed change of behavior would make matplotlib choose the scale for theremaining axis using only the data that falls within the limits for the axiswhere limits were specified.

Implementation

I don’t know enough about the internals of matplotlib to be able to suggest animplementation.

Backward compatibility

From the standpoint of software interfaces, there would be no break inbackward compatibility. Some outputs would be different, but if the usertruly desires the previous behavior, he/she can achieve this by overridingthe axis scaling for both axes.

Alternatives

The only alternative that I can see is to maintain the status quo.

© Copyright 2002 - 2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the Matplotlib development team; 2012 - 2016 The Matplotlib development team. Last updated on Feb 20, 2017. Created usingSphinx 1.5.2.

[8]ページ先頭

©2009-2025 Movatter.jp