Skip to content

Commit c0ca9ed

Browse files
committed
Update InteractivePlot class
1 parent 788e13d commit c0ca9ed

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Source/Processors/Visualization/InteractivePlot.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ void InteractivePlot::getRange(XYRange& range_)
191191
void InteractivePlot::setRange(XYRange& newRange)
192192
{
193193

194-
LOGD("Requested range: ", newRange.xmin, " ", newRange.xmax, " ", newRange.ymin, " ", newRange.ymax);
194+
//LOGD("Requested range: ", newRange.xmin, " ", newRange.xmax, " ", newRange.ymin, " ", newRange.ymax);
195195
drawComponent->setRange(newRange);
196196
}
197197

@@ -374,8 +374,13 @@ void XAxis::paint(Graphics &g)
374374

375375
g.drawLine(xtickloc, 3, xtickloc, 13, 2.0);
376376

377+
xtickloc -= ticklabelWidth / 2;
378+
379+
if (k == 0)
380+
xtickloc += 5;
381+
377382
g.drawText(tickLabels[k],
378-
xtickloc - ticklabelWidth / 2,
383+
xtickloc,
379384
10,
380385
ticklabelWidth,
381386
tickLabelHeight,

0 commit comments

Comments
 (0)