Skip to content

feat: add remove_plottable() API - #40

Merged
jeandet merged 1 commit into
SciQLop:mainfrom
jeandet:feature/remove-plottable-api
Apr 14, 2026
Merged

feat: add remove_plottable() API#40
jeandet merged 1 commit into
SciQLop:mainfrom
jeandet:feature/remove-plottable-api

Conversation

@jeandet

@jeandet jeandet commented Apr 11, 2026

Copy link
Copy Markdown
Member

Summary

  • Add remove_plottable() to SciQLopPlotInterface with three overloads: by reference, by index, and by object name
  • Fix m_color_map not being nulled when a colormap is destroyed, which blocked adding a replacement after removal
  • Add 8 integration tests covering all overloads, null safety, signal emission, and panel usage

Test plan

  • All 8 new tests in test_remove_plottable.py pass
  • Manual verification: plot.remove_plottable(graph) removes the graph and graph_list_changed fires
  • Verify no regression in existing tests

🤖 Generated with Claude Code

Graphs could be added to plots from Python but never removed.
Add three overloads: by reference, by index, and by object name.
Also fix m_color_map not being nulled on colormap removal, which
blocked adding a replacement.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@jeandet
jeandet merged commit 797aa03 into SciQLop:main Apr 14, 2026
16 checks passed
@jeandet
jeandet deleted the feature/remove-plottable-api branch July 9, 2026 15:30
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.

1 participant