You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now you need to use core MPL to create a custom legend with earthpy.
it would be much nicer if you could simply call a custom legend from within plot_bands.
# Create a colormap from a list of colors
cmap = ListedColormap(colors)
f, ax = plt.subplots()
im = ax.imshow(lidar_chm_class_ma,
cmap=cmap)
ep.draw_legend(im, titles=height_class_labels)
ax.set_axis_off()
plt.show()
The text was updated successfully, but these errors were encountered:
Right now you need to use core MPL to create a custom legend with earthpy.
it would be much nicer if you could simply call a custom legend from within plot_bands.
The text was updated successfully, but these errors were encountered: