Skip to content

Commit

Permalink
Made Box, Bounds, Ellipse and Polygons style changes conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed Jun 20, 2017
1 parent 6178ed9 commit 3c2a469
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions holoviews/plotting/mpl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,16 @@ def grid_selector(grid):
options.Contours = Options('style', color=Cycle())
options.Contours = Options('plot', show_legend=True)
options.Path = Options('style', color=Cycle())
options.Box = Options('style', color='black')
options.Bounds = Options('style', color='black')
options.Ellipse = Options('style', color='black')
options.Polygons = Options('style', facecolor=Cycle(), edgecolor='black')

if not config.style_17:
options.Box = Options('style', color=Cycle())
options.Bounds = Options('style', color=Cycle())
options.Ellipse = Options('style', color=Cycle())
else:
options.Box = Options('style', color='black')
options.Bounds = Options('style', color='black')
options.Ellipse = Options('style', color='black')
options.Polygons = Options('style', facecolor=Cycle(), edgecolor='black')

# Interface
options.TimeSeries = Options('style', color=Cycle())
Expand Down

0 comments on commit 3c2a469

Please sign in to comment.