Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Some Altair Plots for pythonplot.com #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
994 changes: 929 additions & 65 deletions Examples.ipynb

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions render.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"bokeh": "Bokeh",
"plotly": "plotly",
"ggplot": "ggplot2 (R)",
"altair": "Altair",
}

names = {
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ statsmodels
rpy2
tzlocal
simplegeneric
altair
vega == 1.3.0
20 changes: 10 additions & 10 deletions tests/test_plots.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
import render

defined_plots = {'bar-counts': ['pandas', 'plotnine', 'ggplot', 'plotly', ],
'dodged-bar-chart': ['pandas', 'plotnine', 'ggplot', 'plotly', ],
'scatter-plot': ['pandas', 'plotnine', 'ggplot', 'plotly', ],
defined_plots = {'bar-counts': ['pandas', 'plotnine', 'ggplot', 'plotly', 'altair', ],
'dodged-bar-chart': ['pandas', 'plotnine', 'ggplot', 'plotly', 'altair', ],
'scatter-plot': ['pandas', 'plotnine', 'ggplot', 'plotly', 'altair',],
'scatter-plot-with-colors': ['matplotlib',
'seaborn',
'plotnine',
'ggplot',
'plotly', ],
'scatter-plot-with-facet': ['seaborn', 'plotnine', 'ggplot', 'plotly', ],
'scatter-plot-with-facets': ['seaborn', 'plotnine', 'ggplot', 'plotly', ],
'scatter-plot-with-size': ['pandas', 'plotnine', 'ggplot', 'plotly', ],
'plotly', 'altair',],
'scatter-plot-with-facet': ['seaborn', 'plotnine', 'ggplot', 'plotly', 'altair',],
'scatter-plot-with-facets': ['seaborn', 'plotnine', 'ggplot', 'plotly', 'altair',],
'scatter-plot-with-size': ['pandas', 'plotnine', 'ggplot', 'plotly', 'altair',],
'scatter-with-regression': ['seaborn', 'plotnine', 'ggplot', 'plotly', ],
'simple-histogram': ['pandas', 'matplotlib', 'plotnine', 'ggplot', 'plotly', ],
'stacked-bar-chart': ['pandas', 'plotnine', 'ggplot', 'plotly', ],
'simple-histogram': ['pandas', 'matplotlib', 'plotnine', 'ggplot', 'plotly', 'altair',],
'stacked-bar-chart': ['pandas', 'plotnine', 'ggplot', 'plotly', 'altair', ],
'stacked-kde': ['pandas', 'seaborn', 'plotnine', 'ggplot', 'plotly', ],
'stacked-smooth-line-and-scatter': ['plotnine', 'ggplot', 'plotly', ],
'timeseries': ['pandas', 'plotnine', 'ggplot', 'plotly', ]}
'timeseries': ['pandas', 'plotnine', 'ggplot', 'plotly','altair', ]}


def test_exist():
Expand Down