Skip to content

feat: add remove_plottable() API#40

Open
jeandet wants to merge 1 commit intoSciQLop:mainfrom
jeandet:feature/remove-plottable-api
Open

feat: add remove_plottable() API#40
jeandet wants to merge 1 commit intoSciQLop:mainfrom
jeandet:feature/remove-plottable-api

Conversation

@jeandet
Copy link
Copy Markdown
Member

@jeandet jeandet commented Apr 11, 2026

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

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