Skip to content
Snippets Groups Projects
Commit 86036f15 authored by Martin Schrön's avatar Martin Schrön
Browse files

Fixed usage of arguments in add_colorbar

parent 693af80a
No related branches found
No related tags found
No related merge requests found
......@@ -455,11 +455,11 @@ def add_colorbar(ax=None, points=None, label=None,
):
cb = plt.colorbar(points, ax=ax, **bar_kw)
if ticks:
if not ticks is None:
cb.ax.set_yticks(ticks)
if ticklabels:
if not ticklabels is None:
cb.ax.set_yticklabels(ticklabels, **ticks_kw)
if label:
if not label is None:
cb.set_label(label, **label_kw)
def set_time_ticks(ax=None, how=None, which='major', fmt=None):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment