8000 Simplify axes and axis clearing, sharing, and aspect ratio control by efiring · Pull Request #8752 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Simplify axes and axis clearing, sharing, and aspect ratio control #8752

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 7 commits into from
Closed
Changes from 1 commit
Commits
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
PEP 8 again
  • Loading branch information
efiring committed Jun 16, 2017
commit d575d60170be77d372a18a0343910b2f5f56cb10
5 changes: 3 additions & 2 deletions lib/matplotlib/axis.py
8000
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@
# allows all Line2D kwargs.
_line_AI = artist.ArtistInspector(mlines.Line2D)
_line_param_names = _line_AI.get_setters()
_line_param_aliases = [list(d.keys())[0] for d in _line_AI.aliasd.values()]
_line_param_aliases = [list(d.keys())[0] for d in _line_AI.aliasd.values()]
_gridline_param_names = ['grid_' + name
for name in _line_param_names + _line_param_aliases]


class Tick(artist.Artist):
"""
Abstract base class for the axis ticks, grid lines and labels
Expand Down Expand Up @@ -170,7 +171,7 @@ def __init__(self, axes, loc, label,
self._grid_alpha = (rcParams['grid.alpha']
if grid_alpha is None else grid_alpha)

self._grid_kw = {k[5:]:v for k, v in kw.items()}
self._grid_kw = {k[5:]: v for k, v in kw.items()}

self.apply_tickdir(tickdir)

Expand Down
0