A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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
2
votes
1answer
57 views

Euler's constant 'e' in italic in plot legend

I'm new to Mathematica. I wrote the following code and got the output as follows I cannot reproduce the code here as I don't know how to type 'e' in the blackboard font. I typed it in Mathematica by ...
6
votes
1answer
75 views

Legend for Bubblechart

I am trying to create an easy legend with bubbles for a Bubblechart. The legend should have the BubbleSizes -> {.02, .05}, for the scores 3 to 8 and ranging with the rainbow colors. Basically this ...
3
votes
1answer
82 views

Add a legend to a combined Plot

I have trouble adding a second legend to this map (see picture underneath). I need the legend to that show each existing bubble size, with the respective rainbow color (from the map) and with the ...
10
votes
1answer
2k views

Combining two world maps

I am trying to combine two world maps with the command "show" and Mathematica indicates an error (see images underneath). Does anyone know what the problem might be and how I can solve it? I am ...
1
vote
2answers
59 views

Placing plot legends inside a plot

I'm trying to overlay legends inside of a plot, so that if you were to right-click on the graphic and save it the legends would be included, but I can't seem to do it in a good way. I tried ...
4
votes
1answer
82 views

Tooltip for BarChart

I'm not looking for something super fancy, but just getting BarChart to show X value and Y value seems to be challenging to get. Here's a toy example. data = {{"Data 1", -10.}, {"Data 2", 3.}, {"Data ...
0
votes
1answer
39 views

Plot legend and remove some value of index

I'm having two problems with this code. ...
4
votes
1answer
84 views

How to force DensityHistogram to draw empty bins?

By default, when using the "Count" density specification, DensityHistogram does not plot empty bins. And thus the legend starts ...
4
votes
2answers
170 views

How to add a legend to a `SmoothDensityHistogram`?

Is there a way to add a legend to a SmoothDensityHistogram? DensityHistogram accepts the ...
1
vote
1answer
38 views

Specifying the font size and font style for plot legends [closed]

How can I change the font size and font style for the line legends? ...
3
votes
1answer
68 views

How to change the font in LineLegend?

Is it possible to change the font in LineLegend? In fact, I need a mathematical font (like Times) in this part.
0
votes
0answers
19 views

Proper plot scaling with 3 y-axis scales

I used the answer from @bobthechemist to produce a graph with three y-axes. The data and code can be found in this Mathematica notebook on Dropbox, ready for use. The series have 93 observations each ...
1
vote
2answers
58 views

More space between the ordinate axis ans plot labels

I have this graphics. All I want is more place like a space or interval between labels and the ordinate azis. How could I do that? ...
1
vote
0answers
32 views

How to set the magnitude of the colors in DensityPlot?

I have used the DensityPLot to show two functions $f_1$ and $f_2$ in different regions. I want to combine them using the Show function. The problem is, the colors are not consistent in the two ...
1
vote
3answers
82 views

How can I color the elements of the largest strongly connected component in ListPlot

The following Code: ...
0
votes
1answer
50 views

Cleanest way to plot multiple functions given a list of parameter values?

I have a function of two variables f[x_,t_]:= ... and I want to build a command that plots the list of functions {f[x,t_i]} given any list of parameter values {...
0
votes
2answers
41 views

Reduce spacing between legend entries using Show

I am creating two plots and using Show to overlay, however the legend has a very large inter-line spacing. This answer suggests using Image Size but my legend is not a separate graphics object. This ...
2
votes
1answer
66 views

BarLegend and ContourLabels in ContourPlot

I have tried to manage my problem with the rich literature on this site, but I am failing... I want to roughly reproduce this plot from a paper I am interested in: What I've tried to do is the ...
2
votes
2answers
61 views

Legend for two parametric surfaces

I have the plot of two surfaces given by ...
9
votes
2answers
185 views

How to control the padding below a BarLegend?

BarLegend has an annoyingly large space at the bottom. I can see that this was added to make it line up with the frame of the plot when there is a bottom frame ...
0
votes
0answers
26 views

Number of columns in PlotLegends

Is there a way to set the number of columns used in PlotLegends? Found this answer but it is for LegendLayout: LegendLayout ...
3
votes
1answer
44 views

Is there a better fix for this problem with Legended in DateListPlot?

data = {{{{2010, 3, 31}, 100.}, {{2010, 9, 30}, 110.}}, {{{2010, 3, 31}, 80.}, {{2010, 9, 30}, 90.}}}; DateListPlot[data] With only two data points in all the ...
5
votes
2answers
195 views

Plot problems: vertical lines and letters [closed]

In few words, I would make this graph: My many problems are the following: How do I plot a vertical line? What's the equation? How do I add the letters on the lines? How to make the Ticks like $...
0
votes
0answers
31 views

Let `PlotLabel` use data set names in a list of plots

In the code below, how to make PlotLabel automatically show the name of the data sets (i.e., aa, bb, cc)? ...
1
vote
0answers
40 views

Assigning labels to numbers in ListContourPlot

I am trying to plot some 2D data using ListContourPlot. The quantity to be plotted has only three discrete values 0, 1, 2. While plotting them, I want to assign these numbers some labels say A, B, C, ...
2
votes
1answer
26 views

How to specify coordinated of legend box using Show and Epilog functions?

I am trying to place the legend box using epilog function. I'm unsure where I can specify the coordinated in the sample code to specify the position. ...
1
vote
1answer
40 views

PlotLegends don't match the plot's curves

Can anyone help me make the legends(markers) match with the figure curves? I have 2 figures that have three curves each, and then I have to combine them. I used the following code for the first figure:...
4
votes
1answer
40 views

Plotting with sub and superscripts on the PlotLabels

Bug persists through 12.0. I'm trying to produce a plot with PlotLabels that include sub- and superscripts. However, I haven't been able to do it consistently. ...
7
votes
1answer
79 views

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

I am trying to add labels to a plot in specific positions. I give a simple example: ...
0
votes
1answer
58 views

Editing the graphic generated by ListDensityPlot

I have generated a graphic using ListDensityPlot in Mathematica, I want to make following three edits to it, but not finding a way. Would be thankful for any advice. How to rotate the graphic. My ...
3
votes
1answer
69 views

How create a general legend which always remain on top of the plot

I am writing a small report, wherein I have several plots, some plots are on a linear-linear scale, some are in log-linear scale, some in log-log. The problem I am facing is every time I change my ...
1
vote
0answers
42 views

Match light-shaded colors to plot themes for RegionPlot

I have a problem very similar to the one in the following topic: Match colors to plot themes. I want to extract the color of a plot for the corresponding legend. However, as I use a RegionPlot I am ...
4
votes
1answer
61 views

Is there any possibility that we can place the the legends manually using mouse

I have a plot in LogLinear scale I wanted to put the legend in the top of the plot horizontally. Can I place this manually, It is extremely difficult to place it through code. this is my customized ...
2
votes
1answer
49 views

Equally spaced contours on a Bar Legend

The function BarLegend[{"Rainbow",{0,1}},4] should result in a bar legend with range 0 to 1 with 4 equally spaced contours. I was hoping to get contours at ...
1
vote
1answer
35 views

BarLegend for custom colour function

How do I change this code so the desired BarLegend is displayed? ...
7
votes
1answer
83 views

`PlotLegends` not showing correct colour

I want to make a Plot with a styled line, as follows: ...
0
votes
1answer
31 views

How to show legends verticaly using ParametricPlot and Show

I am trying to combine 10 different plots using Show. My code has the following form ...
2
votes
1answer
34 views

How to increase the pointsize of the point-markers in the legend of a cluster-chart?

I start the following mock data set: data = RandomReal[{0, 700}, {10^4, 2}]; I use k to define the number of cluster points: ...
0
votes
1answer
54 views

Are there better ways to plot a continuous scalar function of three variables?

I am plotting a continuous scalar function of three variables with this code: ...
3
votes
1answer
28 views

symbols in legend loose edge

I make my own symbols for plotting: ...
0
votes
0answers
28 views

Change Dimensions of Plot Legend?

I have a ListLinePlot and would like to create a legend which has 21 different data sets plotted with a specific number of rows and columns. I have not been able to ...
1
vote
1answer
40 views

How to add an additional legend that shows the dashing one is using?

I am trying to plot two different functions into a single plot. Each function depends on R and r. I plot against ...
2
votes
1answer
70 views

Including legend with reference magnitude in a VectorPlot

I'd like to plot a vector field with a legend for the magnitude of a reference vector. I have read all the document of VectorPlot and found only ...
7
votes
4answers
224 views

BarLegend: FrameLabel ruins alignment of BarLegend

Take a simple ContourPlot or DensityPlot with a corresponding BarLegend: ...
2
votes
1answer
34 views

How to match value coloring in Plot3d to value coloring of legend

In a Plot3D I want to change the displayed value range, see the following example. The function generates the values {-1,1}, they are displayed correctly on the z-axis within {-2, 2}, but the color ...
1
vote
1answer
45 views

Filling a region in a plot changes color in legend [closed]

I'd like to mark a region in my plot and after some research in the internet I found the solution I was looking for using the Filling option. ...
2
votes
2answers
92 views

How to define NumberForm in LegendLabel?

To start: ...
2
votes
1answer
68 views

Callout mystery

I have this function: de[a_, x_] = -1 + (E^-x x^a)/((-a + x) Gamma[a, x]); When I do ...
7
votes
1answer
79 views

Formatting ChartLabels for a BarChart with ErrorBars

I have the following BarChart, that uses a custom ErrorBar function to plot error bars: ...
0
votes
0answers
41 views

ListLogPlot with Legends inside the plot frame

I'm trying to do ListLogPlot for the two lists of points ...