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.

0
votes
1answer
44 views

Representing share on histogram axes respect to total data points - also ones not in range (fraction of values respect to ALL points) [on hold]

I want to tick the Y axes so that the heights of the displayed bins in range, represent the share respect to total available points. I have a distribution of percentages on N data points (see below ...
3
votes
2answers
65 views

Pie chart grid with a common legend

I want to construct a grid of pie charts but I want the legend (which is common to all charts) to appear at the bottom of the grid.I include the code and a picture of the output. Code updated with ...
1
vote
2answers
41 views

How to hide the Y Axes in a frame styleplot?

For example in the Plot: Plot[ Sin[x], {x, -2, 3}, Frame -> Automatic, PlotTheme -> "Scientific"] I want to hide the line where ...
0
votes
2answers
28 views

plot legend appearing in iteratively produced plot, missing colors

I'm trying to have the color of each line show up in the plot legend for the following block of code below, except the corresponding colors for each line of the plot do not show up in the legend. I ...
5
votes
1answer
38 views

BarLengend for GeoStyling[“ReliefMap”]

I would like to add a BarLegend for the elevation values used by the GeoBackground -> GeoStyling["ReliefMap"] option of ...
0
votes
1answer
45 views

ListPlot with gradient

I have a dataset in which each element is a list of 3 numbers eg. data={{0,0,0},{1,2,0.7},{3,4,2.3},{3,4,3.3}} I'd like to make a 2 dimensional plot in this way: ...
3
votes
2answers
117 views
0
votes
1answer
43 views

How to export histogram legends correctly?

Found it really hard to export a high resolution .png while keeping the legends. Here is the code: ...
2
votes
1answer
62 views

How to have two different scaled graphics on a plot? [duplicate]

I have two datasets on a ListPlot, but they have very different ranges. What I want to have is something like this. I also want to know if it is possible to frame ...
2
votes
1answer
25 views

How can I suppress the wrapping of many plot legends in two columns?

Say I have a plot like this: ListPlot[Partition[Range@12, 1], PlotLegends -> Automatic] The PlotLegends will wrap into 2 ...
1
vote
0answers
76 views

ElementMeshContourPlot and PlotLegend [closed]

Does anybody know why ElementMeshContourPlot ignored PlotLegends->Automatic? I have used the useful topic about Von Mises stress but I vould like a colored scale on the right of the plot. With ...
2
votes
3answers
65 views

PlotLegends: size, position, type and font

I have plot code something like this: ...
0
votes
1answer
37 views

Font Size in Plot Legends

How can I change the font size of the Legend? I have to plot 5 functions, and I already wrote the code, with the colors and so on. But when I write the final code for the PlotLegends, that is ...
4
votes
1answer
47 views

Symbol size in Legend

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

Use dashing style and color as legends for Show

When plotting the following, ...
7
votes
2answers
87 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
46 views

Inconsistent behaviour using string with superscript as label

This might be a silly question, but actually I lost a bit of time to figure out what I was doing wrong and now I want to understand better. Moreover, I'm not sure if the behaviour I see is a bug or ...
3
votes
1answer
49 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
72 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
56 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
145 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 ...
2
votes
1answer
60 views

Placing plot legend in front of the axes

When I plot a function with legend and axes, the legend gets placed behind the axes (see example below) I would like to have the legend sitting in front of everything. Is there a parameter that ...
0
votes
1answer
38 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
51 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 ...
1
vote
1answer
81 views

Rescaling and Image Padding Issues with GraphicsRow

I am trying to get a row of plots (which include legends and labels) using GraphicsRow, with vertical heights of the plots equal. I manually set the size and image padding of these plots so that the ...
6
votes
1answer
143 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
64 views

font size of the placed plotlegends

I need to fixed the font size "14" for the PlotLegends "degree". ...
1
vote
3answers
84 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
94 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 ...
5
votes
3answers
153 views

How can PlotLegends be added to Show

Every once in a while I would like to add PlotLegends to identify graphics combined with the Show command, but ...
2
votes
1answer
21 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
23 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
40 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
59 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
63 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
45 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
45 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
177 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
83 views

GraphicsGrid and BarLegend combined

I have constructed this contour plots for a project ...
0
votes
0answers
75 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
2answers
63 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
68 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
64 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
59 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
185 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
68 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
46 views

Add legendlabel to existing plot with legend

Problem: I have a plot with legend stored in a variable. ...
0
votes
1answer
86 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
199 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 ...