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
2answers
57 views

Using `PlotLegends` with a `ColorFunction`

Is there a way to put a legend mark with a color function rainbow? For example: ...
0
votes
0answers
17 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 ...
0
votes
1answer
23 views

Tiltle 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 ...
1
vote
1answer
36 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...
1
vote
1answer
28 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. ...
2
votes
2answers
54 views

Putting the text after the line legend

I want to put the line legend after the text, here is my code; ...
1
vote
1answer
36 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 =)...
3
votes
1answer
42 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 ...
1
vote
1answer
40 views

Control the size of a Legend

Given the following plot ...
2
votes
1answer
49 views

Label curves with corresponding parameter

How can Plotlegend label each curve with the corresponding value of parameter param in the code below? ...
3
votes
1answer
42 views

LegendMarkerSize not recognized in ListPlot for Mathematica 10

I'm trying to put a legend on a plot done using ListPlot ...
0
votes
1answer
43 views

Typing custom plotlegend

I have the following ListStepPlot: ...
0
votes
1answer
37 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 ...
3
votes
1answer
47 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: ...
0
votes
0answers
26 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 ...
1
vote
1answer
52 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 ...
0
votes
0answers
19 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. ...
1
vote
2answers
37 views

Extra legend marker with Legended function [closed]

When I used Legended function, I got extra unwanted legend marker. MSW: ...
1
vote
3answers
68 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 ...
1
vote
1answer
37 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 ...
0
votes
0answers
32 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: <...
2
votes
0answers
33 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: ...
4
votes
1answer
130 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 ...
3
votes
3answers
106 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 ...
3
votes
1answer
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 ...
1
vote
1answer
40 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 ...
8
votes
4answers
309 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 ...
3
votes
1answer
47 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: ...
3
votes
2answers
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 ...
1
vote
2answers
44 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, ...
0
votes
0answers
48 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 ...
1
vote
0answers
28 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 ...
3
votes
1answer
190 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 ...
4
votes
2answers
217 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 ...
0
votes
0answers
23 views

There is an unwanted line appearing in the plot [duplicate]

I have some set of data, and I have plotted it, I get to see some unwanted horizontal line at y=4, and I expected a horizontal linear near y=0. How to over come this. And also how to put legend for ...
0
votes
0answers
96 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 ...
3
votes
2answers
164 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 ...
4
votes
2answers
147 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 ...
0
votes
2answers
91 views

ParametricPlot table of complex functions in several graphs

Assume that I have a table of complex functions like Clear[p] Clear[M] M = 10; G = Table[Sin[i p] + p I, {i, M}] I want to ParametricPlot them in graphs, each ...
2
votes
1answer
37 views

Change the dimension of the result of PointLegend? [duplicate]

Here is the output of PointLegend: ...
1
vote
2answers
36 views

Coloring ParametricPlot of several complex functions

I want to PlotLegends -> "Expressions" for G with different colors where G = {{Sqrt[1 - x] + I Sqrt[x]}, {Sqrt[1 - x] - I Sqrt[x]}} I tried the following ...
1
vote
1answer
80 views

How to add a plot legend to a Rotate Show expression

I have a problem, the legend is shown in rotate form and I want it in normal form ...
0
votes
2answers
80 views

Appending barlegend to a combined graphics object?

I have a rather complex looking plot which is a combination of graphics objects, generated by ...
1
vote
1answer
177 views

Adding a label to an Epilog line

I have the following code: ...
0
votes
0answers
17 views

Break in column legend [duplicate]

and Happy New Year to everyone. When I construct a pie chart grid, the legend (common to all charts) is placed as a column. Unfortunately, it "breaks" in two parts with no obvious (to me) reason. I ...
3
votes
2answers
122 views

Remove legend if a plot in an array of plots is empty

In an array of plots of regions (inequalities) p[..] which are eventually combined using Show, how do I suppress the legend of ...
1
vote
1answer
60 views

Legend display on mouse hover over region made using RegionPlot

Is there a way to label a region plotted using RegionPlot automatically, i.e. for the legend to appear inside the region without having to specify coordinates? ...
2
votes
1answer
62 views

Have a String of letters with different font sizes - LineLegend

There's a Plot whose legend has symbols with subscripts and regular text. The words that have subscripts appear to shrink in size and looks out of place in comparison to the rest of the legend. Was ...
0
votes
1answer
77 views

PlotLegend in one row? [duplicate]

Simple example ...
2
votes
1answer
57 views

Plot and Legend color mismatch due to opacity

I have the following code: ListContourPlot[data,Mesh->None,ContourStyle->None, PlotLegends->Automatic, BaseStyle->Directive[Opacity[0.3]]] Due to ...