18
votes
Accepted
Learning curve for Mathematica
You ask "At what point does the complexity of a system cross a threshold where users start adopting alternatives, not because the system doesn't offer benefits, but because the steepness of the ...
16
votes
Accepted
Placing a legend to partially overlap with the plot
tl;dr Use Plot[Sin[x], {x, -1, 1}, PlotLegends -> Placed[{"Sine"}, {{1, .75}, {0.7, 0.5}}]], where {1, 0.75} must be a point ...
15
votes
Accepted
15
votes
Accepted
14
votes
Labeling individual curves in Mathematica
Mathematica 11 comes with "New Labeling System", make such things much easier!
As an illustration, the first example in Artes's answer can be as simple as
...
13
votes
Accepted
12
votes
Accepted
Isolating legend from Show combination of plots
Is there a way I can inspect the object p3 more closely to answer this question for myself?
This is indeed the right question to ask. You can look at the expression structure using ...
12
votes
Accepted
12
votes
12
votes
Accepted
11
votes
Accepted
Logarithmic scale in a DensityPlot and its legend
With version 11, you can use the ScalingFunctions in both DensityPlot and BarLegend
...
11
votes
Accepted
Problem with custom ticks in BarLegend in Mathematica 11.1
Looks like it is a bug. A work-around is to specify the labels using the option "TickLabels":
...
11
votes
Accepted
Force BarLegend to show numbers
BarLegend[{"GreenPinkTones", {-0.99, 0.99}},
"Ticks" -> Join[Range[-.75, .75, .25], {-.99, .99}]]
11
votes
How to get a single rainbow coloured legend for a group of rainbow coloured curves all having same line style?
sparkline = Plot[0, {x, 0, 1},
ColorFunction -> (ColorData["Rainbow"][#] &),
PlotTheme -> "Sparkline", Axes -> False]
...
10
votes
Accepted
Perfect vertical alignment (centering) of PointLegend markers and their labels
Direct answer to the question (rewritten after the comments)
It is well known that the default markers are font glyphs and Mathematica can't position font glyphs precisely. If you need precise ...
10
votes
How can I change the size of the markers inside the legend?
Update: To have the legend markers match the markers in plot, you can add the option LegendMarkers -> ChartElementData["SimpleMarkers"][[All,1]] in ...
10
votes
Accepted
10
votes
Accepted
Legends of colors with ListPlot
legend1 = BarLegend[{Hue, {0, 2 Pi}}];
ListPlot[Table[Style[{Cos[t], Sin[2 t]}, Hue[t/(2 Pi)]], {t, 0, 2 Pi, Pi/20}],
PlotLegends -> legend1]
Also
...
10
votes
10
votes
PlotLegends Below and Inside of a frame
You can also use the symbolic position {Center, Bottom} but it gives a column layout for the legends:
...
10
votes
Accepted
10
votes
Accepted
How can I add legends in the ClusteringComponents function?
You can accomplish this by setting the ColorRules option for Colorize and creating a legend.
...
10
votes
Accepted
10
votes
Accepted
10
votes
Colorbar to illustrate the change of a specific parameter
Maybe this is what you're looking for?
...
9
votes
Perfect vertical alignment (centering) of PointLegend markers and their labels
I think this is a font issue. Look at:
Style[Row[{\[FilledCircle],\[FilledSquare],\[FilledDiamond]}], FontFamily->"Arial"]
The centering looks better in Times ...
9
votes
Accepted
9
votes
Accepted
How to change only the PlotLegend size
Update: An alternative approach to post-process Plot output to make the legend lines thick:
...
9
votes
Accepted
A built-in way to manipulate the order of the items in the legend
You can use the built-in function "ReversedColumn" as the LegendLayout option setting:
...
9
votes
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
legending × 917plotting × 706
graphics × 130
color × 97
labeling × 68
charts × 32
list-manipulation × 24
bugs × 24
plot-themes × 19
graphics3d × 18
export × 16
style × 15
functions × 14
ticks × 13
visualization × 12
manipulate × 11
output-formatting × 10
fonts × 10
matrix × 9
regions × 9
marker × 9
differential-equations × 8
graphs-and-networks × 8
histograms × 8
logarithmic-scale × 8