Skip to main content
19-Tanzanite
September 26, 2024
Solved

With more points points are less poor visible in plot. Why?

  • September 26, 2024
  • 2 replies
  • 731 views

Hi,

What is the reason that with N = 4000 I can see the points more pregnant, but with N = 5000 points are visible poor:

Cornel_0-1727339367536.png

Cornel_2-1727339570932.png

 

 

Cornel_1-1727339377692.png

Cornel_3-1727339585809.png

 

Best answer by Werner_E

@Cornel wrote:

Hi,

What is the reason that with N = 4000 I can see the points more pregnant, but with N = 5000 points are visible poor:

 


That's one of the limitations of Primes 3D plot.

The maximum number allowed seems to be 4999, so you have to set N to 4997 or lower because you are plotting N+2 points (guess your range is supposed to only run up to N-1, not N? Maybe even N-2 if N should denote the number of points and not the number of iteration steps.)

 

Another limitation of Primes 3D plot is that it will completely refuse to plot more than 40000 points. 😞

 

EDIT:

These limits are per trace limits, so as a workaround you could split your data and create two (or more) traces. Of course you may format and color them the same 😉

Werner_E_0-1727366315021.png

 

2 replies

23-Emerald V
September 26, 2024

Possibly because around 5000 points is when Mathcad changes the 2D plot behaviour.

 

If the number of data points is less than 5000, Mathcad uses one pixel torepresent one data point.  If there are 5000 or more data points, then Mathcad uses one pixel to represent one or more (near coincident) data points.  

 

Another side effect of "density plotting" is that the available trace formatting options for Symbols are (none) or solid circle only.  I'm guessing that a further side effect of density plotting is that it reduces the symbol size to 1 pixel (although this doesn't seem to appear in Help), even though Line Thickness is still a valid option.

 

Stuart

 

 

Werner_E25-Diamond IAnswer
25-Diamond I
September 26, 2024

@Cornel wrote:

Hi,

What is the reason that with N = 4000 I can see the points more pregnant, but with N = 5000 points are visible poor:

 


That's one of the limitations of Primes 3D plot.

The maximum number allowed seems to be 4999, so you have to set N to 4997 or lower because you are plotting N+2 points (guess your range is supposed to only run up to N-1, not N? Maybe even N-2 if N should denote the number of points and not the number of iteration steps.)

 

Another limitation of Primes 3D plot is that it will completely refuse to plot more than 40000 points. 😞

 

EDIT:

These limits are per trace limits, so as a workaround you could split your data and create two (or more) traces. Of course you may format and color them the same 😉

Werner_E_0-1727366315021.png