Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
18 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
38 views

Typing custom plotlegend

I have the following ListStepPlot: ...
0
votes
1answer
36 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
20 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
50 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
18 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
35 views

Extra legend marker with Legended function [closed]

When I used Legended function, I got extra unwanted legend marker. MSW: ...
1
vote
3answers
65 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
30 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
99 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
105 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
50 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
37 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
237 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
46 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
69 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
43 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
45 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
27 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
183 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
213 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
22 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
93 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
151 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
145 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
70 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
33 views

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

Here is the output of PointLegend: ...
1
vote
2answers
35 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
78 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
71 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
129 views

Adding a label to an Epilog line

I have the following code: ...
0
votes
0answers
16 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
116 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
55 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
59 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
57 views

PlotLegend in one row? [duplicate]

Simple example ...
2
votes
1answer
52 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 ...
3
votes
2answers
75 views

Legend with matching lines

If it is a duplicate, I apologize. I have the function ...
2
votes
1answer
63 views

Unexpected text alignment behaviour when using a SwatchLegend with Inset

If I create a legend panel with a label which includes the new line escape character "\n", e.g. ...
2
votes
1answer
69 views

Label all components of BoxWhiskerChart with corresponding data

I work with BoxWhiskerCharts at the moment. They code looks like this: ...
5
votes
2answers
126 views

Is it possible to add the coloring range as legend?

recently i've generated a 3d plot, where I colored the points by the distance from the center. My question is, that is it possible to add the values associated with the colors as a legend? An example ...
0
votes
1answer
51 views

Representing share on histogram axes respect to total data points - also ones not in range (fraction of values respect to ALL points) [closed]

I want to tick the Y axes so that the heights of the displayed bins in range, represent the share respect to total available points. I have a distribution of percentages on N data points (see below ...
3
votes
2answers
113 views

Pie chart grid with a common legend

I want to construct a grid of pie charts but I want the legend (which is common to all charts) to appear at the bottom of the grid.I include the code and a picture of the output. Code updated with ...
1
vote
2answers
48 views

How to hide the Y Axes in a frame styleplot?

For example in the Plot: Plot[ Sin[x], {x, -2, 3}, Frame -> Automatic, PlotTheme -> "Scientific"] I want to hide the line where ...
0
votes
2answers
39 views

plot legend appearing in iteratively produced plot, missing colors

I'm trying to have the color of each line show up in the plot legend for the following block of code below, except the corresponding colors for each line of the plot do not show up in the legend. I ...
5
votes
1answer
49 views

BarLengend for GeoStyling[“ReliefMap”]

I would like to add a BarLegend for the elevation values used by the GeoBackground -> GeoStyling["ReliefMap"] option of ...
0
votes
1answer
67 views

ListPlot with gradient

I have a dataset in which each element is a list of 3 numbers eg. data={{0,0,0},{1,2,0.7},{3,4,2.3},{3,4,3.3}} I'd like to make a 2 dimensional plot in this way: ...