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

vispy / vispy / 14510827620
75%

Build:
DEFAULT BRANCH: main
Ran 17 Apr 2025 07:54AM UTC
Jobs 4
Files 345
Run time 1min
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.905% (+0.01%) from 74.894%
14510827620

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'
```

5849 of 10584 branches covered (55.26%)

60 of 60 new or added lines in 2 files covered. (100.0%)

4 existing lines in 2 files now uncovered.

24150 of 32241 relevant lines covered (74.9%)

2.45 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
99.62
-0.38% vispy/visuals/tests/test_image.py
3
91.89
-1.01% vispy/visuals/image.py
Jobs
ID Job ID Ran Files Coverage
1 run-1 - 14510827620.1 17 Apr 2025 08:04AM UTC 345
46.65
2 run-4 - 14510827620.2 17 Apr 2025 08:04AM UTC 345
72.46
3 run-2 - 14510827620.3 17 Apr 2025 08:04AM UTC 345
74.15
4 run-3 - 14510827620.4 17 Apr 2025 08:04AM UTC 345
52.01
Source Files on build 14510827620
  • 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 Repo
  • 4524b6ea on github
  • Prev Build on main (#14467850922)
  • Next Build on main (#14515543648)
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