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

matplotlib / matplotlib / 12455 / 3
36%
master: 36%

Build:
DEFAULT BRANCH: master
Ran 24 Jul 2016 08:15PM UTC
Files 98
Run time 5s
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

24 Jul 2016 07:57PM UTC coverage: 70.345% (-0.004%) from 70.349%
PANDAS=pandas NOSE_ARGS=--with-coverage

Pull #6821

travis-ci

web-flow
Break reference cycle Line2D <-> Line2D._lineFunc.

Upon drawing, Line2D objects would store a reference to one of their own
bound methods as their `_lineFunc` argument.  This would lead to them
being gc'ed not when going out of scope, but only when the "true" gc
kicks in; additionally this led to some pickle-related bugs (#3627).

One can easily sidestep this problem by not storing this bound method.

To check the behavior, try (py3.4+ only):

```
import gc
import weakref
from matplotlib import pyplot as plt

def f():
    fig, ax = plt.subplots()
    img = ax.imshow([[0, 1], [2, 3]])
    weakref.finalize(img, print, "gc'ing image")
    l, = plt.plot([0, 1])
    weakref.finalize(l, print, "gc'ing line")
    fig.canvas.draw()
    img.remove()
    l.remove()

f()
print("we have left the function")
gc.collect()
print("and cleaned up our mess")
```

Before the patch, the AxesImage is gc'ed when the function exits but the
Line2D only upon explicit garbage collection.  After the patch, both are
collected immediately.
Pull Request #6821: Break reference cycle Line2D <-> Line2D._lineFunc.

30161 of 42876 relevant lines covered (70.34%)

0.7 hits per line

Source Files on job 12455.3 (PANDAS=pandas NOSE_ARGS=--with-coverage)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 12455
  • Travis Job 12455.3
  • 36ba9db2 on github
  • Prev Job for PANDAS=pandas NOSE_ARGS=--with-coverage on master (#12435.3)
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