Skip to content

fix HeatmapCmapFeature #357

@kushalkolar

Description

@kushalkolar
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[148], line 1
----> 1 viz_cnmf.plot_heatmap["heatmap"].cmap = "viridis"

File ~/repos/fastplotlib/fastplotlib/graphics/_base.py:139, in Graphic.__setattr__(self, key, value)
    137     attr = getattr(self, key)
    138     if isinstance(attr, GraphicFeature):
--> 139         attr._set(value)
    140         return
    142 super().__setattr__(key, value)

File ~/repos/fastplotlib/fastplotlib/graphics/_features/_colors.py:406, in HeatmapCmapFeature._set(self, cmap_name)
    404 self._parent._material.map.data[:] = make_colors(256, cmap_name)
    405 self._parent._material.map.update_range((0, 0, 0), size=(256, 1, 1))
--> 406 self.name = cmap_name
    408 self._feature_changed(key=None, new_data=self.name)

AttributeError: property 'name' of 'HeatmapCmapFeature' object has no setter

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions