Error when trying to remove object from plot

조회 수: 1 (최근 30일)
David K
David K 2018년 10월 24일
편집: David K 2018년 10월 29일
I have an axis containing multiple plotted objects, created both from the `scatter` and `plot` commands. If I want to remove one of the lines or scatter groups, I usually select it and then either hit the Delete button on the keyboard, or right click and select "Delete" on the menu. However, whenever I try this I get an error and the object is not removed from the axis. This happens regardless of which method I try. The common error message for the two methods is as follows:
Error using scribeccp (line 24)
Error during serialization
The indicated line in `scribecpp` is
fig = get(groot,'CurrentFigure');
Some other information that may or may not be relevant:
  • Some of the plots use vectors of datetimes for the x-axis, and others simply use datenums. When on the same plot, datenums are automatically aligned with the datetime values on the x-axis.
  • The plots are being created through custom class methods which assign some custom callback functions, though none that I believe should impact deleting the plot.
Why am I unable to remove these plots from the axis?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by