We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ea532a commit e134654Copy full SHA for e134654
histogrammar/util.py
@@ -53,12 +53,18 @@ class PlotMethod(object):
53
def __init__(self, container, plot):
54
self.container = container
55
self.plot = plot
56
- if hasattr(container, "plotroot"):
+ try:
57
self.root = container.plotroot
58
- if hasattr(container, "plotbokeh"):
+ except (AttributeError, KeyError):
59
+ pass
60
61
self.bokeh = container.plotbokeh
- if hasattr(container, "plotmatplotlib"):
62
63
64
65
self.matplotlib = container.plotmatplotlib
66
67
68
def __call__(self, *args, **kwds):
69
return self.plot(*args, **kwds)
70
0 commit comments