Error when trying to remove object from plot

1 vue (au cours des 30 derniers jours)
David K
David K le 24 Oct 2018
Modifié(e) : David K le 29 Oct 2018
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?

Réponses (0)

Catégories

En savoir plus sur Scatter Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by