option to link RHS ticks to LHS ticks on XY-plots

This commit is contained in:
Jan Käberich 2024-06-29 12:44:10 +02:00
parent 8b021cf5d1
commit 4dea10552c
6 changed files with 48 additions and 14 deletions

View file

@ -24,6 +24,8 @@ TraceXYPlot::TraceXYPlot(TraceModel &model, QWidget *parent)
{
xAxisMode = XAxisMode::UseSpan;
yAxis[1].setTickMaster(yAxis[0]);
// Setup default axis
setYAxis(0, YAxis::Type::Magnitude, false, false, -120, 20, 14, true);
setYAxis(1, YAxis::Type::Phase, false, false, -180, 180, 12, true);