Skip to content

Fix: MarketMap not rendering and axis positioning in 0.13.0#1705

Merged
martinRenou merged 1 commit into
bqplot:masterfrom
theomaillard:bug-marketmap
May 7, 2026
Merged

Fix: MarketMap not rendering and axis positioning in 0.13.0#1705
martinRenou merged 1 commit into
bqplot:masterfrom
theomaillard:bug-marketmap

Conversation

@theomaillard
Copy link
Copy Markdown
Contributor

Fixes a bug introduced after updating to 0.13.0 affecting the display of MarketMap figure and axis position.

Reproduce bug

On version 0.13.0, running cell 3 of notebook examples/Marks/Object Model/Market Map.ipynb renders blank. After fixing the rendering issue, cell 9 of the same notebook has axis mispositioned (see images below).

References

None

Code changes

  • Rename map_margin to fig_margin in market_map.py and MarketMapModel.ts to match getter in Figure.ts

  • Fix axis position by replacing this.width/this.height with this.plotareaWidth/this.plotareaHeight in MarketMap.ts

User-facing changes

Before

Screenshot 2026-05-05 185335

After

Screenshot 2026-05-06 021512

Before

Screenshot 2026-05-05 191903

After

Screenshot 2026-05-05 185522

Backwards-incompatible changes

None

- Rename map_margin to fig_margin in market_map.py and MarketMapModel.ts

- Fix axis position by replacing this.width/this.height by this.plotareaWidth/this.plotareaHeight in MarketMap.ts
Copy link
Copy Markdown
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! I'll try to make a patch release soon with this. It seems MarketMap is not tested at all on our pipeline

@martinRenou martinRenou merged commit 21b7238 into bqplot:master May 7, 2026
12 checks passed
@theomaillard theomaillard deleted the bug-marketmap branch May 7, 2026 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants