Skip to content

Commit

Permalink
Update Plot.cs
Browse files Browse the repository at this point in the history
Issue #500 Add white line to top of plot to delineate it from any plot above.
  • Loading branch information
towsey committed Jun 28, 2021
1 parent c2c05f0 commit 84c6ea2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/TowseyLibrary/Plot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,12 @@ public Image<Rgb24> DrawAnnotatedPlot(int height)
{
var image = this.DrawPlot(height);
int length = image.Width;
var pen = new Pen(Color.White, 1);

var font = Drawing.Tahoma9;
image.Mutate(g =>
{
g.DrawLine(pen, 0, 0, length - 1, 0);
g.DrawTextSafe(this.title, font, Color.Red, new PointF(8, 0));
if (this.data.Length > 500)
Expand Down

0 comments on commit 84c6ea2

Please sign in to comment.