8000 Massive MEP move by tacaswell · Pull Request #4293 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Massive MEP move #4293

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
Mar 30, 2015
Merged
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
DOC : move MEP15
  • Loading branch information
tacaswell committed Mar 28, 2015
commit c2cbbc94a38c6f850ae1ede3fae9ed916083cc10
58 changes: 58 additions & 0 deletions doc/devel/MEP/MEP15.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
==========================================================================
MEP15 - Fix axis autoscaling when limits are specified for one axis only
==========================================================================

.. contents::
:local:

Status
======

**Discussion**

Branches and Pull requests
==========================

None so far.

Abstract
========

When one axis of a 2-dimensional plot if overridden via `xlim` or `ylim`,
automatic scaling of the remaining axis should be based on the data that falls
within the specified limits of the first axis.

Detailed description
====================

When axis limits for a 2-D plot are specified for one axis only (via `xlim` or
`ylim`), matplotlib currently does not currently rescale the other axis. The
result is that the displayed curves or symbols may be compressed into a tiny
portion of the available area, so that the final plot conveys much less
information than it would with appropriate axis scaling. An example of such a
plot can be found at the following URL:

http://phillipmfeldman.org/Python/MEP15.png

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

Implementation
==============

I don't know enough about the internals of matplotlib to be able to suggest an
implementation.

Backward compatibility
======================

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

Alternatives
============

The only alternative that I can see is to maintain the status quo.
1 change: 1 addition & 0 deletions doc/devel/MEP/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ Matplotlib Enhancement Proposals
MEP12
MEP13
MEP14
MEP15
MEP25
0