1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
|
Description: As of python-altair 4.2.0, these tests fail at bulding.
Index: python-altair/altair/examples/line_chart_with_color_datum.py
===================================================================
--- python-altair.orig/altair/examples/line_chart_with_color_datum.py
+++ python-altair/altair/examples/line_chart_with_color_datum.py
@@ -1,21 +0,0 @@
-"""
-Line Chart with datum for color
--------------------------------
-An example of using ``datum`` and ``repeat`` to color a multi-series line chart.
-This is adapted from this corresponding Vega-Lite Example:
-`Repeat and Layer to Show Different Movie Measures <https://vega.github.io/vega-lite/examples/repeat_layer.html>`_.
-"""
-# category: line charts
-
-import altair as alt
-from vega_datasets import data
-
-source = data.movies()
-
-alt.Chart(source).mark_line().encode(
- x=alt.X("IMDB_Rating", bin=True),
- y=alt.Y(
- alt.repeat("layer"), aggregate="mean", title="Mean of US and Worldwide Gross"
- ),
- color=alt.datum(alt.repeat("layer")),
-).repeat(layer=["US_Gross", "Worldwide_Gross"])
Index: python-altair/altair/examples/line_with_log_scale.py
===================================================================
--- python-altair.orig/altair/examples/line_with_log_scale.py
+++ python-altair/altair/examples/line_with_log_scale.py
@@ -1,18 +0,0 @@
-"""
-Line Chart with Logarithmic Scale
----------------------------------
-How to make a line chart on a `Logarithmic scale <https://en.wikipedia.org/wiki/Logarithmic_scale>`_.
-"""
-# category: line charts
-import altair as alt
-from vega_datasets import data
-
-source = data.population()
-
-alt.Chart(source).mark_line().encode(
- x='year:O',
- y=alt.Y(
- 'sum(people)',
- scale=alt.Scale(type="log") # Here the scale is applied
- )
-)
\ No newline at end of file
Index: python-altair/altair/examples/wind_vector_map.py
===================================================================
--- python-altair.orig/altair/examples/wind_vector_map.py
+++ python-altair/altair/examples/wind_vector_map.py
@@ -1,24 +0,0 @@
-"""
-Wind Vector Map
----------------
-An example showing a vector array map showing wind speed and direction using ``wedge``
-as shape for ``mark_point`` and ``angle`` encoding for the wind direction.
-This is adapted from this corresponding Vega-Lite Example:
-`Wind Vector Map <https://vega.github.io/vega-lite/examples/point_angle_windvector.html>`_.
-"""
-# category: scatter plots
-
-import altair as alt
-from vega_datasets import data
-
-source = data.windvectors()
-
-alt.Chart(source).mark_point(shape="wedge", filled=True).encode(
- latitude="latitude",
- longitude="longitude",
- color=alt.Color(
- "dir", scale=alt.Scale(domain=[0, 360], scheme="rainbow"), legend=None
- ),
- angle=alt.Angle("dir", scale=alt.Scale(domain=[0, 360], range=[180, 540])),
- size=alt.Size("speed", scale=alt.Scale(rangeMax=500)),
-).project("equalEarth")
|