Skip to content

Commit

Permalink
[plots] Fix problem that can appear when using np.load with contour
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidMStraub committed Mar 23, 2017
1 parent 8d618f6 commit 738ec3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flavio/plots/plotfunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ def contour(x, y, z, levels,
_contour_args.update(contour_args)
_contourf_args.update(contourf_args)
# for the filling, need to add zero contour
levelsf = [np.min(z)] + levels
levelsf = [np.min(z)] + list(levels)
ax = plt.gca()
if filled:
ax.contourf(x, y, z, levels=levelsf, **_contourf_args)
Expand Down

0 comments on commit 738ec3b

Please sign in to comment.