Skip to content

Commit 226ab4b

Browse files
authored
Merge pull request #2 from Khanz9664/pr2-axis-types
Pr2 axis types
2 parents ea5aa2d + 97f3ee4 commit 226ab4b

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
77
### Added
88
- Add `get_computed_values()` method to `BaseFigure` for programmatically accessing values calculated by Plotly.js, supporting `axis_ranges` and `axis_types` retrieval via a single-pass layout traversal [[#5552](https://github.com/plotly/plotly.py/issues/5552)]
99

10+
### Fixed
11+
- Update tests to be compatible with numpy 2.4 [[#5522](https://github.com/plotly/plotly.py/pull/5522)], with thanks to @thunze for the contribution!
12+
1013

1114
## [6.7.0] - 2026-04-09
1215

plotly/basedatatypes.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1447,12 +1447,10 @@ def _select_layout_subplots_by_prefix(
14471447

14481448
layout_keys_filters = [
14491449
lambda k: k.startswith(prefix) and self.layout[k] is not None,
1450-
lambda k: (
1451-
row is None or container_to_row_col.get(k, (None, None, None))[0] == row
1452-
),
1453-
lambda k: (
1454-
col is None or container_to_row_col.get(k, (None, None, None))[1] == col
1455-
),
1450+
lambda k: row is None
1451+
or container_to_row_col.get(k, (None, None, None))[0] == row,
1452+
lambda k: col is None
1453+
or container_to_row_col.get(k, (None, None, None))[1] == col,
14561454
lambda k: (
14571455
secondary_y is None
14581456
or container_to_row_col.get(k, (None, None, None))[2] == secondary_y

0 commit comments

Comments
 (0)