diff --git a/altair/examples/beckers_barley_wrapped_facet.py b/altair/examples/beckers_barley_wrapped_facet.py index e379a7fea..fbe10adc6 100644 --- a/altair/examples/beckers_barley_wrapped_facet.py +++ b/altair/examples/beckers_barley_wrapped_facet.py @@ -5,7 +5,7 @@ This is the Altair replicate of `the VegaLite version `_ demonstrating the usage of `columns` argument to create wrapped facet. """ -# category: other charts +# category: advanced calculations import altair as alt from vega_datasets import data diff --git a/altair/examples/boxplot.py b/altair/examples/boxplot.py index 31cd62f42..3a5d30565 100644 --- a/altair/examples/boxplot.py +++ b/altair/examples/boxplot.py @@ -6,7 +6,7 @@ which represents the convention of extending the whiskers to the furthest points within 1.5 * IQR from the first and third quartile. """ -# category: other charts +# category: advanced calculations import altair as alt from vega_datasets import data diff --git a/altair/examples/candlestick_chart.py b/altair/examples/candlestick_chart.py index 1997cda3d..23b338b8e 100644 --- a/altair/examples/candlestick_chart.py +++ b/altair/examples/candlestick_chart.py @@ -6,7 +6,7 @@ in the summer of 2009. The thick bar represents the opening and closing prices, while the thin bar shows intraday high and low prices; if the index closed higher on a given day, the bars are colored green rather than red. """ -# category: other charts +# category: advanced calculations import altair as alt from vega_datasets import data diff --git a/altair/examples/comet_chart.py b/altair/examples/comet_chart.py index 9c6fa7abc..32dd9392c 100644 --- a/altair/examples/comet_chart.py +++ b/altair/examples/comet_chart.py @@ -6,7 +6,7 @@ A more elaborate example and explanation of creating comet charts in Altair is shown in `this blogpost `_. """ -# category: other charts +# category: advanced calculations import altair as alt import vega_datasets diff --git a/altair/examples/errorbars_with_ci.py b/altair/examples/errorbars_with_ci.py index ec70b27b4..b30ee7937 100644 --- a/altair/examples/errorbars_with_ci.py +++ b/altair/examples/errorbars_with_ci.py @@ -5,7 +5,7 @@ The confidence intervals are computed internally in vega by a non-parametric `bootstrap of the mean `_. """ -# category: other charts +# category: advanced calculations import altair as alt from vega_datasets import data diff --git a/altair/examples/errorbars_with_std.py b/altair/examples/errorbars_with_std.py index 1864e0ece..a1e6d9e31 100644 --- a/altair/examples/errorbars_with_std.py +++ b/altair/examples/errorbars_with_std.py @@ -4,7 +4,7 @@ This example shows how to show error bars with standard deviation using crop yields data of different in the years of 1930s. """ -# category: other charts +# category:advanced calculations import altair as alt from vega_datasets import data diff --git a/altair/examples/gantt_chart.py b/altair/examples/gantt_chart.py index 6368890a1..f64bb4b86 100644 --- a/altair/examples/gantt_chart.py +++ b/altair/examples/gantt_chart.py @@ -3,7 +3,7 @@ ----------------- This example shows how to make a simple Gantt chart. """ -# category: other charts +# category: advanced calculations import altair as alt import pandas as pd diff --git a/altair/examples/isotype.py b/altair/examples/isotype.py index f5a3ab502..23da6f4b3 100644 --- a/altair/examples/isotype.py +++ b/altair/examples/isotype.py @@ -5,7 +5,7 @@ Inspired by `Only An Ocean Between, 1943 `_. Population Live Stock, p.13. This is adapted from Vega-Lite example https://vega.github.io/editor/#/examples/vega-lite/isotype_bar_chart ''' -# category: other charts +# category: advanced calculations import altair as alt import pandas as pd diff --git a/altair/examples/isotype_emoji.py b/altair/examples/isotype_emoji.py index a8f143c95..92ab0f3ef 100644 --- a/altair/examples/isotype_emoji.py +++ b/altair/examples/isotype_emoji.py @@ -5,7 +5,7 @@ marks rather than custom SVG paths (see https://altair-viz.github.io/gallery/isotype.html). This is adapted from Vega-Lite example https://vega.github.io/vega-lite/examples/isotype_bar_chart_emoji.html. ''' -# category: other charts +# category:advanced calculations import altair as alt import pandas as pd diff --git a/altair/examples/isotype_grid.py b/altair/examples/isotype_grid.py index fd446e4bc..f90e9e8a8 100644 --- a/altair/examples/isotype_grid.py +++ b/altair/examples/isotype_grid.py @@ -3,7 +3,7 @@ ------------ This example is a grid of isotype figures. """ -# category: other charts +# category: advanced calculations import altair as alt import pandas as pd diff --git a/altair/examples/layered_chart_with_dual_axis.py b/altair/examples/layered_chart_with_dual_axis.py index f01b94a43..8ef8f099b 100644 --- a/altair/examples/layered_chart_with_dual_axis.py +++ b/altair/examples/layered_chart_with_dual_axis.py @@ -3,7 +3,7 @@ ---------------------------- This example shows how to create a second independent y axis. """ -# category: other charts +# category: advanced calculations import altair as alt from vega_datasets import data diff --git a/altair/examples/normed_parallel_coordinates.py b/altair/examples/normed_parallel_coordinates.py index fbf1a8cc4..594aac7af 100644 --- a/altair/examples/normed_parallel_coordinates.py +++ b/altair/examples/normed_parallel_coordinates.py @@ -12,7 +12,7 @@ where the y-axis shows the value after min-max rather than the raw value. It's a simplified Altair version of `the VegaLite version `_ """ -# category: other charts +# category: advanced calculations import altair as alt from vega_datasets import data from altair import datum diff --git a/altair/examples/parallel_coordinates.py b/altair/examples/parallel_coordinates.py index 2ba24a8db..c46bc0129 100644 --- a/altair/examples/parallel_coordinates.py +++ b/altair/examples/parallel_coordinates.py @@ -8,7 +8,7 @@ suitable representation. This example shows a parallel coordinates chart with the Iris dataset. """ -# category: other charts +# category: advanced calculations import altair as alt from vega_datasets import data diff --git a/altair/examples/ranged_dot_plot.py b/altair/examples/ranged_dot_plot.py index 124ce59d8..d7efcf77c 100644 --- a/altair/examples/ranged_dot_plot.py +++ b/altair/examples/ranged_dot_plot.py @@ -3,7 +3,7 @@ --------------- This example shows a ranged dot plot to convey changing life expectancy for the five most populous countries (between 1955 and 2000). """ -# category: other charts +# category: advanced calculations import altair as alt from vega_datasets import data diff --git a/altair/examples/ridgeline_plot.py b/altair/examples/ridgeline_plot.py index e60db1ef6..c033f0f6e 100644 --- a/altair/examples/ridgeline_plot.py +++ b/altair/examples/ridgeline_plot.py @@ -9,7 +9,7 @@ suitable representation. """ -# category: other charts +# category: advanced calculations import altair as alt from vega_datasets import data diff --git a/altair/examples/sorted_error_bars_with_ci.py b/altair/examples/sorted_error_bars_with_ci.py index 8dd582124..2baac1e1d 100644 --- a/altair/examples/sorted_error_bars_with_ci.py +++ b/altair/examples/sorted_error_bars_with_ci.py @@ -3,7 +3,7 @@ ============================================= This example shows how to show error bars using confidence intervals, while also sorting the y-axis based on x-axis values. """ -# category: other charts +# category: advanced calculations import altair as alt from vega_datasets import data diff --git a/altair/examples/stem_and_leaf.py b/altair/examples/stem_and_leaf.py index ad24edaea..cd8f7179e 100644 --- a/altair/examples/stem_and_leaf.py +++ b/altair/examples/stem_and_leaf.py @@ -3,7 +3,7 @@ ------------------ This example shows how to make a stem and leaf plot. """ -# category: other charts +# category: advanced calculations import altair as alt import pandas as pd import numpy as np diff --git a/altair/examples/top_k_items.py b/altair/examples/top_k_items.py index 98e3e2e03..0c8ade36c 100644 --- a/altair/examples/top_k_items.py +++ b/altair/examples/top_k_items.py @@ -5,7 +5,7 @@ the Top items of a long list of items in decreasing order. Here we sort the top 10 highest ranking movies of IMDB. """ -# category: other charts +# category: advanced calculations import altair as alt from vega_datasets import data diff --git a/altair/examples/top_k_letters.py b/altair/examples/top_k_letters.py index ce3050a89..b08fcc309 100644 --- a/altair/examples/top_k_letters.py +++ b/altair/examples/top_k_letters.py @@ -5,7 +5,7 @@ top K categories by number of entries. In this case, we rank the characters in the first paragraph of Dickens' *A Tale of Two Cities* by number of occurances. """ -# category: other charts +# category: advanced calculations import altair as alt import pandas as pd import numpy as np diff --git a/altair/examples/top_k_with_others.py b/altair/examples/top_k_with_others.py index 4444696cb..97b3738cd 100644 --- a/altair/examples/top_k_with_others.py +++ b/altair/examples/top_k_with_others.py @@ -5,7 +5,7 @@ to display the top-k directors by average worldwide gross while grouping the remaining directors as 'All Others'. """ -# category: other charts +# category: advanced calculations import altair as alt from vega_datasets import data diff --git a/altair/examples/violin_plot.py b/altair/examples/violin_plot.py index 66cab4700..e24f4d8cd 100644 --- a/altair/examples/violin_plot.py +++ b/altair/examples/violin_plot.py @@ -3,7 +3,7 @@ ----------- This example shows how to make a Violin Plot using Altair's density transform. """ -# category: other charts +# category: advanced calculations import altair as alt from vega_datasets import data diff --git a/altair/examples/wilkinson-dot-plot.py b/altair/examples/wilkinson-dot-plot.py index 05a5786d0..d8a9889f0 100644 --- a/altair/examples/wilkinson-dot-plot.py +++ b/altair/examples/wilkinson-dot-plot.py @@ -3,7 +3,7 @@ ------------------ An example of a `Wilkinson Dot Plot `_ """ -# category: other charts +# category: advanced calculations import altair as alt import pandas as pd diff --git a/altair/sphinxext/altairgallery.py b/altair/sphinxext/altairgallery.py index da7f5ba5a..f6637a740 100644 --- a/altair/sphinxext/altairgallery.py +++ b/altair/sphinxext/altairgallery.py @@ -272,6 +272,7 @@ def main(app): "Tables": [], "Maps": [], "Interactive Charts": [], + "Advanced Calculations": [], "Case Studies": [], "Other Charts": [], }