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.

Filter by
Sorted by
Tagged with
4
votes
1answer
56 views

Unwanted frame around markers in legend

I am plotting the following data ...
7
votes
3answers
389 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
30 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
38 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
49 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
114 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
91 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
103 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
51 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
280 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
142 views

GraphicsGrid and BarLegend combined

I have constructed this contour plots for a project ...
0
votes
0answers
207 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
79 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
131 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
131 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
98 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: ...
5
votes
1answer
425 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
162 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
115 views

Add legendlabel to existing plot with legend

Problem: I have a plot with legend stored in a variable. ...
0
votes
1answer
211 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
417 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
355 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
70 views

MMA11.3 - PlotLegends - bug? [duplicate]

...
2
votes
1answer
42 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
100 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
49 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
117 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
207 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 ...
6
votes
2answers
406 views

Control the tick marks in BarLegend

Consider a BarLegend showing a smooth gradient, like this one: ...
1
vote
1answer
55 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
131 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
125 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
84 views

PlotStyle a particular curve

Let me give an example ...
0
votes
1answer
237 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
166 views

TogglerBar and Legend color mismatch

I have this piece of code ...
0
votes
1answer
31 views

Adding legend to plot when using append

I am making a plot using ...
0
votes
1answer
303 views

How to show Plot Legends? [closed]

How do I make the PlotLegends works in the codes below? I had tried the "Expressions" option and other string options. Only the Ture option will give one legend but not all legends. ...
2
votes
1answer
149 views

Plot with PlotLegends -> “Expressions” doesn't show all expressions in Legend [duplicate]

So I'm basically trying to plot a table that has multiple versions of (x^4)+(cx^2)+x, with c being an integer. I've gotten the expressions to all be graphed, however I can't seem to have the legend ...
2
votes
1answer
126 views

How to place the legend immediately to the right of the frame?

I tried using Placed[legend,{1,0.5}] but it leaves some unnecessary gap between the right frame boundary and the legend. I know there is a way to use nested ...
1
vote
2answers
155 views

Color disparity in legend and graph due to opacity

I have the following graph: Due to opacity, my legend coloring is not matching my graphs and it might be confusing. Is there any remedy? I could not get the coloring what I wanted due to the opacity....
0
votes
1answer
126 views

Rotate one plot and add legend tp another [closed]

I have one function and some data that I want to plot together. I have two questions. How can I have a legend for dataMC list plot? How can I rotate the ...
7
votes
2answers
595 views

GraphicsGrid of plots with legends

I use GraphicsGrid to get a table of contour plots, where each of the plots is using its own scaling, so I want to include the bar legend for each of the plots. But ...
1
vote
1answer
70 views

How to improve a color in a legend to customly-made markers?

I am plotting some experimental results with ListPlot and use customly made plot markers. To be specific, here is my data: ...
3
votes
2answers
329 views

Two legend markers, one legend label?

Does anyone know if it is possible within the LineLegend command to have one label for two types of lines? My legend code is here: ...
0
votes
2answers
86 views

How to give legend to such a plot [closed]

The Plot is as given on the Mathematica website ...
3
votes
2answers
786 views

How do I control the spacing and font size for my plot legend?

I have a Manipulate-based figure in which I'd like to place a compact legend in the upper left corner (within the figure's frame). But by default, the items in the ...
3
votes
2answers
435 views

Contour Plot with 2 Legends

I want to redefine the legend contours within a specific region of my plot. Someone posted a picture of a plot on here, but didn't describe how they generated it. I want something similar, where I ...
5
votes
3answers
611 views

Reverse colors in color scheme

I have a SwatchLegend with a color scheme: ...
1
vote
1answer
147 views

Frame around elements of swatch legend

I'd like to put a frame around the elements of swatch legend: SwatchLegend[{Red, Green, Blue}, {"label1", "label2", "label3"}, LegendLayout -> "Row"] That ...
1
vote
3answers
434 views

Adding legend to Show

I want to add legend to Show. I tried as below by the help of how to add plotlegends in a show function: ...