Skip to content

Plot.Clear() doesn't clear everything #275

@swharden

Description

@swharden

This is a good example of a bad software pattern. Switch statements don't get updated when new pottables are added.

This hack works to clear experimental plottables (relates to #249):

wpfPlot1.plt.GetPlottables().Clear();

Perhaps Clear should only have two simple overloads:

  • Clear() to clear all
  • Clear(Type) to clear just that plottable type

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions