maidr 0.21.0__tar.gz → 0.22.0__tar.gz

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.
Files changed (43) hide show
  1. {maidr-0.21.0 → maidr-0.22.0}/PKG-INFO +1 -1
  2. {maidr-0.21.0 → maidr-0.22.0}/maidr/__init__.py +1 -1
  3. {maidr-0.21.0 → maidr-0.22.0}/maidr/core/plot/grouped_barplot.py +4 -1
  4. {maidr-0.21.0 → maidr-0.22.0}/maidr/core/plot/lineplot.py +1 -1
  5. {maidr-0.21.0 → maidr-0.22.0}/maidr/core/plot/scatterplot.py +1 -1
  6. {maidr-0.21.0 → maidr-0.22.0}/pyproject.toml +1 -1
  7. {maidr-0.21.0 → maidr-0.22.0}/LICENSE +0 -0
  8. {maidr-0.21.0 → maidr-0.22.0}/README.md +0 -0
  9. {maidr-0.21.0 → maidr-0.22.0}/maidr/api.py +0 -0
  10. {maidr-0.21.0 → maidr-0.22.0}/maidr/core/__init__.py +0 -0
  11. {maidr-0.21.0 → maidr-0.22.0}/maidr/core/context_manager.py +0 -0
  12. {maidr-0.21.0 → maidr-0.22.0}/maidr/core/enum/__init__.py +0 -0
  13. {maidr-0.21.0 → maidr-0.22.0}/maidr/core/enum/library.py +0 -0
  14. {maidr-0.21.0 → maidr-0.22.0}/maidr/core/enum/maidr_key.py +0 -0
  15. {maidr-0.21.0 → maidr-0.22.0}/maidr/core/enum/plot_type.py +0 -0
  16. {maidr-0.21.0 → maidr-0.22.0}/maidr/core/figure_manager.py +0 -0
  17. {maidr-0.21.0 → maidr-0.22.0}/maidr/core/maidr.py +0 -0
  18. {maidr-0.21.0 → maidr-0.22.0}/maidr/core/plot/__init__.py +0 -0
  19. {maidr-0.21.0 → maidr-0.22.0}/maidr/core/plot/barplot.py +0 -0
  20. {maidr-0.21.0 → maidr-0.22.0}/maidr/core/plot/boxplot.py +0 -0
  21. {maidr-0.21.0 → maidr-0.22.0}/maidr/core/plot/heatmap.py +0 -0
  22. {maidr-0.21.0 → maidr-0.22.0}/maidr/core/plot/histogram.py +0 -0
  23. {maidr-0.21.0 → maidr-0.22.0}/maidr/core/plot/maidr_plot.py +0 -0
  24. {maidr-0.21.0 → maidr-0.22.0}/maidr/core/plot/maidr_plot_factory.py +0 -0
  25. {maidr-0.21.0 → maidr-0.22.0}/maidr/exception/__init__.py +0 -0
  26. {maidr-0.21.0 → maidr-0.22.0}/maidr/exception/extraction_error.py +0 -0
  27. {maidr-0.21.0 → maidr-0.22.0}/maidr/patch/__init__.py +0 -0
  28. {maidr-0.21.0 → maidr-0.22.0}/maidr/patch/barplot.py +0 -0
  29. {maidr-0.21.0 → maidr-0.22.0}/maidr/patch/boxplot.py +0 -0
  30. {maidr-0.21.0 → maidr-0.22.0}/maidr/patch/clear.py +0 -0
  31. {maidr-0.21.0 → maidr-0.22.0}/maidr/patch/common.py +0 -0
  32. {maidr-0.21.0 → maidr-0.22.0}/maidr/patch/heatmap.py +0 -0
  33. {maidr-0.21.0 → maidr-0.22.0}/maidr/patch/highlight.py +0 -0
  34. {maidr-0.21.0 → maidr-0.22.0}/maidr/patch/histogram.py +0 -0
  35. {maidr-0.21.0 → maidr-0.22.0}/maidr/patch/lineplot.py +0 -0
  36. {maidr-0.21.0 → maidr-0.22.0}/maidr/patch/scatterplot.py +0 -0
  37. {maidr-0.21.0 → maidr-0.22.0}/maidr/util/__init__.py +0 -0
  38. {maidr-0.21.0 → maidr-0.22.0}/maidr/util/environment.py +0 -0
  39. {maidr-0.21.0 → maidr-0.22.0}/maidr/util/mixin/__init__.py +0 -0
  40. {maidr-0.21.0 → maidr-0.22.0}/maidr/util/mixin/extractor_mixin.py +0 -0
  41. {maidr-0.21.0 → maidr-0.22.0}/maidr/util/mixin/merger_mixin.py +0 -0
  42. {maidr-0.21.0 → maidr-0.22.0}/maidr/widget/__init__.py +0 -0
  43. {maidr-0.21.0 → maidr-0.22.0}/maidr/widget/shiny.py +0 -0
@@ -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
- __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)
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
4
4
 
5
5
  [tool.poetry]
6
6
  name = "maidr"
7
- version = "0.21.0"
7
+ version = "0.22.0"
8
8
  description = "Multimodal Access and Interactive Data Representations"
9
9
  authors = [
10
10
  "JooYoung Seo <jseo1005@illinois.edu>",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes