jaclearn.visualize.plot#

Classes

Functions

heatmap2pil(heatmap[, normalization, ...])

plot2opencv(fig)

Convert a pyplot instance to image

plot2pil(fig)

Class HeatmapNormalization

class HeatmapNormalization[source]#

Bases: JacEnum

__new__(value)#
classmethod assert_valid(value)#

Assert if the value is a valid choice.

classmethod choice_names()#

Returns the list of the name of all possible choices.

classmethod choice_objs()#

Returns the list of the object of all possible choices.

classmethod choice_values()#

Returns the list of the value of all possible choices.

classmethod from_string(value)#
Parameters:

value (str | JacEnum)

Return type:

JacEnum

classmethod is_valid(value)#

Check if the value is a valid choice.

classmethod type_name()#

Return the type name of the enum.

INSTANCE = 'instance'#
NONE = 'none'#
RANGE = 'range'#

Functions

heatmap2pil(heatmap, normalization='none', minval=0, maxval=1)[source]#
plot2opencv(fig)[source]#

Convert a pyplot instance to image

plot2pil(fig)[source]#