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

has2k1 / plotnine / 552
87%

Build:
DEFAULT BRANCH: master
Ran 12 Sep 2019 10:52AM UTC
Jobs 2
Files 147
Run time 42s
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

pending completion
552

push

travis-ci

has2k1
Fix: annotation_stripes with single stripe

annotation_stripes crashes when there is only a single break:

```python
       n_stripes = len(breaks)
        diff = np.diff(breaks)
>       step = diff[0]
E       IndexError: index 0 is out of bounds for axis 0 with size 0
geoms/annotation_stripes:82: IndexError
```

This let's it draw a single stripe instead.

There is a slight discrepancy in that multiple stripes
leave space at the sides, and the single one does not
(as if fill_range was set to True),
but I believe this is actually upstream of annotation_stripes,
when axis extends are calculated.

2293 of 2999 branches covered (76.46%)

Branch coverage included in aggregate %.

8349 of 9256 relevant lines covered (90.2%)

1.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 552.1 (JOB=UNITTEST FULL_DEPS=true) 12 Sep 2019 10:52AM UTC 0
87.0
Travis Job 552.1
2 552.2 (JOB=UNITTEST FULL_DEPS=true) 12 Sep 2019 10:52AM UTC 0
87.0
Travis Job 552.2
Source Files on build 552
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #552
  • 4bba2e4c on github
  • Prev Build on master (#549)
  • Next Build on master (#554)
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