File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,9 @@ namespace ecolab
180180 penLabel.clear (); penTextLabel.clear (); penSide.clear ();
181181 }
182182
183+ // / remove all pens from pen and above from plot
184+ void removePensFrom (unsigned pen);
185+
183186// //serialisation support (surface is not auto-serialisable)
184187// void pack(classdesc::pack_t& p) const override {p<<m_image<<x<<y<<minx<<maxx<<miny<<maxy;}
185188//
Original file line number Diff line number Diff line change @@ -309,6 +309,13 @@ namespace ecolab
309309 penSide[pen]=side;
310310 }
311311
312+ void Plot::removePensFrom (unsigned pen)
313+ {
314+ if (x.size ()>pen) x.resize (pen);
315+ if (y.size ()>pen) y.resize (pen);
316+ redraw ();
317+ }
318+
312319 bool Plot::onlyMarkers () const
313320 {
314321 bool r=true ;
You can’t perform that action at this time.
0 commit comments