8000 DOC/MNT: Throwing some docstrings at axes_rgb.py by ericdill · Pull Request #4564 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

DOC/MNT: Throwing some docstrings at axes_rgb.py #4564

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 7 commits into from
Jul 1, 2015
Merged
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
MNT: Reraise the same exception
Fixed a sloppy copy/paste in py2/py3 compatible reraising
  • Loading branch information
ericdill committed Jun 29, 2015
commit 2ce78a70f90508331db21ea10ee991ac11300021
3 changes: 1 addition & 2 deletions lib/mpl_toolkits/axes_grid1/axes_rgb.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import numpy as np
from .axes_divider import make_axes_locatable, Size, locatable_axes_factory
import sys
import warnings

def make_rgb_axes(ax, pad=0.01, axes_class=None, add_all=True):
"""
Expand Down Expand Up @@ -128,7 +127,7 @@ def __init__(self, *kl, **kwargs):
"_defaultAxesClass attribute. If you are not sure which "
"axes class to use, consider using "
"mpl_toolkits.axes_grid1.mpl_axes.Axes.")
six.reraise(KeyError, AttributeError(new_msg),
six.reraise(AttributeError, AttributeError(new_msg),
sys.exc_info()[2])

ax = axes_class(*kl, **kwargs)
Expand Down
0