9
$\begingroup$

Bug introduced in 8 or earlier and persists through 11.0.1 or later


Whenever the blue line drops below the orange one MMA (10.0) inserts two additional plotmarkers:

ListLinePlot[
 {
  {12., 13., 6., 16., 15., 12., 7., 15., 15., 17.},
  {9., 9., 9., 9., 9., 9., 9., 9., 9., 9.}
  },
 Filling -> {1 -> {2}},
 Frame -> True,
 FrameTicks -> {{Automatic, None}, {Automatic, None}},
 GridLines -> {Range@10, Automatic},
 PlotMarkers -> Automatic,
 PlotRange -> {{1, 10}, Automatic}]

enter image description here

Without the Filling - option the additional points don't show up:

ListLinePlot[
 {
  {12., 13., 6., 16., 15., 12., 7., 15., 15., 17.},
  {9., 9., 9., 9., 9., 9., 9., 9., 9., 9.}
  },
 Frame -> True,
 FrameTicks -> {{Automatic, None}, {Automatic, None}},
 GridLines -> {Range@10, Automatic},
 PlotMarkers -> Automatic,
 PlotRange -> {{1, 10}, Automatic}]

enter image description here

Is this a bug?

Is there a workaround?

$\endgroup$
  • $\begingroup$ Same behavior on v9 $\endgroup$ – Dr. belisarius Nov 9 '15 at 22:09
  • 2
    $\begingroup$ Adding the option Mesh -> Full gets rid of the unwanted markers (v9 windows 8). $\endgroup$ – kglr Nov 9 '15 at 22:12
  • $\begingroup$ I think that this is a bug which is strongly related (but not completely identical) to this confirmed bug. The common part is that addition of the Filling results in extra points included into the plotted lines (what was confirmed as an issue by rcollyer). So I add the bugs tag. $\endgroup$ – Alexey Popkov Nov 10 '15 at 2:58
  • $\begingroup$ @eldo, the same is even for v6.0! Mesh->Full also works =) $\endgroup$ – garej Nov 12 '15 at 8:21
10
$\begingroup$

In versions from 8 to 10.3 the option Mesh->Full gets rid of the unwanted markers:

ListLinePlot[{{12., 13., 6., 16., 15., 12., 7., 15., 15., 17.}, {9., 
   9., 9., 9., 9., 9., 9., 9., 9., 9.}}, Filling -> {1 -> {2}}, 
 Frame -> True, FrameTicks -> {{Automatic, None}, {Automatic, None}}, 
 GridLines -> {Range@10, Automatic}, PlotMarkers -> Automatic, 
 PlotRange -> {{1, 10}, Automatic}, Mesh -> Full]

Mathematica graphics

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.