From 2b08b315e522c7556d5d9c9d45f36c4711107dc0 Mon Sep 17 00:00:00 2001 From: Tom White Date: Tue, 5 Sep 2023 11:43:20 +0100 Subject: [PATCH] Comment out failing scatterplot --- docs/examples/gwas_tutorial.ipynb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/examples/gwas_tutorial.ipynb b/docs/examples/gwas_tutorial.ipynb index 8131a14db..1d720db0f 100644 --- a/docs/examples/gwas_tutorial.ipynb +++ b/docs/examples/gwas_tutorial.ipynb @@ -5878,7 +5878,8 @@ "sample_dp_mean = dp.mean(dim=\"variants\")\n", "sample_dp_mean.attrs[\"long_name\"] = \"Mean Sample DP\"\n", "ds[\"sample_dp_mean\"] = sample_dp_mean # add new data array to dataset\n", - "ds.plot.scatter(x=\"sample_dp_mean\", y=\"sample_call_rate\", size=8, s=10);" + "# Following does not work with recent versions of xarray, see https://github.com/pystatgen/sgkit/issues/934\n", + "#ds.plot.scatter(x=\"sample_dp_mean\", y=\"sample_call_rate\", size=8, s=10);" ] }, { @@ -13116,7 +13117,8 @@ "ds_pca[\"sample_pca_projection_0\"] = ds_pca.sample_pca_projection[:,0]\n", "ds_pca[\"sample_pca_projection_1\"] = ds_pca.sample_pca_projection[:,1]\n", "ds_pca[\"sample_pca_projection_2\"] = ds_pca.sample_pca_projection[:,2]\n", - "ds_pca.plot.scatter(x=\"sample_pca_projection_0\", y=\"sample_pca_projection_1\", hue=\"SuperPopulation\", size=8, s=10);" + "# Following does not work with recent versions of xarray, see https://github.com/pystatgen/sgkit/issues/934\n", + "#ds_pca.plot.scatter(x=\"sample_pca_projection_0\", y=\"sample_pca_projection_1\", hue=\"SuperPopulation\", size=8, s=10);" ] }, { @@ -13223,7 +13225,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.16" + "version": "3.10.12" } }, "nbformat": 4,