Skip to content

Updating plots to be more powerful#3031

Merged
jgostick merged 7 commits intodevfrom
fixing_plots
Jan 30, 2026
Merged

Updating plots to be more powerful#3031
jgostick merged 7 commits intodevfrom
fixing_plots

Conversation

@jgostick
Copy link
Copy Markdown
Member

@jgostick jgostick commented Jan 29, 2026

Fixes #3030

This PR changes a few of the behaviors of plot_coordinates and plot_connections:

  • No longer uses plt.gca() to overwrite ax, it just uses the ax that is received.
  • It now returns ax, which is crucial for the case of 3d plots since it deletes the received one (if 2D) and generates a new one.
  • No longer scales color values between 0 and 1. It now plots colors it receives. Matplotlib will scale these automatically, but you can specify vmin and vmax.
  • Some other changes are behind the scenes, like passing colors to array instead of colors in the LineCollection call.

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.7%. Comparing base (cab63d0) to head (e109568).
⚠️ Report is 8 commits behind head on dev.

Additional details and impacted files
@@          Coverage Diff          @@
##             dev   #3031   +/-   ##
=====================================
  Coverage   87.7%   87.7%           
=====================================
  Files        151     151           
  Lines       8879    8879           
=====================================
  Hits        7792    7792           
  Misses      1087    1087           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jgostick jgostick merged commit 5f0fd6a into dev Jan 30, 2026
12 of 13 checks passed
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.

Fix plot_coords

1 participant