Skip to content

Code removal #3992

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 13 commits into from
Feb 6, 2015
Merged
Show file tree
Hide file tree
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 : remove set_colorbar from ScalarMappable
Deprecated in #2055 / 148ed82
  • Loading branch information
tacaswell committed Jan 22, 2015
commit 78aabc3efb4cb7cc86541d81c9df2ec701a72442
5 changes: 5 additions & 0 deletions doc/api/api_changes/code_removal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,8 @@ remove 'faceted' as a valid value for `shading` in ``tri.tripcolor``
--------------------------------------------------------------------
Use `edgecolor` instead. Added validation on ``shading`` to
only be valid values.


Remove ``set_colorbar`` method from ``ScalarMappable``
------------------------------------------------------
Remove ``set_colorbar`` method, use `colorbar` attribute directly.
5 changes: 0 additions & 5 deletions lib/matplotlib/cm.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,6 @@ def __init__(self, norm=None, cmap=None):
self.colorbar = None
self.update_dict = {'array': False}

@cbook.deprecated('1.3', alternative='the colorbar attribute')
def set_colorbar(self, im, ax):
"""set the colorbar and axes instances associated with mappable"""
self.colorbar = im

def to_rgba(self, x, alpha=None, bytes=False):
"""
Return a normalized rgba array corresponding to *x*.
Expand Down