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

Appearance settings

Commit c2cbbc9

Browse filesBrowse files
committed
DOC : move MEP15
1 parent f7b8db1 commit c2cbbc9
Copy full SHA for c2cbbc9

File tree

Expand file treeCollapse file tree

2 files changed

+59
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+59
-0
lines changed

‎doc/devel/MEP/MEP15.rst

Copy file name to clipboard
+58Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
==========================================================================
2+
MEP15 - Fix axis autoscaling when limits are specified for one axis only
3+
==========================================================================
4+
5+
.. contents::
6+
:local:
7+
8+
Status
9+
======
10+
11+
**Discussion**
12+
13+
Branches and Pull requests
14+
==========================
15+
16+
None so far.
17+
18+
Abstract
19+
========
20+
21+
When one axis of a 2-dimensional plot if overridden via `xlim` or `ylim`,
22+
automatic scaling of the remaining axis should be based on the data that falls
23+
within the specified limits of the first axis.
24+
25+
Detailed description
26+
====================
27+
28+
When axis limits for a 2-D plot are specified for one axis only (via `xlim` or
29+
`ylim`), matplotlib currently does not currently rescale the other axis. The
30+
result is that the displayed curves or symbols may be compressed into a tiny
31+
portion of the available area, so that the final plot conveys much less
32+
information than it would with appropriate axis scaling. An example of such a
33+
plot can be found at the following URL:
34+
35+
http://phillipmfeldman.org/Python/MEP15.png
36+
37+
The proposed change of behavior would make matplotlib choose the scale for the
38+
remaining axis using only the data that falls within the limits for the axis
39+
where limits were specified.
40+
41+
Implementation
42+
==============
43+
44+
I don't know enough about the internals of matplotlib to be able to suggest an
45+
implementation.
46+
47+
Backward compatibility
48+
======================
49+
50+
From the standpoint of software interfaces, there would be no break in
51+
backward compatibility. Some outputs would be different, but if the user
52+
truly desires the previous behavior, he/she can achieve this by overriding
53+
the axis scaling for both axes.
54+
55+
Alternatives
56+
============
57+
58+
The only alternative that I can see is to maintain the status quo.

‎doc/devel/MEP/index.rst

Copy file name to clipboardExpand all lines: doc/devel/MEP/index.rst
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ Matplotlib Enhancement Proposals
1818
MEP12
1919
MEP13
2020
MEP14
21+
MEP15
2122
MEP25

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.