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 — Simplify colormap handling · Issue #1004 · fastplotlib/fastplotlib

Simplify colormap handling #1004

New issue
Copy link
New issue
Copy link
Closed
Closed
Simplify colormap handling#1004
Copy link

Description

@kushalkolar
kushalkolar
opened on Feb 26, 2026
Issue body actions

As Almar suggested here we can just migrate to pygfx.cm.create_colormap(). This will make things easier and let us use custom colormaps with whatever number of custom colors. This is necessary for @KceniaB usecase with the probability heatmaps.

Can create a TextureMap like this with using the cmap library to generate the cmap array as well:

texture_map = gfx.cm.create_colormap(cmap.Colormap(["r", "cyan", "magenta"]).lut(3), n=3)

Can then just set this on material.map for images, and texcoords for geometries (lines, scatters, meshes).

Activity

  1. kushalkolar
    closed this as completedon Sep 11, 2026
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 01402503 — 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.