9
$\begingroup$

Bug introduced in 8 or earlier and fixed in 13.0


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$
4
  • $\begingroup$ Same behavior on v9 $\endgroup$ Nov 9, 2015 at 22:09
  • 2
    $\begingroup$ Adding the option Mesh -> Full gets rid of the unwanted markers (v9 windows 8). $\endgroup$
    – kglr
    Nov 9, 2015 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$ Nov 10, 2015 at 2:58
  • $\begingroup$ @eldo, the same is even for v6.0! Mesh->Full also works =) $\endgroup$
    – garej
    Nov 12, 2015 at 8:21

1 Answer 1

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 and acknowledge you have read our privacy policy.

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