Skip to content

Commit 0c96aa0

Browse files
committed
render plotly and test for it
1 parent 29c931a commit 0c96aa0

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

render.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"plotnine": "plotnine",
2424
"ggplot": "ggplot2 (R)",
2525
"bokeh": "Bokeh",
26+
"plotly": "plotly",
2627
}
2728

2829
names = {

tests/test_plots.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
import render
22

3-
defined_plots = {'bar-counts': ['pandas', 'plotnine', 'ggplot', ],
4-
'dodged-bar-chart': ['pandas', 'plotnine', 'ggplot', ],
5-
'scatter-plot': ['pandas', 'plotnine', 'ggplot', ],
3+
defined_plots = {'bar-counts': ['pandas', 'plotnine', 'ggplot', 'plotly', ],
4+
'dodged-bar-chart': ['pandas', 'plotnine', 'ggplot', 'plotly', ],
5+
'scatter-plot': ['pandas', 'plotnine', 'ggplot', 'plotly', ],
66
'scatter-plot-with-colors': ['matplotlib',
77
'seaborn',
88
'plotnine',
99
'ggplot',
10-
],
11-
'scatter-plot-with-facet': ['seaborn', 'plotnine', 'ggplot', ],
12-
'scatter-plot-with-facets': ['seaborn', 'plotnine', 'ggplot', ],
13-
'scatter-plot-with-size': ['pandas', 'plotnine', 'ggplot', ],
14-
'scatter-with-regression': ['seaborn', 'plotnine', 'ggplot', ],
15-
'simple-histogram': ['pandas', 'matplotlib', 'plotnine', 'ggplot', ],
16-
'stacked-bar-chart': ['pandas', 'plotnine', 'ggplot', ],
17-
'stacked-kde': ['pandas', 'seaborn', 'plotnine', 'ggplot', ],
18-
'stacked-smooth-line-and-scatter': ['plotnine', 'ggplot', ],
19-
'timeseries': ['pandas', 'plotnine', 'ggplot', ]}
10+
'plotly', ],
11+
'scatter-plot-with-facet': ['seaborn', 'plotnine', 'ggplot', 'plotly', ],
12+
'scatter-plot-with-facets': ['seaborn', 'plotnine', 'ggplot', 'plotly', ],
13+
'scatter-plot-with-size': ['pandas', 'plotnine', 'ggplot', 'plotly', ],
14+
'scatter-with-regression': ['seaborn', 'plotnine', 'ggplot', 'plotly', ],
15+
'simple-histogram': ['pandas', 'matplotlib', 'plotnine', 'ggplot', 'plotly', ],
16+
'stacked-bar-chart': ['pandas', 'plotnine', 'ggplot', 'plotly', ],
17+
'stacked-kde': ['pandas', 'seaborn', 'plotnine', 'ggplot', 'plotly', ],
18+
'stacked-smooth-line-and-scatter': ['plotnine', 'ggplot', 'plotly', ],
19+
'timeseries': ['pandas', 'plotnine', 'ggplot', 'plotly', ]}
2020

2121

2222
def test_exist():

0 commit comments

Comments
 (0)