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

hgrecco / pint / 1193
91%

Build:
DEFAULT BRANCH: master
Ran 31 Aug 2019 04:26AM 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
1193

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 1193.1 (UNCERTAINTIES="N" PYTHON="3.3" NUMPY_VERSION=1.9.2 PANDAS=0) 31 Aug 2019 04:26AM UTC 0
85.62
Travis Job 1193.1
2 1193.2 (UNCERTAINTIES="N" PYTHON="3.4" NUMPY_VERSION=1.11.2 PANDAS=0) 31 Aug 2019 04:27AM UTC 0
85.59
Travis Job 1193.2
3 1193.3 (UNCERTAINTIES="N" PYTHON="3.5" NUMPY_VERSION=1.11.2 PANDAS=0) 31 Aug 2019 04:26AM UTC 0
85.68
Travis Job 1193.3
4 1193.4 (UNCERTAINTIES="Y" PYTHON="3.5" NUMPY_VERSION=1.11.2 PANDAS=0) 31 Aug 2019 04:26AM UTC 0
87.55
Travis Job 1193.4
5 1193.5 (UNCERTAINTIES="N" PYTHON="3.6" NUMPY_VERSION=1.11.2 PANDAS=0) 31 Aug 2019 04:26AM UTC 0
85.68
Travis Job 1193.5
6 1193.6 (UNCERTAINTIES="N" PYTHON="2.7" NUMPY_VERSION=0 PANDAS=0) 31 Aug 2019 04:29AM UTC 0
77.24
Travis Job 1193.6
7 1193.7 (UNCERTAINTIES="N" PYTHON="3.5" NUMPY_VERSION=0 PANDAS=0) 31 Aug 2019 04:28AM UTC 0
77.06
Travis Job 1193.7
8 1193.8 (UNCERTAINTIES="N" PYTHON="2.7" NUMPY_VERSION=1.14 PANDAS=0) 31 Aug 2019 04:30AM UTC 0
85.62
Travis Job 1193.8
9 1193.9 (UNCERTAINTIES="N" PYTHON="3.5" NUMPY_VERSION=1.14 PANDAS=0) 31 Aug 2019 04:29AM UTC 0
85.35
Travis Job 1193.9
10 1193.10 (UNCERTAINTIES="Y" PYTHON="3.5" NUMPY_VERSION=1.14 PANDAS=0) 31 Aug 2019 04:29AM UTC 0
87.22
Travis Job 1193.10
11 1193.11 (UNCERTAINTIES="N" PYTHON="3.6" NUMPY_VERSION=1.14 PANDAS=0) 31 Aug 2019 04:31AM UTC 0
85.26
Travis Job 1193.11
Source Files on build 1193
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1193
  • f442426d on github
  • Prev Build on master (#1185)
  • Next Build on master (#1198)
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