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 tagged [legending]

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
2answers
129 views

How can I replace division sign with slash in ticks of BarLegend

I am plotting a Bar legend for the density plot using BarLegend. I got the desired bar legend but it has ticks in the form $\frac{\pi}{6},~\frac{\pi}{3},..$, I want ...
0
votes
2answers
31 views

ParametricPlot table of complex functions in several graphs

Assume that I have a table of complex functions like Clear[p] Clear[M] M = 10; G = Table[Sin[i p] + p I, {i, M}] I want to ParametricPlot them in graphs, each ...
2
votes
1answer
27 views

Change the dimension of the result of PointLegend? [duplicate]

Here is the output of PointLegend: ...
1
vote
2answers
31 views

Coloring ParametricPlot of several complex functions

I want to PlotLegends -> "Expressions" for G with different colors where G = {{Sqrt[1 - x] + I Sqrt[x]}, {Sqrt[1 - x] - I Sqrt[x]}} I tried the following ...
1
vote
1answer
62 views

How to add a plot legend to a Rotate Show expression

I have a problem, the legend is shown in rotate form and I want it in normal form ...
0
votes
2answers
53 views

Appending barlegend to a combined graphics object?

I have a rather complex looking plot which is a combination of graphics objects, generated by ...
1
vote
1answer
39 views

Adding a label to an Epilog line

I have the following code: ...
0
votes
0answers
13 views

Break in column legend [duplicate]

and Happy New Year to everyone. When I construct a pie chart grid, the legend (common to all charts) is placed as a column. Unfortunately, it "breaks" in two parts with no obvious (to me) reason. I ...
3
votes
2answers
96 views

Remove legend if a plot in an array of plots is empty

In an array of plots of regions (inequalities) p[..] which are eventually combined using Show, how do I suppress the legend of ...
1
vote
1answer
50 views

Legend display on mouse hover over region made using RegionPlot

Is there a way to label a region plotted using RegionPlot automatically, i.e. for the legend to appear inside the region without having to specify coordinates? ...
2
votes
1answer
52 views

Have a String of letters with different font sizes - LineLegend

There's a Plot whose legend has symbols with subscripts and regular text. The words that have subscripts appear to shrink in size and looks out of place in comparison to the rest of the legend. Was ...
0
votes
1answer
25 views

PlotLegend in one row? [duplicate]

Simple example ...
2
votes
1answer
38 views

Plot and Legend color mismatch due to opacity

I have the following code: ListContourPlot[data,Mesh->None,ContourStyle->None, PlotLegends->Automatic, BaseStyle->Directive[Opacity[0.3]]] Due to ...
3
votes
2answers
66 views

Legend with matching lines

If it is a duplicate, I apologize. I have the function ...
2
votes
1answer
52 views

Unexpected text alignment behaviour when using a SwatchLegend with Inset

If I create a legend panel with a label which includes the new line escape character "\n", e.g. ...
2
votes
1answer
57 views

Label all components of BoxWhiskerChart with corresponding data

I work with BoxWhiskerCharts at the moment. They code looks like this: ...
0
votes
1answer
46 views

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

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
88 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
44 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
32 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
46 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
50 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
126 views

How to align the plot legends in the following way?

Consider example ...
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
72 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
28 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
85 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
71 views

PlotLegends: size, position, type and font

I have plot code something like this: ...
0
votes
1answer
47 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
52 views

Symbol size in Legend

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

Use dashing style and color as legends for Show

When plotting the following, ...
7
votes
2answers
88 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
51 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
79 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
74 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
63 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
155 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
62 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
57 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
93 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
149 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
83 views

font size of the placed plotlegends

I need to fixed the font size "14" for the PlotLegends "degree". ...
1
vote
3answers
88 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
109 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
180 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
22 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
28 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
42 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 ...