Display current plots using the current axis

This commit is contained in:
Maciej Suminski 2016-08-11 14:41:57 +02:00
parent 5c32e35d27
commit 7406aad8ea
1 changed files with 1 additions and 1 deletions

View File

@ -428,7 +428,7 @@ bool SIM_PLOT_PANEL::AddTrace( const wxString& aName, int aPoints,
t->SetData( std::vector<double>( 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 );