Skip to content

Matplotlib export: Fix code for different shapes and sizes#292

Open
janezd wants to merge 1 commit into
biolab:masterfrom
janezd:export-to-matplotlib
Open

Matplotlib export: Fix code for different shapes and sizes#292
janezd wants to merge 1 commit into
biolab:masterfrom
janezd:export-to-matplotlib

Conversation

@janezd
Copy link
Copy Markdown
Contributor

@janezd janezd commented Mar 21, 2026

Issue

Fixes biolab/orange3#7258.

Description of changes
  • Different sizes failed because of sizes == -1 where sizes could be an array. np.all works is safer.
  • In fixing incorrect code for different shapes I also replace np.where with the preferred np.nonzero (though result is the same).
Includes
  • Code changes
  • Tests

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.36%. Comparing base (cbf5b10) to head (ce2da6c).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #292      +/-   ##
==========================================
+ Coverage   72.07%   72.36%   +0.28%     
==========================================
  Files          34       34              
  Lines        9126     9126              
==========================================
+ Hits         6578     6604      +26     
+ Misses       2548     2522      -26     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

Python Code (with Matplotlib) export does not work if shape or size are defined

3 participants