Skip to main content
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 ...
David G. Stork's user avatar
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 ...
Szabolcs's user avatar
  • 236k
15 votes
Accepted

Specify legend position in a plot

...
Bob Hanlon's user avatar
  • 161k
15 votes
Accepted

Highlight line in plot

SetterBar ...
kglr's user avatar
  • 399k
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 ...
matheorem's user avatar
  • 17.3k
13 votes
Accepted

Combining two world maps

...
kglr's user avatar
  • 399k
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 ...
Szabolcs's user avatar
  • 236k
12 votes
Accepted

Reverse GrayLevel (not same as GrayTones)

I use Blend[{White, Black}, #1] & ...
Young's user avatar
  • 7,515
12 votes

Adding legends when using Show

I would add PlotLabels to each plot separately: ...
corey979's user avatar
  • 24.1k
12 votes
Accepted

How do I get such colorful plots with bar legends colored like this?

Something like this? ...
Michael Seifert's user avatar
11 votes
Accepted

Logarithmic scale in a DensityPlot and its legend

With version 11, you can use the ScalingFunctions in both DensityPlot and BarLegend ...
Jason B.'s user avatar
  • 69.6k
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": ...
kglr's user avatar
  • 399k
11 votes
Accepted

Force BarLegend to show numbers

BarLegend[{"GreenPinkTones", {-0.99, 0.99}}, "Ticks" -> Join[Range[-.75, .75, .25], {-.99, .99}]]
kglr's user avatar
  • 399k
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] ...
kglr's user avatar
  • 399k
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 ...
Alexey Popkov's user avatar
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 ...
kglr's user avatar
  • 399k
10 votes
Accepted

Is there a PlotLabels placement such as "Above Left" or "Below Right", etc.?

...
kglr's user avatar
  • 399k
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 ...
kglr's user avatar
  • 399k
10 votes

Include the legend inside the plot but was failed

You did not put any location for Placed ...
Sumit's user avatar
  • 16k
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: ...
kglr's user avatar
  • 399k
10 votes
Accepted

How to present a Barchart and a Table in a single figure

...
Bob Hanlon's user avatar
  • 161k
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. ...
Carl Lange's user avatar
  • 13.2k
10 votes
Accepted

Another way to highlight plot lines

You can replace the PlotLabels with Buttons: ...
Lukas Lang's user avatar
  • 34.4k
10 votes
Accepted

Colorbar to illustrate the change of a specific parameter

...
Syed's user avatar
  • 56.1k
10 votes

Colorbar to illustrate the change of a specific parameter

Maybe this is what you're looking for? ...
OkkesDulgerci's user avatar
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 ...
Carl Woll's user avatar
  • 131k
9 votes
Accepted

Make Plot Legend Wider

You can set LegendLayout: ...
halmir's user avatar
  • 15.2k
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: ...
kglr's user avatar
  • 399k
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: ...
kglr's user avatar
  • 399k
9 votes

Periodic table with color code

Edit 2: ...
OkkesDulgerci's user avatar

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