-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Closed
Labels
Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Milestone
Description
Based on description of tight ("If True, set view limits to data limits"), I would have expected MPL 1.5.1 behavior (see code and image below). Though perhaps there was a little margin added intentionally?
Edit: I see this first part was intended, as change #5583. See second issue below.
import matplotlib as mpl
plt.plot([1,2,3,4])
plt.autoscale(axis='both', tight=True)
plt.show()
Aside from this, MPL 1.x use to conveniently adjust view limits for log and symlog when tight autoscaling was not on, but MPL 2 does not seem to do this anymore.
This actually also looks like a result of #5583. I would argue the previous behavior was actually desirable in many instances. Is there a way to recover it?
import matplotlib as mpl
plt.plot([1,2,3,4])
ax = plt.gca()
ax.set_xscale('log')
ax.set_yscale('log')
plt.show()
Python 2.7 and 3.4
Using tkagg backend.
Windows 7
Metadata
Metadata
Assignees
Labels
Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.