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
2
votes
3answers
95 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
62 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 ...
2
votes
0answers
80 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
377 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
121 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
64 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
47 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
512 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
92 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
85 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
73 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
59 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
35 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
248 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
227 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
108 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
283 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
155 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
210 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
55 views

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

Here is the output of PointLegend: ...
1
vote
2answers
39 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
102 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
194 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
475 views

Adding a label to an Epilog line

I have the following code: ...
3
votes
2answers
175 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
74 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
128 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
263 views

PlotLegend in one row? [duplicate]

Simple example ...
2
votes
1answer
81 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
86 views

Legend with matching lines

If it is a duplicate, I apologize. I have the function ...
2
votes
1answer
89 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
109 views

Label all components of BoxWhiskerChart with corresponding data

I work with BoxWhiskerCharts at the moment. They code looks like this: ...
5
votes
2answers
137 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
57 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
202 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
70 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
52 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
50 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
126 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: ...
3
votes
2answers
187 views

How to align the plot legends in the following way?

Consider example ...
0
votes
1answer
67 views

How to export histogram legends correctly?

Found it really hard to export a high resolution .png while keeping the legends. Here is the code: ...
2
votes
1answer
105 views

How to have two different scaled graphics on a plot? [duplicate]

I have two datasets on a ListPlot, but they have very different ranges. What I want to have is something like this. I also want to know if it is possible to frame ...
2
votes
1answer
90 views

How can I suppress the wrapping of many plot legends in two columns?

Say I have a plot like this: ListPlot[Partition[Range@12, 1], PlotLegends -> Automatic] The PlotLegends will wrap into 2 ...
1
vote
0answers
107 views

ElementMeshContourPlot and PlotLegend [closed]

Does anybody know why ElementMeshContourPlot ignored PlotLegends->Automatic? I have used the useful topic about Von Mises stress but I vould like a colored scale on the right of the plot. With ...
2
votes
3answers
276 views

PlotLegends: size, position, type and font

I have plot code something like this: ...
0
votes
1answer
410 views

Font Size in Plot Legends

How can I change the font size of the Legend? I have to plot 5 functions, and I already wrote the code, with the colors and so on. But when I write the final code for the PlotLegends, that is ...
2
votes
2answers
145 views

Plot legend doesn't appear like it should be

I constructed a plot with extra legends generated using dashed function but customarily defined legend doesn't look like plot: ...
4
votes
1answer
174 views

Symbol size in Legend

I am making a simple plot with a legend: ...
1
vote
1answer
109 views

Use dashing style and color as legends for Show

When plotting the following, ...
7
votes
2answers
123 views

What are these markers at the bottom of BarLegend?

Bug introduced in 11.3 and fixed in 12.0 I've noticed these small ruler-type markers at the bottom of BarLegend objects. ...

1 2
3
4 5
12