Skip to content

Refactor the Plot Module #573

@StendProg

Description

@StendProg

What can we do to make ScottPlot better?

Current Plot.cs source file contain about 2500 lines of code. Each time working with such a huge file is difficult.
Grouping by regions only partially solves the problem. Most of the code is API from which there is no escape.

It may make sense to split the current class into different files, at least we can move the PlotScatter, PlotSignal, etc API definitions to a separate file, or even better to a group of files.

Plot.cs

public partial class Plot
{
 // all definitions without Plottables API
  ....
}

PlotPlottablesAPI.cs

public partial class Plot
{
  public PlottableScatter PlotScatter(...)
  {
   ...
  }
  public PlottableSignal PlotSignal(...)
  {
    ...
  }
 ...
} 

Metadata

Metadata

Assignees

No one assigned

    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