maidr 0.21.0__py3-none-any.whl → 0.22.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
maidr/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "0.21.0"
1
+ __version__ = "0.22.0"
2
2
 
3
3
  from .api import close, render, save_html, set_engine, show, stacked
4
4
  from .core import Maidr
@@ -18,7 +18,6 @@ class GroupedBarPlot(
18
18
  ):
19
19
  def __init__(self, ax: Axes, plot_type: PlotType, **kwargs) -> None:
20
20
  super().__init__(ax, plot_type)
21
- self._support_highlighting = False
22
21
 
23
22
  def _extract_axes_data(self) -> dict:
24
23
  base_ax_schema = super()._extract_axes_data()
@@ -47,6 +46,10 @@ class GroupedBarPlot(
47
46
  x_level = self.extract_level(self.ax)
48
47
  data = []
49
48
 
49
+ self._elements.extend(
50
+ [patch for container in plot for patch in container.patches]
51
+ )
52
+
50
53
  for container in plot:
51
54
  if len(x_level) != len(container.patches):
52
55
  return None
@@ -42,7 +42,7 @@ class MultiLinePlot(MaidrPlot, LineExtractorMixin):
42
42
  def __init__(self, ax: Axes, **kwargs):
43
43
  super().__init__(ax, PlotType.LINE)
44
44
 
45
- def _get_selector(self) -> str | list[str]:
45
+ def _get_selector(self) -> Union[str, List[str]]:
46
46
  if Environment.get_engine() == "js":
47
47
  return "g[maidr='true'] > path"
48
48
  return ["g[maidr='true'] > path"]
@@ -18,7 +18,7 @@ class ScatterPlot(MaidrPlot, CollectionExtractorMixin):
18
18
  def _get_selector(self) -> str | list[str]:
19
19
  if Environment.get_engine() == "js":
20
20
  return "g[maidr='true'] > use"
21
- return ["g[maidr='true'] > use"]
21
+ return ["g[maidr='true'] > g > use"]
22
22
 
23
23
  def _extract_plot_data(self) -> list[dict]:
24
24
  plot = self.extract_collection(self.ax, PathCollection)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: maidr
3
- Version: 0.21.0
3
+ Version: 0.22.0
4
4
  Summary: Multimodal Access and Interactive Data Representations
5
5
  License: GPL-3.0-or-later
6
6
  Keywords: accessibility,visualization,sonification,braille,tactile,multimodal,data representation,blind,low vision,visual impairments
@@ -1,4 +1,4 @@
1
- maidr/__init__.py,sha256=Al59xhV9b4I4RELOAj1HWbZRP3yF7NlWM3WVMUs7hZE,369
1
+ maidr/__init__.py,sha256=2VBiSAduUh4hV98_OTtLEKhjtiMBHaxFnsoQzpCEkVU,369
2
2
  maidr/api.py,sha256=nor5zAtz82RX2zTmfRGRIEz269mqEPGawZ9GMijbcfs,1818
3
3
  maidr/core/__init__.py,sha256=WgxLpSEYMc4k3OyEOf1shOxfEq0ASzppEIZYmE91ThQ,25
4
4
  maidr/core/context_manager.py,sha256=6cT7ZGOApSpC-SLD2XZWWU_H08i-nfv-JUlzXOtvWYw,3374
@@ -11,13 +11,13 @@ maidr/core/maidr.py,sha256=VYiHLGTH1tR1Ua6BC2nPMxK_FqqVr_oyndOX88s5XVc,14011
11
11
  maidr/core/plot/__init__.py,sha256=xDIpRGM-4DfaSSL3nKcXrjdMecCHJ6en4K4nA_fPefQ,83
12
12
  maidr/core/plot/barplot.py,sha256=0w-HAGi4wqB9c8qaMIv-KcjFHs99m74Tcn3fD7m1DxA,2555
13
13
  maidr/core/plot/boxplot.py,sha256=WuHrUy6CFZRBfVDjl9MU262mfLFR6DWF_2h4zN3wcMI,5881
14
- maidr/core/plot/grouped_barplot.py,sha256=PEwngXTogiMqbAJNZg7QjmYC7zhPZ3SPtONRHLSllXM,2029
14
+ maidr/core/plot/grouped_barplot.py,sha256=6D7KT1pjf7XP4XRERmRHYpXY83VikyGcGp-37qQZPEU,2101
15
15
  maidr/core/plot/heatmap.py,sha256=yMS-31tS2GW4peds9LtZesMxmmTV_YfqYO5M_t5KasQ,2521
16
16
  maidr/core/plot/histogram.py,sha256=QV5W-6ZJQQcZsrM91JJBX-ONktJzH7yg_et5_bBPfQQ,1525
17
- maidr/core/plot/lineplot.py,sha256=DV7tsZCURWBgOCD5G_zK2wN3yQUja7F68O1KZCqzBtU,3441
17
+ maidr/core/plot/lineplot.py,sha256=kPLX0MBmz_Q1FKTMkoELaMSVWPWcDtxp-_VRDmGb4Pg,3447
18
18
  maidr/core/plot/maidr_plot.py,sha256=k1-MifHMwDjD-TNQn5DIJ-ShtUiQgjxo7NjMIxGaW9Q,3303
19
19
  maidr/core/plot/maidr_plot_factory.py,sha256=QGcHK_oquY_M2_KJVEtc5-rBAD-gm7KI1kSD7cduHzg,1691
20
- maidr/core/plot/scatterplot.py,sha256=ZGwwmnircbmPTo_ZpRpL1I3_zmXicbhoF8X0CJPV_nY,1388
20
+ maidr/core/plot/scatterplot.py,sha256=TNnd1dGCiE-qxQI30oHstF0jju50_uR08CDr-Ep4ahU,1392
21
21
  maidr/exception/__init__.py,sha256=PzaXoYBhyZxMDcJkuxJugDx7jZeseI0El6LpxIwXyG4,46
22
22
  maidr/exception/extraction_error.py,sha256=rd37Oxa9gn2OWFWt9AOH5fv0hNd3sAWGvpDMFBuJY2I,607
23
23
  maidr/patch/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -37,7 +37,7 @@ maidr/util/mixin/extractor_mixin.py,sha256=AjpgCo_dgASdTwFumfgDOoVCVioxDDoqFWpha
37
37
  maidr/util/mixin/merger_mixin.py,sha256=V0qLw_6DUB7X6CQ3BCMpsCQX_ZuwAhoSTm_E4xAJFKM,712
38
38
  maidr/widget/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
39
  maidr/widget/shiny.py,sha256=wrrw2KAIpE_A6CNQGBtNHauR1DjenA_n47qlFXX9_rk,745
40
- maidr-0.21.0.dist-info/LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
41
- maidr-0.21.0.dist-info/METADATA,sha256=BA4b2Q4LdFBkgYnroj6IzarFo0Vhk-GmIVMeU-dZkyI,2688
42
- maidr-0.21.0.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
43
- maidr-0.21.0.dist-info/RECORD,,
40
+ maidr-0.22.0.dist-info/LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
41
+ maidr-0.22.0.dist-info/METADATA,sha256=9gGDataWifBMLjLjpKqeQd2j1K-YRIKKU4UZOTQMvrY,2688
42
+ maidr-0.22.0.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
43
+ maidr-0.22.0.dist-info/RECORD,,
File without changes