diff --git a/eeschema/sim/sim_plot_panel.h b/eeschema/sim/sim_plot_panel.h index 371fe9ae82..59eaabcc69 100644 --- a/eeschema/sim/sim_plot_panel.h +++ b/eeschema/sim/sim_plot_panel.h @@ -39,6 +39,7 @@ public: : mpInfoLayer( wxRect( 0, 0, DRAG_MARGIN, DRAG_MARGIN ), wxTRANSPARENT_BRUSH ), m_trace( aTrace ), m_updateRequired( true ), m_coords( 0.0, 0.0 ), m_window( nullptr ) { + SetDrawOutsideMargins( false ); } void Plot( wxDC& aDC, mpWindow& aWindow ) override; @@ -85,6 +86,14 @@ public: } + void SetData( const std::vector& aX, const std::vector& aY ) override + { + if( m_cursor ) + m_cursor->Update(); + + mpFXYVector::SetData( aX, aY ); + } + const std::vector& GetDataX() const { return m_xs;