xability / maidr

Multimodal Access and Interactive Data Representation
GNU General Public License v3.0
24 stars 7 forks source link

fix(scatterplot): sonification autoplay does not work #519

Open SaaiVenkat opened 3 months ago

SaaiVenkat commented 3 months ago

Reproducible Steps

  1. Download the required csv dataset from here: https://github.com/xability/a11y_ds_course/blob/main/data/gapminder.csv

  2. Execute the following code within Python repl:

import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
import maidr

gapminder = pd.read_csv('gapminder.csv')

# Scatter Plot of GDP per capita vs population
plt.figure(figsize=(10, 6))
gdp_pop_plot = sns.scatterplot(data=gapminder, x="pop", y="gdpPercap", hue="continent")
plt.title("GDP per Capita vs Population by Continent")
plt.xlabel("Population")
plt.ylabel("GDP per Capita")
plt.show()
maidr.show(gdp_pop_plot)
  1. Tab to focus in the interactive maidr plot area.

  2. Use autoplay (Ctrl+Shift+RightArrow) and see if that works.

Current Behavior

Autoplay does not work.

Reference Issue

https://github.com/xability/py_maidr/issues/69

jooyoungseo commented 3 months ago

@ellvix -- Please find the output code and result below:

https://gist.github.com/jooyoungseo/a13517d7e871ec5d195be41b66f72afd/archive/b289231ce00925fc4e0454510e1fb4d3d8490a73.zip

jooyoungseo commented 3 months ago

@ellvix Also please see @SaaiVenkat comment here: https://github.com/xability/py_maidr/issues/69#issuecomment-2292527478