Current gain is the first Y axis, not the second.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18205
This commit is contained in:
@@ -817,11 +817,18 @@ void SIM_PLOT_TAB::OnLanguageChanged()
|
||||
void SIM_PLOT_TAB::UpdateTraceStyle( TRACE* trace )
|
||||
{
|
||||
int type = trace->GetType();
|
||||
wxPenStyle penStyle = ( ( ( type & SPT_AC_PHASE ) || ( type & SPT_CURRENT ) ) && m_dotted_cp )
|
||||
? wxPENSTYLE_DOT
|
||||
: wxPENSTYLE_SOLID;
|
||||
trace->SetPen( wxPen( trace->GetTraceColour(), 2, penStyle ) );
|
||||
wxPenStyle penStyle;
|
||||
|
||||
if( ( type & SPT_AC_GAIN ) > 0 )
|
||||
penStyle = wxPENSTYLE_SOLID;
|
||||
else if( ( type & SPT_AC_PHASE ) > 0 )
|
||||
penStyle = m_dotted_cp ? wxPENSTYLE_DOT : wxPENSTYLE_SOLID;
|
||||
else if( ( type & SPT_CURRENT ) > 0 )
|
||||
penStyle = m_dotted_cp ? wxPENSTYLE_DOT : wxPENSTYLE_SOLID;
|
||||
else
|
||||
penStyle = wxPENSTYLE_SOLID;
|
||||
|
||||
trace->SetPen( wxPen( trace->GetTraceColour(), 2, penStyle ) );
|
||||
m_sessionTraceColors[ trace->GetName() ] = trace->GetTraceColour();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user