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

490 questions
Filter by
Sorted by
Tagged with
32 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: ...
42 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: ...
24 views

### symbols in legend loose edge

I make my own symbols for plotting: ...
27 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 ...
36 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 ...
60 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 ...
80 views

### BarLegend: FrameLabel ruins alignment of BarLegend

Take a simple ContourPlot or DensityPlot with a corresponding BarLegend: ...
25 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 ...
38 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. ...
78 views

To start: ...
56 views

### Callout mystery

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

### Formatting ChartLabels for a BarChart with ErrorBars

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

### ListLogPlot with Legends inside the plot frame

I'm trying to do ListLogPlot for the two lists of points ...
32 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"]; ...
28 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 <...
36 views

...
123 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 ...
62 views

### Using PlotLegends with a ColorFunction

Is there a way to put a legend mark with a color function rainbow? For example: ...
19 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 ...
48 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 ...
40 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...
30 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. ...
59 views

### Putting the text after the line legend

I want to put the line legend after the text, here is my code; ...
38 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 =)...
44 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 ...
44 views

### Control the size of a Legend

Given the following plot ...
58 views

### Label curves with corresponding parameter

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

### LegendMarkerSize not recognized in ListPlot for Mathematica 10

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

### Typing custom plotlegend

I have the following ListStepPlot: ...
38 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 ...
48 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: ...
28 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 ...
56 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 ...
25 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. ...
41 views

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

When I used Legended function, I got extra unwanted legend marker. MSW: ...
77 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 ...
41 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 ...
33 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: <...
37 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: ...
165 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 ...
110 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 ...
57 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 ...
41 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 ...
391 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 ...
52 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: ...
71 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 ...
46 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, ...
51 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 ...