Tag Info

Hot answers tagged

4

You have a typo in the syntax: Plot[{Sin[x], Cos[x]}, {x, 0, 2 Pi}, PlotLegends -> {"sine", "cosine"}] You forgot 's' in PlotLegends.


4

Here is a more formatted and styled legend: Legended[ grp, SwatchLegend[{Green, Blue, Red, Brown, Black, Orange}, {"A ", "B ", "C ", "D ", "E ", "F "}, LegendMarkerSize -> {{30, 30}}, LegendMarkers -> (Graphics[Text[Style[#, 20, Bold]], ImageSize -> 15] & /@ Range[6]), LegendFunction -> "Panel"]] it looks like this: instead of the ...


2

Easy as this... Legended[grp, Grid[{Range @ 6, {"this", "asd", "asdf", "blabla", "af", "asd"}} // Transpose]] grp is your Graphics, obviously. You may fiddle around with Grid at your will for formatting....hi,hi,hi


1

ListLogLinearPlot[data1, Joined -> True, PlotStyle -> Dotted, PlotLegends -> LineLegend[{"data"}]]


1

This has been fixed in 10.1 code ListPlot[Table[{j, i}, {i, Range[20]}, {j, Range[3]}], Joined -> True, PlotMarkers -> {Automatic, Large}, PlotLegends -> Range[20]]


1

DensityPlot[Sin[x^2 + y], {x, 0, Pi}, {y, 0, Pi}, ColorFunction -> (ColorData["TemperatureMap", Rescale[#, {0, 2}, {0, 1}]] &), PlotLegends -> BarLegend[{"TemperatureMap", {0, 2}}, 10]]


1

If you have version 9 or higher, you can use the option PlotLegends and set its value to LineLegend[...] and use the LegendMarkerSize option inside LineLegend: lives = (1/t - {0.003214, , 0.006429, 0.009643, 0.012857, 0.03214, 0.06429, 0.09643, 0.12857})/45; leglabels = Style[#, 14] & /@ {"0.025mm", "0.05mm", "0.075mm", "0.1mm", "0.25mm", ...



Only top voted, non community-wiki answers of a minimum length are eligible