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.

0
votes
0answers
3 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
45 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
35 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
163 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
41 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
66 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
40 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
40 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
25 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
180 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
209 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
86 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
117 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
143 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
46 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
31 views

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

Here is the output of PointLegend: ...
1
vote
2answers
34 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
66 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
60 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
69 views

Adding a label to an Epilog line

I have the following code: ...
0
votes
0answers
13 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
106 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
51 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
54 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
30 views

PlotLegend in one row? [duplicate]

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

Legend with matching lines

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

Label all components of BoxWhiskerChart with corresponding data

I work with BoxWhiskerCharts at the moment. They code looks like this: ...
5
votes
2answers
125 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
49 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
100 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
47 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
48 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
58 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
138 views

How to align the plot legends in the following way?

Consider example ...
0
votes
1answer
45 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
77 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
37 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
88 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
77 views

PlotLegends: size, position, type and font

I have plot code something like this: ...
0
votes
1answer
61 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 ...
4
votes
1answer
59 views

Symbol size in Legend

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

Use dashing style and color as legends for Show

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

What are these markers at the bottom of BarLegend?

I've noticed these small ruler-type markers at the bottom of BarLegend objects. BarLegend["Rainbow"] (Enhance!) I don't ...
3
votes
1answer
53 views

Inconsistent behaviour using string with superscript as label

This might be a silly question, but actually I lost a bit of time to figure out what I was doing wrong and now I want to understand better. Moreover, I'm not sure if the behaviour I see is a bug or ...
3
votes
1answer
133 views

Plot Legends in 3D Parametric Plot with Color Function [duplicate]

I have two parametric space curves with different line styles plotted with ParametricPlot3D, with a ColorFunction applied. How ...
3
votes
1answer
76 views

How to customize legend tick thickness? [duplicate]

I want to customize the frame and ticks of the BarLegend, but according to the documentation it does not support standard ...