bieberman
bieberman

Reputation: 329

MATLAB plot: strange horizontal lines

I am trying to produce a plot of theta vs. omega (theta on the x-axis, omega on the y-axis) and the plot I am generating looks ok except for stray horizontal lines that seem to span from -pi to pi. Does anyone know what causes this to happen, or how to remove them?

phase-space

Thanks

Upvotes: 0

Views: 602

Answers (1)

brainkz
brainkz

Reputation: 1345

Unless you provide your code, we won't be able to provide the good answer. These methods might help, though:

  • If there are sufficient points on the plot, and they are dense in the plot and less dense on the unwanted lines, you can try to insert 'bx' into plot, so the graph would consist of only blue crosses that would possibly make lines invisible retaining the remaining graph.
  • You can convert all the unwanted points in the matrices to NaN either manually or by adding some command like A(A>2)=NaN.

Upvotes: 1

Related Questions