Spice simulator: plot currents in DC sweep simulation
Fixes: lp:1767457 * https://bugs.launchpad.net/kicad/+bug/1767457
This commit is contained in:
parent
4d6947b56a
commit
9960416e32
|
@ -59,7 +59,9 @@ bool DIALOG_SIGNAL_LIST::TransferDataToWindow()
|
|||
}
|
||||
|
||||
// For some reason, it is not possible to plot currents in any but transient analysis
|
||||
if( m_exporter->GetSimType() == ST_TRANSIENT )
|
||||
auto simType = m_exporter->GetSimType();
|
||||
|
||||
if( simType == ST_TRANSIENT || simType == ST_DC )
|
||||
{
|
||||
for( const auto& item : m_exporter->GetSpiceItems() )
|
||||
{
|
||||
|
|
|
@ -386,6 +386,7 @@ SIM_PLOT_PANEL::SIM_PLOT_PANEL( SIM_TYPE aType, wxWindow* parent, wxWindowID id,
|
|||
case ST_DC:
|
||||
m_axis_x = new VOLTAGE_SCALE_X( wxT( "Voltage (sweeped)" ), mpALIGN_BOTTOM );
|
||||
m_axis_y1 = new VOLTAGE_SCALE_Y( wxT( "Voltage (measured)" ), mpALIGN_LEFT );
|
||||
m_axis_y2 = new CURRENT_SCALE( wxT( "Current" ), mpALIGN_RIGHT );
|
||||
break;
|
||||
|
||||
case ST_NOISE:
|
||||
|
|
Loading…
Reference in New Issue