Skip to content

Commit 101973b

Browse files
committed
Add a placeholder for bokeh engine
1 parent 5f29a57 commit 101973b

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

pandas/plotting/_core.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2460,6 +2460,36 @@ def _grouped_plot_by_column(plotf, data, columns=None, by=None,
24602460
return result
24612461

24622462

2463+
class BokehSeriesPlotMethods(base.SeriesPlotMethods):
2464+
"""Let's start hacking"""
2465+
2466+
@property
2467+
def engine_name(self):
2468+
return 'bokeh'
2469+
2470+
def __call__(self, kind='line', ax=None,
2471+
figsize=None, use_index=True, title=None, grid=None,
2472+
legend=False, style=None, logx=False, logy=False,
2473+
loglog=False, xticks=None, yticks=None,
2474+
xlim=None, ylim=None,
2475+
rot=None, fontsize=None, colormap=None, table=False,
2476+
yerr=None, xerr=None,
2477+
label=None, secondary_y=False, **kwds):
2478+
2479+
__call__.__doc__ = plot_series.__doc__
2480+
2481+
def line(self, **kwds):
2482+
"""Line drawn using bokeh
2483+
2484+
Args:
2485+
**kwds:
2486+
2487+
Returns:
2488+
2489+
"""
2490+
return self(kind='line', **kwds)
2491+
2492+
24632493
class MPLSeriesPlotMethods(base.SeriesPlotMethods):
24642494
"""Series plotting accessor and method
24652495

0 commit comments

Comments
 (0)