Skip to content

Commit f79ce31

Browse files
authored
Merge pull request #198 from ocefpaf/default_cmap_from_mpl
use mpl default cmap
2 parents 860fc9a + 7df6cc2 commit f79ce31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

windrose/windrose.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def _init_plot(self, direction, var, **kwargs):
279279
blowto : boolean, default False
280280
colors : str or list of str, default None
281281
The colors of the plot.
282-
cmap : color map, default `jet`
282+
cmap : color map
283283
A :obj:`matplotlib.cm` colormap for the plot.
284284
Warning! It overrides `colors`.
285285
weibull_factors :
@@ -355,7 +355,7 @@ def _init_plot(self, direction, var, **kwargs):
355355
raise ValueError("colors and bins must have same length")
356356
else:
357357
if cmap is None:
358-
cmap = mpl.cm.jet
358+
cmap = plt.get_cmap()
359359
colors = self._colors(cmap, nbins)
360360

361361
# Building the angles list

0 commit comments

Comments
 (0)