From 7406aad8eafc6d6996b1d47b99b49bd3555d4ff9 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Thu, 11 Aug 2016 14:41:57 +0200 Subject: [PATCH] Display current plots using the current axis --- eeschema/sim/sim_plot_panel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/sim/sim_plot_panel.cpp b/eeschema/sim/sim_plot_panel.cpp index b94475ba25..f2cfec4e77 100644 --- a/eeschema/sim/sim_plot_panel.cpp +++ b/eeschema/sim/sim_plot_panel.cpp @@ -428,7 +428,7 @@ bool SIM_PLOT_PANEL::AddTrace( const wxString& aName, int aPoints, t->SetData( std::vector( aX, aX + aPoints ), tmp ); - if( aFlags & SPT_AC_PHASE ) + if( aFlags & SPT_AC_PHASE || aFlags & SPT_CURRENT ) t->SetScale( m_axis_x, m_axis_y2 ); else t->SetScale( m_axis_x, m_axis_y1 );