The Stack Overflow podcast is back! Listen to an interview with our new CEO.
4 added fixed in 10.1
source | link

fixed in 10.1 (windows)


I'm running into trouble getting the right PlotMarkers in the legend of a ListPlot of many curves. Simple example:

ListPlot[Table[{j, i}, {i, Range[20]}, {j, Range[3]}], Joined -> True, 
    PlotMarkers -> {Automatic, Large}, PlotLegends -> Range[20]]

produces:

labeled plot

The legend has the right colors for all curves, but after the fifteenth curve, the markers reset instead of continuing to cycle as they do in the actual plot. If I use PlotLegends->Automatic instead of PlotLegends->Range[20], the legend simply stops with the fifteenth curve.

Any idea what might be going on here?

EDIT: Thanks everybody! There are several different good solutions below. A couple people suggested that this is a bug, so I've added that tag.

I'm running into trouble getting the right PlotMarkers in the legend of a ListPlot of many curves. Simple example:

ListPlot[Table[{j, i}, {i, Range[20]}, {j, Range[3]}], Joined -> True, 
    PlotMarkers -> {Automatic, Large}, PlotLegends -> Range[20]]

produces:

labeled plot

The legend has the right colors for all curves, but after the fifteenth curve, the markers reset instead of continuing to cycle as they do in the actual plot. If I use PlotLegends->Automatic instead of PlotLegends->Range[20], the legend simply stops with the fifteenth curve.

Any idea what might be going on here?

EDIT: Thanks everybody! There are several different good solutions below. A couple people suggested that this is a bug, so I've added that tag.

fixed in 10.1 (windows)


I'm running into trouble getting the right PlotMarkers in the legend of a ListPlot of many curves. Simple example:

ListPlot[Table[{j, i}, {i, Range[20]}, {j, Range[3]}], Joined -> True, 
    PlotMarkers -> {Automatic, Large}, PlotLegends -> Range[20]]

produces:

labeled plot

The legend has the right colors for all curves, but after the fifteenth curve, the markers reset instead of continuing to cycle as they do in the actual plot. If I use PlotLegends->Automatic instead of PlotLegends->Range[20], the legend simply stops with the fifteenth curve.

Any idea what might be going on here?

EDIT: Thanks everybody! There are several different good solutions below. A couple people suggested that this is a bug, so I've added that tag.

    Tweeted twitter.com/#!/StackMma/status/575995703807336449
3 Added "bug" tag.
source | link

I'm running into trouble getting the right PlotMarkers in the legend of a ListPlot of many curves. Simple example:

ListPlot[Table[{j, i}, {i, Range[20]}, {j, Range[3]}], Joined -> True, 
    PlotMarkers -> {Automatic, Large}, PlotLegends -> Range[20]]

produces:

labeled plot

The legend has the right colors for all curves, but after the fifteenth curve, the markers reset instead of continuing to cycle as they do in the actual plot. If I use PlotLegends->Automatic instead of PlotLegends->Range[20], the legend simply stops with the fifteenth curve.

Any idea what might be going on here?

EDIT: Thanks everybody! There are several different good solutions below. A couple people suggested that this is a bug, so I've added that tag.

I'm running into trouble getting the right PlotMarkers in the legend of a ListPlot of many curves. Simple example:

ListPlot[Table[{j, i}, {i, Range[20]}, {j, Range[3]}], Joined -> True, 
    PlotMarkers -> {Automatic, Large}, PlotLegends -> Range[20]]

produces:

labeled plot

The legend has the right colors for all curves, but after the fifteenth curve, the markers reset instead of continuing to cycle as they do in the actual plot. If I use PlotLegends->Automatic instead of PlotLegends->Range[20], the legend simply stops with the fifteenth curve.

Any idea what might be going on here?

I'm running into trouble getting the right PlotMarkers in the legend of a ListPlot of many curves. Simple example:

ListPlot[Table[{j, i}, {i, Range[20]}, {j, Range[3]}], Joined -> True, 
    PlotMarkers -> {Automatic, Large}, PlotLegends -> Range[20]]

produces:

labeled plot

The legend has the right colors for all curves, but after the fifteenth curve, the markers reset instead of continuing to cycle as they do in the actual plot. If I use PlotLegends->Automatic instead of PlotLegends->Range[20], the legend simply stops with the fifteenth curve.

Any idea what might be going on here?

EDIT: Thanks everybody! There are several different good solutions below. A couple people suggested that this is a bug, so I've added that tag.

2 Better image of plot
source | link

I'm running into trouble getting the right PlotMarkers in the legend of a ListPlot of many curves. Simple example:

ListPlot[Table[{j, i}, {i, Range[20]}, {j, Range[3]}], Joined -> True, 
    PlotMarkers -> {Automatic, Large}, PlotLegends -> Range[20]]

produces:

labeled ListPlotlabeled plot

The legend has the right colors for all curves, but after the fifteenth curve, the markers reset instead of continuing to cycle as they do in the actual plot. If I use PlotLegends->Automatic instead of PlotLegends->Range[20], the legend simply stops with the fifteenth curve.

Any idea what might be going on here?

I'm running into trouble getting the right PlotMarkers in the legend of a ListPlot of many curves. Simple example:

ListPlot[Table[{j, i}, {i, Range[20]}, {j, Range[3]}], Joined -> True, 
    PlotMarkers -> {Automatic, Large}, PlotLegends -> Range[20]]

produces:

labeled ListPlot

The legend has the right colors for all curves, but after the fifteenth curve, the markers reset instead of continuing to cycle as they do in the actual plot. If I use PlotLegends->Automatic instead of PlotLegends->Range[20], the legend simply stops with the fifteenth curve.

Any idea what might be going on here?

I'm running into trouble getting the right PlotMarkers in the legend of a ListPlot of many curves. Simple example:

ListPlot[Table[{j, i}, {i, Range[20]}, {j, Range[3]}], Joined -> True, 
    PlotMarkers -> {Automatic, Large}, PlotLegends -> Range[20]]

produces:

labeled plot

The legend has the right colors for all curves, but after the fifteenth curve, the markers reset instead of continuing to cycle as they do in the actual plot. If I use PlotLegends->Automatic instead of PlotLegends->Range[20], the legend simply stops with the fifteenth curve.

Any idea what might be going on here?

1
source | link