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

hgrecco / pint / 1192
92%
master: 91%

Build:
Build:
LAST BUILD BRANCH: fix-nonmult-doc
DEFAULT BRANCH: master
Ran 31 Aug 2019 04:19AM UTC
Jobs 11
Files 16
Run time 4min
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
1192

push

travis-ci

web-flow
Merge #825

825: Allow np arrays of scalar quantities to be plotted r=hgrecco a=andrewgsavage

This is to make plotting PintArrays work. PintArrays are converted to np arrays of scalar quantities.
This currently works:

```
import matplotlib.pyplot as plt
import numpy as np
import pint
import pandas as pd

ureg=pint.UnitRegistry()

Q_=ureg.Quantity

ureg.setup_matplotlib(True)

y = np.linspace(0, 30) * ureg.miles
x = np.linspace(0, 5) * ureg.hours

fig, ax = plt.subplots()
ax.plot(x, y, 'tab:blue')
```

This allows the following to work:

```
yy = np.array([item for item in y],dtype = "O")
xx = np.array([item for item in x],dtype = "O")

fig, ax = plt.subplots()
ax.plot(xx, yy, 'tab:blue')
```

Co-authored-by: andrewgsavage <andrewgsavage@gmail.com>
Co-authored-by: Andrew Savage <andrewgsavage@gmail.com>

2933 of 3317 relevant lines covered (88.42%)

9.28 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1192.1 (UNCERTAINTIES="N" PYTHON="3.3" NUMPY_VERSION=1.9.2 PANDAS=0) 31 Aug 2019 04:19AM UTC 0
85.62
Travis Job 1192.1
2 1192.2 (UNCERTAINTIES="N" PYTHON="3.4" NUMPY_VERSION=1.11.2 PANDAS=0) 31 Aug 2019 04:19AM UTC 0
85.68
Travis Job 1192.2
3 1192.3 (UNCERTAINTIES="N" PYTHON="3.5" NUMPY_VERSION=1.11.2 PANDAS=0) 31 Aug 2019 04:19AM UTC 0
85.68
Travis Job 1192.3
4 1192.4 (UNCERTAINTIES="Y" PYTHON="3.5" NUMPY_VERSION=1.11.2 PANDAS=0) 31 Aug 2019 04:21AM UTC 0
87.55
Travis Job 1192.4
5 1192.5 (UNCERTAINTIES="N" PYTHON="3.6" NUMPY_VERSION=1.11.2 PANDAS=0) 31 Aug 2019 04:21AM UTC 0
85.68
Travis Job 1192.5
6 1192.6 (UNCERTAINTIES="N" PYTHON="2.7" NUMPY_VERSION=0 PANDAS=0) 31 Aug 2019 04:21AM UTC 0
77.24
Travis Job 1192.6
7 1192.7 (UNCERTAINTIES="N" PYTHON="3.5" NUMPY_VERSION=0 PANDAS=0) 31 Aug 2019 04:21AM UTC 0
76.97
Travis Job 1192.7
8 1192.8 (UNCERTAINTIES="N" PYTHON="2.7" NUMPY_VERSION=1.14 PANDAS=0) 31 Aug 2019 04:23AM UTC 0
85.62
Travis Job 1192.8
9 1192.9 (UNCERTAINTIES="N" PYTHON="3.5" NUMPY_VERSION=1.14 PANDAS=0) 31 Aug 2019 04:23AM UTC 0
85.35
Travis Job 1192.9
10 1192.10 (UNCERTAINTIES="Y" PYTHON="3.5" NUMPY_VERSION=1.14 PANDAS=0) 31 Aug 2019 04:24AM UTC 0
87.22
Travis Job 1192.10
11 1192.11 (UNCERTAINTIES="N" PYTHON="3.6" NUMPY_VERSION=1.14 PANDAS=0) 31 Aug 2019 04:24AM UTC 0
85.35
Travis Job 1192.11
Source Files on build 1192
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1192
  • f442426d on github
  • Prev Build on staging (#1182)
  • Next Build on staging (#1197)
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