diff --git a/tests/examples_arguments_syntax/connected_scatterplot.py b/tests/examples_arguments_syntax/connected_scatterplot.py deleted file mode 100644 index 8528fb86f4..0000000000 --- a/tests/examples_arguments_syntax/connected_scatterplot.py +++ /dev/null @@ -1,18 +0,0 @@ -""" -Connected Scatter Plot (Lines with Custom Paths) ------------------------------------------------- - -This example show how the order encoding can be used to draw a custom path. The dataset tracks miles driven per capita along with gas prices annually from 1956 to 2010. -It is based on Hannah Fairfield's article 'Driving Shifts Into Reverse'. See https://archive.nytimes.com/www.nytimes.com/imagepages/2010/05/02/business/02metrics.html for the original. -""" -# category: scatter plots -import altair as alt -from vega_datasets import data - -source = data.driving() - -alt.Chart(source).mark_line(point=True).encode( - alt.X('miles', scale=alt.Scale(zero=False)), - alt.Y('gas', scale=alt.Scale(zero=False)), - order='year' -) diff --git a/tests/examples_arguments_syntax/line_custom_order.py b/tests/examples_arguments_syntax/line_custom_order.py index d961e5d455..c564c33490 100644 --- a/tests/examples_arguments_syntax/line_custom_order.py +++ b/tests/examples_arguments_syntax/line_custom_order.py @@ -1,7 +1,7 @@ """ Line Chart with Custom Order ---------------------------- -By default, the line’s path (order of points in the line) is +By default, the line's path (order of points in the line) is determined by data values on the temporal/ordinal field. However, a field can be mapped to the order channel for a custom path. @@ -10,6 +10,9 @@ order channel to sort the points in the line by time field (year). The earliest year (1956) is one endpoint and the latest year (2010) is the other endpoint. + +This is based on Hannah Fairfield's article 'Driving Shifts Into Reverse'. +See https://archive.nytimes.com/www.nytimes.com/imagepages/2010/05/02/business/02metrics.html. """ # category: line charts import altair as alt diff --git a/tests/examples_methods_syntax/connected_scatterplot.py b/tests/examples_methods_syntax/connected_scatterplot.py deleted file mode 100644 index a5902841c9..0000000000 --- a/tests/examples_methods_syntax/connected_scatterplot.py +++ /dev/null @@ -1,18 +0,0 @@ -""" -Connected Scatter Plot (Lines with Custom Paths) ------------------------------------------------- - -This example show how the order encoding can be used to draw a custom path. The dataset tracks miles driven per capita along with gas prices annually from 1956 to 2010. -It is based on Hannah Fairfield's article 'Driving Shifts Into Reverse'. See https://archive.nytimes.com/www.nytimes.com/imagepages/2010/05/02/business/02metrics.html for the original. -""" -# category: scatter plots -import altair as alt -from vega_datasets import data - -source = data.driving() - -alt.Chart(source).mark_line(point=True).encode( - alt.X('miles').scale(zero=False), - alt.Y('gas').scale(zero=False), - order='year' -) diff --git a/tests/examples_methods_syntax/line_custom_order.py b/tests/examples_methods_syntax/line_custom_order.py index 4ff2f72741..4681c2aee7 100644 --- a/tests/examples_methods_syntax/line_custom_order.py +++ b/tests/examples_methods_syntax/line_custom_order.py @@ -1,7 +1,7 @@ """ Line Chart with Custom Order ---------------------------- -By default, the line’s path (order of points in the line) is +By default, the line's path (order of points in the line) is determined by data values on the temporal/ordinal field. However, a field can be mapped to the order channel for a custom path. @@ -10,6 +10,9 @@ order channel to sort the points in the line by time field (year). The earliest year (1956) is one endpoint and the latest year (2010) is the other endpoint. + +This is based on Hannah Fairfield's article 'Driving Shifts Into Reverse'. +See https://archive.nytimes.com/www.nytimes.com/imagepages/2010/05/02/business/02metrics.html. """ # category: line charts import altair as alt