Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions on legends, figures (usually insets) that indicate what those lines/bars/points in plots refer to, using arrangements of graphic elements and text, whether manually or using built-in functions.

4
votes
1answer
45 views

Symbol size in Legend

I am making a simple plot with a legend: ...
1
vote
1answer
22 views

Use dashing style and color as legends for Show

When plotting the following, ...
6
votes
2answers
75 views

What are these markers at the bottom of BarLegend?

I've noticed these small ruler-type markers at the bottom of BarLegend objects. BarLegend["Rainbow"] (Enhance!) I don't ...
3
votes
1answer
36 views

Plot Legends in 3D Parametric Plot with Color Function [duplicate]

I have two parametric space curves with different line styles plotted with ParametricPlot3D, with a ColorFunction applied. How ...
3
votes
1answer
67 views

How to customize legend tick thickness? [duplicate]

I want to customize the frame and ticks of the BarLegend, but according to the documentation it does not support standard ...
4
votes
1answer
54 views

How to make swatch legend match the chart's texture?

I am making a stacked bar chart which represents the concentration of a battery in different metals. I would like to make the metals differentiatable by adding a bit of texture to the rectangle in ...
6
votes
4answers
133 views

Combining LineLegend and BarLegend in CountourPlot

So I am having a similar problem to the one in this question but the solutions therein are of no use. Consider a basic ContourPlot with an automatic BarLegend ...
0
votes
1answer
36 views

Inclusion of color bar

I want to include color bar for my plot. I have done the plot using the following code: ...
0
votes
1answer
48 views

How to add Plot legend to the show in a certain place?

I am plotting two sets of data, when I put legend in each separate graph, then use show, it give me the combined graph with the legend on the right of the graph. After that, when I export the graph in ...
6
votes
1answer
140 views

A built-in way to manipulate the order of the items in the legend

I have several lists that I plot on the same image like this: ...
2
votes
2answers
50 views

font size of the placed plotlegends

I need to fixed the font size "14" for the PlotLegends "degree". ...
1
vote
3answers
80 views

Adding legends in a graphic [closed]

I have several datasets, and I successfully plotted them as points in a Graphic. Then, how can I automatically create legends similar to PlotLegends with a color and a label for each dataset in the ...
4
votes
2answers
79 views

Size of BarLegend

Whenever I try to fit the sizes of the plot and the BarLegend, it's a struggle. If one sets the same ImageSize, it's ok as ...
4
votes
1answer
50 views

Unwanted frame around markers in legend

I am plotting the following data ...
2
votes
1answer
19 views

BarLegend with text between -1 to 1

I use the following line to plot my graphic. I have defined the following function for the color of my graphic ...
0
votes
1answer
21 views

Adding Legends in the plot, aligned in a row

How can I add the legend in a plot, INSIDE the plot (as in the figure below), but in a way that they are arranged in row and not in column? What I have done so far: ...
3
votes
1answer
38 views

How to “cut” BarLegend

I'm trying to use a piece of a BarLegend of a ListLineIntegralConvolutionPlot to plot other ListLineIntegralConvolutionPlot. Example: output of data1 and output of data2 ...
2
votes
2answers
55 views

BarLegend with a log scaling

I have bar with log scale: BarLegend[{(Blend[{{Log10@1, White}, {Log10@10, Cyan}, {Log10@100, Blue}}, Log10@#] &), {1, 100}}, Ticks -> {1, 10, 100}] ...
3
votes
1answer
55 views

Extract ColorRange of ContourPlot

I would like to extract the range values Mathematica is assigning colours to in a ListContourPlot (without the range affected by clipping), in order to build custom ...
2
votes
1answer
42 views

Plot multiple lines with colour and legends [duplicate]

Function of interest: f[n_, r_] := (1 - r^2)^((n - 4)/2)/(Beta[1/2, (n - 2)/2]) In separate graphs: ...
1
vote
1answer
41 views

Plotting legends matching with plots inside the show graph

I need to put legend " real part" for plot n5 and " imaginary part" for plot t5 such a way that, legends colors match up with ...
6
votes
2answers
169 views

How to convert Legends into graphics

According to the documentation BarLegend is displayed in StandardForm as a graphics object and it do looks like a normal graphics in front end. However, ...
1
vote
1answer
68 views

GraphicsGrid and BarLegend combined

I have constructed this contour plots for a project ...
0
votes
0answers
56 views

PlotLegends on DensityPlot

I have plot DensityPlot[100*Exp[-x^2 - y^2], {x, -2, 2}, {y, -2, 2}, PlotLegends -> {Automatic}] I wanna see the PlotLegend only in range 0 to 10. How do it?
1
vote
1answer
36 views

How to nicely label the colors in Colorize?

I have an image segmentation and I'd like to label with a SwatchLegend[]. Here's a mwe: ...
0
votes
1answer
55 views

PlotLegends only labels one of a list of functions

I have a code in which I read data from a file and perform a number of fits. I wish to plot these fits on a single plot and add a legend which labels each line with a value which is saved in a list (...
1
vote
2answers
59 views

How to add the legend for one point on the plot

Consider we want to add one point on the plot with some legend (see the question). How to add the separate legend for this point? How to add the legend for many points at the plot? Thank you.
2
votes
2answers
53 views

BarLegend Label and ColorScheme

Probably the answer to this question is already elsewhere, but I have looked for it in the last couple of days and I have't found it. So, I have the following code: ...
4
votes
1answer
144 views

Is that possible to adjust the bar legend size in GraphicsGrid or DensityPlot automatically?

I'm using Mathematica 11.1. Consider the following code: ...
0
votes
1answer
42 views

How to Graph an Asymptote on a Plot? [duplicate]

I am currently plotting the following three functions, which show a discontinuity at 0.7993 (approximately). I am generating the plot with the following code: <...
2
votes
1answer
37 views

Add legendlabel to existing plot with legend

Problem: I have a plot with legend stored in a variable. ...
0
votes
1answer
77 views

Adding a legend to 3D graphics

In[1]:= Quit In[2]:= data = Import["data.out", "CSV"]; TableForm[%2] The data makes a table like: Planet 1...Planet 2...Planet 3...Planet 4...etc. x y z .........
3
votes
1answer
129 views

Scientific notation for legend labels

I'd like to use scientific notation for the bar legend. I tried to follow the approach of this link: Number format in Legend Labels. However, the LegendFunction ...
2
votes
1answer
51 views

Background in framed legend

i'm trying to set a white background in my framed lagend, soh that it could overlap the curves. Note that in the left corner on the top of the frame there are curves inside the legend. I would like to ...
0
votes
1answer
61 views
2
votes
1answer
25 views

Spacings of rows in PlotLegends

I would like to gain control over the distance between the rows in PlotLegends to make more compact legends. I am using Mathematica 10. This is my code: ...
0
votes
0answers
95 views

Changing ticks in bar legend

I'm trying to get a density plot of a function f[d_, w_] = Arg[Hypergeometric2F1[w, -w, 0.5*(1 + I*d), 1]]; whilst varying both d and w. I can plot the ...
0
votes
0answers
62 views

Broken lines in exporting pdf of 3D plot in Mathematica 10

I want a 3D-plot with mesh lines as written in the code below: ...
0
votes
0answers
37 views

Displaying legends in displacement plot of Van der Pol oscillator on MATHEMATICA 8.0

I am trying to draw different plots of Van der Pol's oscillator displacement (ListPlots and ListLinePlots) using 'Show'. I have a problem drawing the legends. Here are my codes: ...
2
votes
1answer
106 views

PlotLegends for six curves

I have the following plot showing six curves. The curves "DotDashed Blue and Red" correspond to p=a, "Solid Orange and Magenta" correspond to ...
11
votes
1answer
177 views

Highlight line in plot

I have a plot with many functions. Some of the functions overlap. In Maple, when you plot functions with legends, you can just click on the legend and it highlights the corresponding line. Does ...
5
votes
2answers
217 views

Control the tick marks in BarLegend

Consider a BarLegend showing a smooth gradient, like this one: ...
1
vote
1answer
47 views

How to get legends to show up for a plot of an ODE with differing initial values? [closed]

I'm trying to get legends for different initial values for the solutions to an ode to show up. I currently have ...
0
votes
1answer
81 views

Scatter plot with bar legend [duplicate]

I have two data sets: xy = {{x1, y1}, {x2, y2}, ...} z = {z1, z2, ...} I want to plot at each (xi, yi) a point in a two ...
3
votes
2answers
107 views

How to add PlotLegends only once in a Table[Plot[]]?

How do I obtain only one Legend in the following case? I would like to obtain only one "a" and one "b" legend on the side, with two different colors. This means that I want a colored legend for 10 z^i ...
0
votes
1answer
57 views

PlotStyle a particular curve

Let me give an example ...
0
votes
1answer
85 views

How do I make a custom marker for my plot legends?

I have written the code to make some plots and now I want to add legends to them. I want to have the type of legends shown in the picture below; i.e., two lines corresponding to each parameter ...
1
vote
1answer
107 views

TogglerBar and Legend color mismatch

I have this piece of code ...
0
votes
0answers
18 views

Export BarLegend as PNG: black label has coloured pixels

When exporting a BarLegend to a .PNG file, the labels appear to suffer from some sort of colour distortion near the edges even ...
0
votes
1answer
24 views

Adding legend to plot when using append

I am making a plot using ...