Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.2K Views
|
4 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Unexpected discontinuity in a plot

Posted 2 years ago

I wrote some codes but the plot is not continuous.

How to fix the problem?

POSTED BY: Reza rho
4 Replies
Posted 2 years ago
l[r_]:=Tr[MatrixPower[N[p[r].p[r]],1/2]]-1;
Plot[l[r],{r,0,0.2}]
t=Table[{r,l[r]},{r,1/100,80/100,1/100}]
ListLinePlot[t]

enter image description here

POSTED BY: Bill Nelson
POSTED BY: Gianluca Gorni
Posted 2 years ago

i doesn't solve the problem.

POSTED BY: Reza rho
Posted 2 years ago

What version are you running? Under version 13.2 your plot is continuous and looks fine.

You do notice that you have PlotStyle->{Dashing[Block],Black} Do you really want a dashed plot when you are asking why you are seeing gaps in your plot, but I don't think that is your issue?

What happens if you include PlotPoints->100 or PlotPoints->250 to increase the number of sampling points? Pushing that up too much will slow it down, but may improve the quality.

POSTED BY: Bill Nelson
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard