# 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.

534 questions
Filter by
Sorted by
Tagged with
246 views

### BarLegend: FrameLabel ruins alignment of BarLegend

Take a simple ContourPlot or DensityPlot with a corresponding BarLegend: ...
36 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 ...
46 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. ...
92 views

To start: ...
68 views

### Callout mystery

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

### Formatting ChartLabels for a BarChart with ErrorBars

I have the following BarChart, that uses a custom ErrorBar function to plot error bars: ...
43 views

### ListLogPlot with Legends inside the plot frame

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

### PlotLegend Colors Missing

I want a PlotLegend with the colors of the graphics. p4 = Plot[y1[t] /. s1, {t, 0, tmax}, PlotRange -> All, PlotStyle -> {{Gray}}, PlotLegends -> "Y1"]; ...
34 views

### How to fix a legend with TraditionalForm

Let this code f[x_]:=Piecewise[{{Sin[x],x>0},{Exp[x], x<=0}}]; Plot[f[x],{x,-5,5}, PlotLegends-> {"f(x)=" TraditionalForm[f[x]]}] Then the part of the <...
40 views

...
131 views

### Problem in styling a monochrome plot

I have a set of functions I have plotted them in one single figure. The following are my concerns. 1. I tried to fix the legends for this figure, but unable to do this 2. Is there any way that I can ...
65 views

### Using PlotLegends with a ColorFunction

Is there a way to put a legend mark with a color function rainbow? For example: ...
36 views

### Specify legend inside histogram plot

I am trying to place a legend inside a histogram plot, but Placed["label",{x,y}] as an option in ChartLegends does not seem to work in the histogram environment. Is ...
68 views

### Title for PlotLegends

Is it possible to put a title to PlotLegends? Say you have chosen PlotLegends -> "Expressions". Now it would be neat to add a ...
43 views

### Putting legends within the frame of the plot at the desired position

dat1krafull = {{1., 2.61594*^-8}, {10., 7.10017*^-9}, {50.`, 2.1565*^-9}, {75., 1.6567...
32 views

### Behavior of PlotLegends

I want to have a plot of $x^{\alpha}$, where $\alpha$ is an input, and a plot legend which displays something like $\alpha = \# \text{ rad}$ on the following plot, where # is determined by the input. ...
64 views

### Putting the text after the line legend

I want to put the line legend after the text, here is my code; ...
40 views

### Label with a formal part and a computed part

If would like to print $\left(\frac{b}{a}\right)^2$= (b/a)^2 inside a plot or a graphics where a and b have been seted to certain values so the first part is analytic and the second part (after the =)...
50 views

### Customized barlegend changes appearance when placed next to a plot

I created a simple barlegend: barlegend = BarLegend[{Hue[#] &, {0, .7}}] However, when I tried placing this legend next to any plot, the legend appears ...
51 views

### Control the size of a Legend

Given the following plot ...
68 views

### Label curves with corresponding parameter

How can Plotlegend label each curve with the corresponding value of parameter param in the code below? ...
47 views

### LegendMarkerSize not recognized in ListPlot for Mathematica 10

I'm trying to put a legend on a plot done using ListPlot ...
49 views

### Typing custom plotlegend

I have the following ListStepPlot: ...
39 views

### PlotLegend[ not working] [duplicate]

I am trying to use plotlegend for solutions I've obtained using NDSolve. I have Plot[{a[z], b[z]} /. sol , {z, 0, L}, PlotLegends -> {"1", "2"}] It doesn't ...
55 views

### Insert calligraphy TeX in FrameLabel

I want to put some Tex code in my FrameLabels so they are consistent with my equations. So far, I managed to do it using things like: ...
58 views

### Skip legend entries when using the PlotLegends option in Plot[]

(This question seems so basic that I have a hard time believing it hasn't been asked yet, but I couldn't find it, so here goes.) Is it possible to skip items in the legend when using the ...
64 views

### Overflow of plot legends in the combined plot of separate plots

I am generating plots with the plots with plot legends. I want plot legends to be on the top of the figure as I can not sacrifice the horizontal space. When the plot is generated with ...
33 views

### customize plot legends of different plots

I am generating figures for research paper on mathematica v. 11.0.1. I have some issues with the length of plot legends. The problem is the length of the legend line. ...
48 views

### Extra legend marker with Legended function [closed]

When I used Legended function, I got extra unwanted legend marker. MSW: ...
84 views

### Plot not aligned after adding plot legends

The new GraphicsColumn function claims to have the ability to align the axes Align Frame Edges. It works fine for very very simple plots, but if one adds a simple ...
50 views

### Place axis label at end of axis in Plot3D with axis origin

I would like my axis labels to appear at the ends of my axes (much as would happen in a 2D plot) while using Plot3D and placing my ...
35 views

### Dynamical PlotLegends with two indices

I need to plot several eigenvalues from different matrices, so I would like to know how can I change the name of the curve with each set of matrices-eigenvalue. What I am doing is the following: <...
53 views

### Logarithmic scale in the legend of a GeoRegionValuePlot

Is there a way to make the bar legends show the values 1 to 9000 using a logarithmic scale than what Mathematica is automatically giving me? Here's my plot: The data I am using: ...
285 views

### MaTeX, font size, and PlotLegends

I want to create plots in Mathematica where all labels have font sizes which match those in a LaTeX document. I start by defining ...
118 views

### Adjusting bounding box of PlotLegends in TimelinePlot

I'd like to align the elements of the PlotLegend in a single horizontal row beneath the TimelinePlot, as there is plenty of room ...
62 views

### Plot Legend and Asymptote and to enlarge region

I want to plot some functions where one of them is and a vertical asymptote but it cannot put into the Legend (the asymptote is 1 ). Also, another problem is when trying to improve the axis size and ...
44 views

### Show will not display all my curves over their full domain [closed]

My Show expression showing four curves will not display the all four curves over the full domain requested in the PlotRange ...
466 views

### How to remove lines through the legend markers in ListPlot?

I am drawing a plot with some legends. It seems the legend markers will always have lines through them since I have to use Joined->True for this plot. The legend ...
62 views

### Issue with number formatting in Bar Legend

I have a contour plot with a bar legend, and I'm trying to format the labels of the bar legend. But something funny is happening. Here is a basic example that illustrates my issue: ...
79 views

### Only display plot legends for curves that are visible in the plot range

I have a list of coefficients, i.e. coefficients = {{a1,a2},{b1,b2},...,{an,bn}} From this, I generate a list of functions. I then plot these functions with a ...
60 views

### Aligning legend constructs using Row

Im trying to make a legend with data labelled in groups. I'm doing this by combining SwatchLegends using Row, ...
57 views

### PDF export on macOS Mojave does not show axes correctly

I am using Mathematica 11.3.0.0 on macOS 10.14.3. I found something goes crazy when I exported a plot with legends. In the notebook, everything seems fine Then I used the export command to export it ...
34 views

### Difficult to differentiate different line style , when we convert into eps and import into latex

Question 1 How to place the legend on top of the plot, I used Placed function to put a legend on top of the plot, but it is not working. Question 2 The moment If I export the end result of this ...
225 views

### Limited line style for differentiating curves in the plot

Question 1 I have a plot which consists of six curves, and I wanted to differentiate these line without using any color. I the only option that I left with is to use different line style. After ...
221 views

### Graph of Chebyshev's first polynomials, almost like the wikipedia graph

I want to graph the first polynomials of Chebyshev almost like the graph of Wikipedia: I have tried it this way ...
104 views

### How do I get a beautiful image overlay from data and a model function?

I have a set of experimental data that I wish to make into a density plot. Then I have to overlay an image of a model function f(x, y, z) = Sin(x/z)Sin(y) on the ...
227 views

### Label on boundary of region plot

Consider this plot RegionPlot[{n + k > 6}, {n, 0, 4}, {k, 0, 15}, BoundaryStyle -> None] I want to add a label on the boundary like in the picture. How can ...
154 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 ...