• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

vispy / vispy / 14510827620 / 3
75%
main: 75%

Build:
DEFAULT BRANCH: main
Ran 17 Apr 2025 08:04AM UTC
Files 345
Run time 8s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Apr 2025 07:52AM UTC coverage: 74.154% (+0.01%) from 74.142%
14510827620.3

push

github

web-flow
Add high and low color settings for colormaps (HiLo mapping) (#2663)

As suggested by @aganders3 in
https://github.com/vispy/vispy/pull/2659#issuecomment-2786508704, based
on the discussion in https://github.com/napari/napari/issues/6878.

Note that this includes changes from #2662. What do you think
@aganders3?

You can try it out with this snippet:


```py
import sys
from vispy import scene, app
from vispy.color import get_colormap
import numpy as np


canvas = scene.SceneCanvas(keys='interactive', bgcolor='white')
canvas.size = 600, 800
view = canvas.central_widget.add_view()

img_data = np.zeros((500, 500), np.float32)
for i in range(10):
    img_data[i*50:(i+1)*50, :] = i

img_data[:, 20:60] = np.nan

image = scene.visuals.Image(img_data, 
                            cmap='fire',
                            clim=[1, 8],
                            interpolation='cubic', 
                            texture_format='auto')
view.add(image)

view.camera = scene.cameras.TurntableCamera()
view.camera.set_range()
canvas.show()
```

and then something like:

```
image.low_color = 'blue'
image.high_color = 'green'
```

5584 of 10602 branches covered (52.67%)

23908 of 32241 relevant lines covered (74.15%)

0.74 hits per line

Source Files on job run-2 - 14510827620.3
  • Tree
  • List 345
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 14510827620
  • 4524b6ea on github
  • Prev Job for on main (#14467850922.1)
  • Next Job for on main (#14515543648.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc