onstove.RasterLayer.category_legend#

static RasterLayer.category_legend(im, categories, legend_position=(1.05, 1), title='', legend_cols=1, legend_prop={'size': 12, 'title': {'size': 12, 'weight': 'bold'}})#

Creates a category legend for the current plot.

Parameters:
im
categories
legend_position
title
legend_cols
legend_prop