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

hgrecco / pint / 1193 / 5
91%
master: 91%

Build:
DEFAULT BRANCH: master
Ran 31 Aug 2019 04:26AM UTC
Files 16
Run time 1s
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

31 Aug 2019 04:13AM UTC coverage: 85.68% (-0.05%) from 85.732%
UNCERTAINTIES="N" PYTHON="3.6" NUMPY_VERSION=1.11.2 PANDAS=0

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>

2842 of 3317 relevant lines covered (85.68%)

0.86 hits per line

Source Files on job 1193.5 (UNCERTAINTIES="N" PYTHON="3.6" NUMPY_VERSION=1.11.2 PANDAS=0)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1105
  • Travis Job 1193.5
  • f442426d on github
  • Prev Job for UNCERTAINTIES="N" PYTHON="3.6" NUMPY_VERSION=1.11.2 PANDAS=0 on master (#1185.5)
  • Next Job for UNCERTAINTIES="N" PYTHON="3.6" NUMPY_VERSION=1.11.2 PANDAS=0 on master (#1198.5)
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