Display current plots using the current axis
This commit is contained in:
parent
5c32e35d27
commit
7406aad8ea
|
@ -428,7 +428,7 @@ bool SIM_PLOT_PANEL::AddTrace( const wxString& aName, int aPoints,
|
||||||
|
|
||||||
t->SetData( std::vector<double>( aX, aX + aPoints ), tmp );
|
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 );
|
t->SetScale( m_axis_x, m_axis_y2 );
|
||||||
else
|
else
|
||||||
t->SetScale( m_axis_x, m_axis_y1 );
|
t->SetScale( m_axis_x, m_axis_y1 );
|
||||||
|
|
Loading…
Reference in New Issue