lsline error message and how to deal with it

6 views (last 30 days)
I try to use lsline in scatter plot. The scattor plot works fine. But for lsline I got an error message
"Warning: No allowed line types or scatterplots found. Nothing done."
Please advise.

Accepted Answer

Star Strider
Star Strider on 8 Jul 2020
With only the error message, it is not possible to determine exactly what the problem is.
From the lsline documentation:
lsline ignores data points that are connected with solid, dashed, or dash-dot lines ('-', '--', or '.-') because it does not consider them to be scatter plots. To produce scatter plots, use the MATLAB® scatter and plot functions.’
So if the plot appears to be correct, check the LineStyle you plotted them with. Change it if necessary to be compatible with lsline.
  5 Comments
Star Strider
Star Strider on 8 Jul 2020
That removes the entire column — not row — that contains Inf values.
It does not change the individual Inf values. My code — for what it’s worth — changes the individual Inf values and replaces them with interpolated (or, if you choose, constant) values.

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!