Question: Can I add a color bar to a plot object without data and what needs to be passed in for the source parameter?
ScottPlot Version: 5.0.20
Code Sample:
public Plot MakePlot()
{
ScottPlot.Plot myPlot = new();
myPlot.XLabel("X");
myPlot.YLabel("Y");
myPlot.Title("Title");
myPlot.Add.ColorBar( );
return myPlot;
}
The source parameter is of type IHasColorAxis, but I'm not clear on what to pass in, or if this is even possible.