cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Stem Plot: No "error" returned but red graph. Why?

Cornel
18-Opal

Stem Plot: No "error" returned but red graph. Why?

Hello,

Cornel_0-1703493662369.png

 

Cornel_1-1703493684961.png

 

Cornel_2-1703493712544.png

Cornel_3-1703493730161.png

1 ACCEPTED SOLUTION

Accepted Solutions
ttokoro
20-Turquoise
(To:Cornel)

9 REPLIES 9
LucMeekes
23-Emerald III
(To:Cornel)

Silly bug in Prime.

Redo the plot and you should be fine.

LucMeekes_0-1703500733304.png

Success!
Luc

But after redoing the plot, you pressed again the plot to be a stem plot? Because I assume that after redoing plot the plot is not a stem plot in your shown image

LucMeekes
23-Emerald III
(To:Cornel)

That's right.

 

You are simply requesting too much points for a symbol to be added to every point in you plot.

 

Success!
Luc

Werner_E
24-Ruby V
(To:Cornel)

As Luc already noted - the problem is the number of points you demand to be plotted. In your last example you demand 6827 points to be plotted, but Prime only allows up to 4999.
Not sure if this limit is documented somewhere (EDIT: It is partially - see my note at the end).

If you demand 5000 or more points to be plotted, Prime will automatically choose the full dot as its shape (Symbol) and the smallest thickness and will not allow you to change that.
In case of a Stem Trace you even get that error without an error message which sure should not happen and is a bug.

Werner_E_0-1703511510264.png

Werner_E_1-1703511539503.png

 

BTW, you get the same buggy result if you try to plot a vector with more than 4999 entries over another one of the same size.

 

EDIT: Just found this in the depths of the help pages:

Werner_E_0-1703512043918.png

Actually it should read 4999 instead of 5000 and should be clearer about the exact limitations.
And of course the behaviour with the Stem Trace still must be considered a bug.

 

 

 

ttokoro
20-Turquoise
(To:Cornel)

image.pngimage.pngimage.png

Yes, the 4999 is a limitation of a single trace, not of the whole plot. So you can split it into two traces each with less then 5000 points.

This idea with splitting points when someone wants to display more than 4999 points on the graph is ok only when we have not such more points to display from beginning, like for example If we have 8000 points then we can split into 4999 points then the rest of remaining points, but when we have 50 000, or 100 000 points or more then will be not at hand to split so many points into so many intervals of maximum 4999 points. 

 

5000 points allowed for graph display is very limited. If this limitation was 50 000 points or 100 000 points or greater then it would have been way more better. 

 

It's ok even so there is at least one workaround.

ttokoro
20-Turquoise
(To:Cornel)

The only way to do it is...

image.pngimage.png

LucMeekes
23-Emerald III
(To:Cornel)

I can imagine that a stem plot of 5000 points would make sense if the individual points are (on average) 0.5 mm apart, so that each stem, and especially the symbol at the end of the stem, is visible. That would require a plot width of:

LucMeekes_0-1703683301463.png

Some plotters are capable of producing such a plot.

What is the use of a stem plot with 50000 points (that would require 25 m)?

I accept the fact that there (apparently) is a need for an upper limit to the number of points in a plot. PTC may have considered that the largest plot would be less that 1 m wide, for which 5000 points is a reasonable limit.

 

Success!
Luc

Top Tags