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
3
votes
1answer
60 views

Add tick at zero with label 0

I am trying to get a label "0" at the origin to display. Currently it is not displaying (code below). Other tick labels work fine, just not at zero. I suppose I could use ...
0
votes
0answers
34 views

LegendMarker in combination with Placed [duplicate]

I am trying to change the Marker size in my legend when I am trying to use Placed. If I don't use Placed I was able to use LegendMarkerSize to change it (as shown by some answers on this site), but I ...
3
votes
1answer
37 views

Force BarLegend to show numbers

I have the following BarLegend: BarLegend[{"GreenPinkTones", {-0.99, 0.99}}] It does not show -0.99 and 0.99. How can I force it to show these numbers at the ...
1
vote
1answer
30 views

Adding color legend to a 4d plot

I have to plot a function of three varaibles $F(\theta,\beta,\gamma)$ with version 10.0 and I thought to follow the first advice of this answer, so my plot is given by: ...
2
votes
1answer
29 views

How to specify continuous color spectrum in a custom BarLegend?

I want to create a custom BarLegend with continuous colors: ...
1
vote
1answer
29 views

PlotLegend colour

I'm using a plot with a black background and I have a plotlegend ...
1
vote
0answers
65 views

How to use MatrixPlot as a DensityPlot?

I have a 1000x1000 matrix the MatrixPlot of which gives this graph: The code is ...
4
votes
2answers
132 views

Automatic generation of filenames from column values and automatic PlotLegends labels from file names?

I have a two-part question about the automatic generation of file names and Plot Legends, Labels. Part 1: I typically work with very large matrices of data with columns of the form: MASTERdataset: ...
1
vote
0answers
39 views

Evaluate and PlotLegends

Related to this question here. I dont understand why Evaluated->True does not behave properly when also using PlotLegends. For example, running the code below ...
1
vote
2answers
56 views

How to add colors and legends to plots with “Show” [duplicate]

I have lets say three plots A, B, C. I know that in order to plot them on top of each other I can use Show function and it will show them all together, Is there a ...
2
votes
1answer
60 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
81 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
86 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
67 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
89 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
41 views

Plot legend and remove some value of index

I'm having two problems with this code. ...
4
votes
1answer
94 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
180 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
40 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? ...
5
votes
2answers
238 views

Adding a bar legend to a 3D plot indicating surface curvature by color

I want to color surfaces according to its Gaussian curvature, but the color bar is not consistent with the color. How can I improve it? Color a HyperbolicParaboloid according to its Gaussian ...
3
votes
1answer
74 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
24 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
83 views

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

The following Code: ...
0
votes
1answer
52 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
46 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
80 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
64 views

Legend for two parametric surfaces

I have the plot of two surfaces given by ...
9
votes
2answers
207 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
32 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
49 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
199 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
38 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
29 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
44 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
94 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
59 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
73 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
43 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
62 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
50 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
42 views

BarLegend for custom colour function

How do I change this code so the desired BarLegend is displayed? ...
7
votes
1answer
90 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
36 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
57 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: ...

1
2 3 4 5
11