Qurak

PlotLegends

Beschikbaar

Option for adding legends to plots identifying each series

`PlotLegends` is the option for adding a legend that identifies each series in a plot. On Qurak the legend's colour swatches render but the label text beside them does not - `PlotLegends -> {"sin", "cos"}` produces two coloured swatches with no words, which identifies nothing. Until the engine renders legend text, label series another way: annotate the plot directly with `Epilog -> {Text["sin", {x, y}], ...}`, encode the identity in the caption around the chart, or plot the series separately.

PlotLegends
Plot[{Sin[x], Cos[x]}, {x, 0, 2π}, PlotLegends -> Automatic] → -Graphics-LogPlot[{Sin[x ^ 2 + 1], Cos[x ^ 2 + 1]}, {x, 0, π}, PlotLegends -> "Expressions"] → -Graphics-ListPlot[Table[f, {f, {Sin[x], Cos[x]}}, {x, 0, 2π, 0.1}], PlotLegends -> {"sin(x)", "cos(x)"}] → -Graphics-

Onderwerpen

Gerelateerd

Alle 6300 functies · Gebruik dit vanuit een MCP-client