File tree Expand file tree Collapse file tree 1 file changed +6
-17
lines changed Expand file tree Collapse file tree 1 file changed +6
-17
lines changed Original file line number Diff line number Diff line change @@ -318,24 +318,14 @@ def get_spine_visible(ax, spine_key):
318
318
return False # oh man, and i thought we exhausted the options...
319
319
320
320
321
- def is_bar (** props ):
321
+ def is_bar (bar_containers , ** props ):
322
322
"""A test to decide whether a path is a bar from a vertical bar chart."""
323
- tests = []
324
- tests += get_rect_ymin (props ['data' ]) == 0 ,
325
- if all (tests ):
326
- return True
327
- else :
328
- return False
329
-
330
323
331
- def is_barh (** props ):
332
- """A test to decide whether a path is a bar from a horizontal bar chart."""
333
- tests = []
334
- tests += get_rect_xmin (props ['data' ]) == 0 ,
335
- if all (tests ):
336
- return True
337
- else :
338
- return False
324
+ # is this patch in a bar container?
325
+ for container in bar_containers :
326
+ if props ['mplobj' ] in container :
327
+ return True
328
+ return False
339
329
340
330
341
331
def make_bar (** props ):
@@ -351,7 +341,6 @@ def make_bar(**props):
351
341
"""
352
342
return {
353
343
'bar' : props ['mplobj' ],
354
- 'orientation' : props ['orientation' ],
355
344
'x0' : get_rect_xmin (props ['data' ]),
356
345
'y0' : get_rect_ymin (props ['data' ]),
357
346
'x1' : get_rect_xmax (props ['data' ]),
You can’t perform that action at this time.
0 commit comments