Message Boards Message Boards

3
|
4785 Views
|
3 Replies
|
6 Total Likes
View groups...
Share
Share this post:

Unexpected output when using StackedListPlot

I have encountered a very minor issue when I used the new StackListPlot with the option PlotLayout -> "Percentile" on my laptop. Could anyone please try to reproduce the issue?

data = RandomInteger[10, {3, 100}];
Column[{StackedListPlot[data, PlotLayout -> "Percentile", ImageSize -> Large], 
StackedListPlot[data + 0.0000001, PlotLayout -> "Percentile", ImageSize -> Large]}]

enter image description here

The first image shows what I suppose is unwanted behaviour of the function. It appears that this happens when there are zeros in the sequence and when the option PlotLayout->"Percentile" is used there are unexpected excursion of the curves to negative values. It might be related to the rescaling the is required for the percentile plot. When I add a small positive number to all values (see second plot) the issue disappears and the plot looks somewhat more like what I would expect.

I have found this on a couple of machines (all OSX) obviously in version 11.2:

enter image description here

Could anyone please try to reproduce this on their machines?

Best wishes and thank you,

Marco

POSTED BY: Marco Thiel
3 Replies

Marco, David, thank you for reporting. This is a known issue but you gave a deeper insight. Work is on the way to fix it.

POSTED BY: Vitaliy Kaurov
Posted 7 years ago

Hi Marco, I get the same behavior on Win 7:

11.2.0 for Microsoft Windows (64-bit) (September 11, 2017)

POSTED BY: David Keith

Dear David,

thank you! I guess I'll ask them whether that is by design.

Best wishes and thank you, Marco

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

Group Abstract Group Abstract