GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — More ColorsFeature handling · Issue #191 · fastplotlib/fastplotlib

More ColorsFeature handling  #191

New issue
Copy link
New issue
Copy link
Closed
#241
Closed
More ColorsFeature handling #191
#241
Copy link

Description

@kushalkolar
kushalkolar
opened on May 12, 2023
Issue body actions

Take list or 1d array of numbers and automatically map these to colors based on the cmap argument. Useful for line collection for ROIs and line stacks, but also for single Line such as y_colorbar

  • modify cmaps for line and scatter (position based graphics) after creating them, probably implement in CmapFeature

  • modify cmap for colletions

  • Use an array of values for mapping the colors, for examples if we have a cosine wave allow passing in a 1D array of values that represent a variable for mapping from a colormap, for example set the cmap based on sine values for a cosine line. Or with caiman set the contour colors based on r_values

  • there needs to be a way to modify these values after being set, maybe in the CmapFeature for Line and Scatter

  • modify the cmap_values after being set for collections

Activity

  1. kushalkolar commented on Jun 17, 2023

    @kushalkolar
    kushalkolar
    on Jun 17, 2023
    MemberAuthor
    More actions

    Idea for how to implement this:

    For example if the 1d array of numbers is a quality metric, like we use for components in caiman, first normalize them between 0 - n_cmap_colors where n_cmap_colors is the number of colors for the cmap. Then just convert the cmap_values to ints and use it to index the LUT for that cmap!

  2. kushalkolar
    closed this as completedin #241on Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.