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
8
votes
4answers
84 views

Correcting the Color Scale of a MatrixPlot

I did a MatrixPlot of a set of values that range between 0 and 1. I got the following first plot with no problems: As we can see from the legend, the values range between 0 and 1. Now, I am doing ...
6
votes
4answers
322 views

PlotLegend frame disappears during Export

Bug introduced in 11.2 or earlier and persisting through 12.0 I placed a framed PlotLegend and it works just fine in the notebook, but after exported to ...
3
votes
5answers
100 views

Line is covered by PlotMarkers in ListLinePlot

Suppose I plot the data and fitting line with black point and red line ...
1
vote
1answer
26 views

How to define the colorbar of my plot manually

Let's say I have an arbitrary plot, for example a plot of a finite points that I colored them by my own taste independent of any formula like $f(x,y)$ or density etc. Or I have several plots and then ...
3
votes
2answers
100 views

Using `PlotLegends` with a `ColorFunction`

Is there a way to put a legend mark with a color function rainbow? For example: ...
0
votes
1answer
25 views

How to remove the squares through the legend markers in ListPlot?

I am drawing a plot with some legends. It seems the legend markers will always have squares in each line. My question is, is it possible to get rid of those squares through the legend markers? is ...
1
vote
2answers
59 views

Change the font size in Automatic plot legending

How can I change the font size in automatic legending? For example, In the attached image, I would like the numbering to be shown with the size of 18pt or so and bold. I am using the following script ...
0
votes
1answer
53 views

How to put legend inside a ListLogLinearPlot

I have a plot and I have customized its legend; I want to place the legend top horizontal. How to do that? I have tried placing it as follows, but it is not working. ...
4
votes
1answer
107 views

Error band in the legend

I want to plot multiple data sets having error bands with legends such that the style of error band is also reflected in the corresponding legend. So for e.g. let's say I have the following two data ...
2
votes
3answers
53 views

Plotlegends and filenames

I have data files which are in "text tab delimited". I have imported these files using the following function: ...
1
vote
1answer
44 views

Add bar label according to values of surface from ParametricPlot3D

I'm plotting a function that is in a module and depends on three variables with ParametricPlot3D, and I'm using a color function for the surface. I want to add a bar to the side that has the values of ...
1
vote
2answers
40 views

Frame and Fontsize of legends

If I have the following code: ...
1
vote
1answer
26 views

Put legends in a given position in a plot [closed]

If I have the following code: Plot[ {Sin[x], Cos[x]}, {x, -Pi, Pi}, PlotLegends -> {"first", "second"} ] How can I modify the code such as the ...
1
vote
1answer
24 views

ArrayPlot axes ticks and PlotLegends value

My question has two parts: First Part: I have the following array: ...
2
votes
1answer
103 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 ...
1
vote
2answers
34 views

LineLegend with dashed and coloured line

I would like to create a LineLegend that incorporates both coloured and dashed lines. I expected this to be simple, but I'm missing something. The below will give the LineLegend with either ...
0
votes
1answer
32 views

How to plot parametric phase diagram with bar legend? [closed]

I am trying to plot the parametric phase diagram with bar legend in the form of a rainbow. I have asked one similar question before in which I have shown the region plot. But equations are different ...
4
votes
1answer
78 views

How to place plot legends in two rows?

For example ListPlot[Array[# &, {4, 4}], PlotLegends -> Placed[{"a", "b", "c", "d"}, {Left, Bottom}]] How to place the plot legends as {{a,b},{c,d}}?
1
vote
1answer
38 views

BarLegend hiding other legend items

Consider the following plot where some individual curves have been given inline legends via Legended. A BarLegend is also added ...
0
votes
1answer
35 views

How to put markers and figure curves in the same color

I have the following code: ...
7
votes
1answer
72 views

Controling the vertical distance between labels

Here we have a simple example ...
1
vote
1answer
34 views

How to show parameters of linear Fit in plot

I am trying to do some analysis in experimental data, my code is as follows ...
3
votes
1answer
83 views

Continuous gradient bar legend from RGBColor with user-defined ticks

I am trying to adapt this this question to change the ticks on a BarLegend so have a user-defined continuous BarLegend with ticks This code allows me to define the ticks I want (sort of, how many ...
2
votes
2answers
76 views

Legend for two parametric surfaces

I have the plot of two surfaces given by ...
1
vote
0answers
59 views
0
votes
0answers
42 views

Force persistent Tooltip positionning inconsistencies

Context Following this post, and inspired by that one, I am trying to make a plot more readable using the analogue of persistent Tooltips via ...
4
votes
2answers
79 views

How to modify the legends produced by “Expressions” in the PlotLegends option

I'm creating a fairly simple plot with a bunch of similar graphs in it. It looks something like this (but with more than two functions): ...
0
votes
2answers
54 views

Plot showing information about parameters

I have a list containing a function and 5 parameters (all of them can change). list={x^2,0.5,0.1,5,1,1}. I would like to create a plot of the function, while ...
1
vote
1answer
179 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 ...
0
votes
0answers
45 views

How is the default bar legend of GeoRegionValuePlot defined?

I want to modify the default bar legend of GeoRegionValuePlot but I can't find any documentation on how it is defined. Is it possible to get the default legend from ...
3
votes
1answer
53 views

Legends of colors with ListPlot

I'm taking this example in the documentation : ...
3
votes
1answer
96 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
35 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
47 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
35 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: ...
7
votes
3answers
291 views

Controlling the size of Histogram in PlotLegends -> Histogram

I stumbled across this in the Mathematica documentation and thought it was pretty nifty except that the Histogram that appears as the plot legend is too small so the numbers on the histogram overwrite ...
2
votes
1answer
38 views

How to specify continuous color spectrum in a custom BarLegend?

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

PlotLegend colour

I'm using a plot with a black background and I have a plotlegend ...
4
votes
2answers
137 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
74 views

How to use MatrixPlot as a DensityPlot?

I have a 1000x1000 matrix the MatrixPlot of which gives this graph: The code is ...
1
vote
0answers
51 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 ...
19
votes
2answers
456 views

PlotLegends won't generate automatically more than 15 labels in v10

Update: NOT fixed in V10.0 - 12.0.0 While testing the examples from this recent post, i've noticed a problem in V.10 with PlotLegends when it has to automatically ...
11
votes
3answers
655 views

Reverse GrayLevel (not same as GrayTones)

I'm trying to make a color bar with reverse GrayLevel, i.e, like bl1 below, but reversed. bl2 gets quite close, but the white end isn't quite maxed out, it looks slightly grey. I tried the trick from ...
1
vote
2answers
66 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 ...
5
votes
2answers
274 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 ...
2
votes
1answer
61 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
86 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
92 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 ...
4
votes
1answer
100 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 ...
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
2 3 4 5
12