8000 [MRG+1] plot_date() after axhline() doesn't rescale axes by Yasaman-Mah · Pull Request #8205 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

[MRG+1] plot_date() after axhline() doesn't rescale axes #8205

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

Closed
wants to merge 12 commits into from
Prev Previous commit
Next Next commit
fix #7742
  • Loading branch information
Yasaman-Mah committed Mar 4, 2017
commit 7eceed5538d1f1232708d82a6c599cf9a0d079cf
1 change: 1 addition & 0 deletions lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,7 @@ def axhline(self, y=0, xmin=0, xmax=1, **kwargs):
trans = self.get_yaxis_transform(which='grid')
l = mlines.Line2D([xmin, xmax], [y, y], transform=trans, **kwargs)
self.add_line(l)
self.ignore_existing_data_limits = True
self.autoscale_view(scalex=False, scaley=scaley)
return l

Expand Down
0