Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a9aace3

Browse files
committed
trying to show ticks and labels on both x and y axis
1 parent 8e1bc63 commit a9aace3

File tree

2 files changed

+560
-3
lines changed

2 files changed

+560
-3
lines changed

lib/matplotlib/cm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ def __init__(self, norm=None, cmap=None):
201201
#: The Normalization instance of this ScalarMappable.
202202
self.norm = norm
203203
#: The Colormap instance of this ScalarMappable.
204-
self.cmap = get_cmap(cmap)
204+
# self.cmap = get_cmap(cmap)
205+
self.cmap = cmap
205206
#: The last colorbar associated with this ScalarMappable. May be None.
206207
self.colorbar = None
207208
self.update_dict = {'array': False}

0 commit comments

Comments
 (0)