Skip to content

Commit 27054a7

Browse files
committed
Hide corner gap of waveform scale
1 parent 616cb00 commit 27054a7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

OpenEphys.Onix1.Design/Rhs2116StimulusSequenceDialog.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,15 +383,19 @@ private void DrawScale()
383383

384384
PointPairList points = new()
385385
{
386-
{ zeroOffsetX, zeroOffsetY },
387386
{ zeroOffsetX, zeroOffsetY + y },
388387
{ zeroOffsetX, zeroOffsetY },
389388
{ zeroOffsetX + x, zeroOffsetY }
390389
};
391390

392-
var line = zedGraphWaveform.GraphPane.AddCurve("scale", points, Color.Black, SymbolType.None);
393-
line.Line.Width = 3;
391+
float lineWidth = 3;
392+
393+
var line = zedGraphWaveform.GraphPane.AddCurve("scale", points, Color.Black, SymbolType.Square);
394+
line.Line.Width = lineWidth;
394395
line.Label.IsVisible = false;
396+
line.Symbol.Size = lineWidth;
397+
line.Symbol.Border.IsVisible = false;
398+
line.Symbol.Fill = new Fill(Color.Black);
395399
zedGraphWaveform.GraphPane.CurveList.Move(zedGraphWaveform.GraphPane.CurveList.Count - 1, -99);
396400

397401
const double TextObjScaleFactor = 1.02;

0 commit comments

Comments
 (0)