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

matplotlib / matplotlib / 9459
36%

Build:
DEFAULT BRANCH: master
Ran 01 Dec 2015 06:38AM UTC
Jobs 6
Files 98
Run time 492min
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
9459

Pull #5594

travis-ci

tacaswell
TST: shotgun testing of LogFormatter.pprint_val

Code used to generate the test data to establish bench mark.

First print out is human-readable, second is for testing

import itertools
import matplotlib.ticker as mticker
import numpy as np

domains = sorted([1e-3, 1.5e-2, 1e6, 100, 5, .5])
float_values = sorted([np.pi * (10**i) for i in range(-5, 6)])
int_values = sorted([1 * (10 ** i) for i in range(-5, 6)])
fmt = mticker.LogFormatter()
print()
for d in domains:
    print('Domain ', d)
    for f in float_values:
        print('     {: >10.7f}: {: <10}'.format(f, fmt.pprint_val(f, d)))
    for f in int_values:
        print('     {: >10g}: {: <10}'.format(f, fmt.pprint_val(f, d)))

print()
print()

print(',\n'.join(['        ({v:.10g}, {d!r}, {res!r})'.format(
    v=f, d=d, res=fmt.pprint_val(f, d))
                  for d, f in itertools.product(
                          domains, float_values + int_values)]))
Pull Request #5594: FIX: formatting in LogFormatterExponent

28796 of 42663 relevant lines covered (67.5%)

0.67 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
133
100.0
lib/matplotlib/ticker.py
Jobs
ID Job ID Ran Files Coverage
1 9459.1 (MOCK=mock NUMPY=numpy==1.6) 01 Dec 2015 06:42AM UTC 0
Travis Job 9459.1
2 9459.2 01 Dec 2015 06:47AM UTC 0
Travis Job 9459.2
3 9459.3 (PANDAS=pandas NOSE_ARGS=--with-coverage) 01 Dec 2015 06:54AM UTC 0
67.5
Travis Job 9459.3
4 9459.4 (TEST_ARGS=--pep8) 01 Dec 2015 06:38AM UTC 0
Travis Job 9459.4
5 9459.5 (BUILD_DOCS=true MOCK=mock) 01 Dec 2015 02:49PM UTC 0
Travis Job 9459.5
6 9459.6 (PRE=--pre) 01 Dec 2015 02:51PM UTC 0
Travis Job 9459.6
Source Files on build 9459
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #9459
  • Pull Request #5594
  • PR Base - master (#9447)
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