Skip to main content

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
0 votes
1 answer
49 views

Graphic options stop working when displaying multiple contourplots

I want to show multiple contourplots next to each other as shown in the following picture: I tried the following code: ...
100xln2's user avatar
  • 437
0 votes
1 answer
44 views

Scaling problem with plot and legend

First of all look at these code- ...
Debojyoti Mondal's user avatar
1 vote
1 answer
38 views

How to change positioning of legends using Show command?

In reference to "https://mathematica.stackexchange.com/questions/267013/how-to-change-layout-of-a-legend-in-show-function", the solution is provided. My question is: If I have 5 curves each ...
Isha Arora's user avatar
0 votes
1 answer
73 views

Aligning a plot with another function through bar legend

I have a parametric funtion say, (f(t) cos t, f(t) sin t) and another function g(t). Now I want to plot (f(t) cos t, f(t) sin t) and show g(t) in bar legend for same range of t. for example t=0.5 ...
Debojyoti Mondal's user avatar
2 votes
1 answer
90 views

Legend issue with Log10 scaling on ListContourPlot

I'm trying to ListContourPlot some data with a Log10 scale. I tried adapting the answer from this post (thanks azerbajdzan), but ...
icebox207's user avatar
  • 131
0 votes
0 answers
63 views

DensityPlot with parameter

I want to plot temperature profile for shadow radius. So here is my code. ...
Debojyoti Mondal's user avatar
0 votes
1 answer
71 views

Combining legends from parameterized plots and positioning these to not exceed frame width

I have combined five different plots based on a parameter each with its own legend. Now, I want to position legends below the combined plot. The following is one of the sample codes: ...
Isha Arora's user avatar
0 votes
0 answers
37 views

Density plot of a function and bar legend for a different function

I am trying to plot x^2+y^2=r^2 for a set of values of r and there is another function T=T(r). I want to create a density plot for x^2+y^2 which shows the bar legend for T as shown in the image, but r ...
Debojyoti Mondal's user avatar
8 votes
5 answers
690 views

Colorbar to illustrate the change of a specific parameter

I have plotted a sine function where the period is varied. I have included my code below. ...
Bell's user avatar
  • 373
7 votes
2 answers
487 views

How to get a single rainbow coloured legend for a group of rainbow coloured curves all having same line style?

A test code to clarify the requirement: ...
Kumar Gaurav Sagar's user avatar
0 votes
0 answers
37 views

Color Range of Chart Style in DensityHistogram and How to Annotate?

I have experimental data in the structure of thousands of {x,y} set. So, I want to get the 2D histogram of x and y. I found the Function called DensityPlot and DensityHistogram. The former seemed that ...
rani's user avatar
  • 365
3 votes
2 answers
157 views

How to force LineLegend to be independent from the plot

I want to design the plot legends independent of the plot style I use in ListLinePlot. So I do: ...
KratosMath's user avatar
  • 1,287
3 votes
3 answers
127 views

How can I add a marker or meshpoint to the start and end of a ListLinePlot or DateListPlot

How can I add a marker or meshpoint to the start and end of a line in ListLinePlot or DateListPlot? I would like to be able ...
IntroductionToProbability's user avatar
8 votes
1 answer
188 views

How to increase height of square brackets in legend label?

I'd like the square brackets to be taller in the following legend label, so that they extend as high as the 6 in $10^6$. The most success I've had is by using MaTeX, but I'd prefer a built-in solution,...
WillG's user avatar
  • 980
2 votes
1 answer
43 views

Expressions in PlotLegends

When the order of the Bessel function is negative, it will automatically be evaluated in PlotLegends. ...
lotus2019's user avatar
  • 2,151
4 votes
2 answers
164 views

Manipulating color theme inside color function

I have the following code: ...
codebpr's user avatar
  • 2,423
0 votes
0 answers
21 views

Adding legends to a video made of figures

To simplify the question, let's assume I am generating some figures using graphics = Table[ Plot[Sin[n x], {x, 0, 4 Pi}], {n, 1, 5, 0.5}]; and convert the ...
Mahdi Razaz's user avatar
2 votes
3 answers
132 views

Getting contour levels in BarLegend to match their tick location instead of being equally spaced

Currently, I have the following BarLegend[{colourScheme, {0, 10}}, {0.1, 5, 5.5}] The contours are evenly distributed across the colourbar. I want them to sit ...
Sharplie12321's user avatar
4 votes
3 answers
127 views

How to control the position of a label to be between the Frame and the plot

How can we get this layer arrangement of the output content: curve, label, and frame on top? I want to send the curve in this code to the back behind the curve and frame. ...
MMA13's user avatar
  • 4,644
2 votes
1 answer
80 views

How can we make the thickness of legends in PlotLegends follows the one in PlotStyle

In this code, I assigned the same thickness for PlotStyle and PlotLegends but the out shows inconsistency between the ...
MMA13's user avatar
  • 4,644
0 votes
0 answers
37 views

DateListPlot and PlotLegends make FrameTicks disappear

I am using Mma12.0 ($Version gives "12.0.0 for Microsoft Windows (64-bit)"). Consider the procedures below: Open a new notebook. Type this code and run: <...
Harry's user avatar
  • 2,745
0 votes
0 answers
27 views

Plotting Problems: Missing Legend Frame and Label, LabelStyle ignored

I often struggle with getting MMA to plot as I plan. Here's two examples I try to first define a set of desired default plotting values and then can't get them to work. Below I want the text of <...
mikemtnbikes's user avatar
0 votes
1 answer
88 views

Problems with RegionPlot and Legended

I have a RegionPlot that shows a couple of problems. The first one is that the region that borders the axes is overpassing them, there's a bit of the colour of the region outside the limit of the axes....
Sohan Navarro Costa's user avatar
2 votes
2 answers
136 views

Plotting with legend label

I am plotting 4 data files in one plot like this : ...
maddy's user avatar
  • 101
2 votes
1 answer
46 views

LeaderSize has no effect on Callout in Plot

I was trying to change the position and distance from the plot of a label generated using Callout. The following code specifies different ...
MarcoB's user avatar
  • 67.4k
0 votes
0 answers
66 views

Creating a 3D Plot with Colored Lines from 2D Data Sets with Color Labels

I got the following table of my data:Amplitudes at each site for different t1-values and energy eigenvalues]1 and I am trying to plot the amplitudes at each site for every t1-value such that a 3Dplot ...
Carolina M. S.'s user avatar
0 votes
1 answer
69 views

Normalizing a plot by introducing a variable

I am trying to plot the graph between P and x. My teacher wants me to normalize this graph by introducing a constant $k$ to get $P/k^2$ on the y-axis and $xk$ on the x-axis. I did that by doing a ...
Jpmg's user avatar
  • 75
1 vote
1 answer
45 views

Adjusting thickness of lines in PlotLegends?

I have the following plot: ...
MathIsHard's user avatar
2 votes
3 answers
199 views

Formatting of Numbers in BarLegend

This question is related Issue with number formatting in Bar Legend but does not fix my problem. I have a contourplot with logarithmic scaling. Without trying to change anything, the barlegend looks ...
Bort's user avatar
  • 123
3 votes
2 answers
211 views

How to Draw Rectangle Chart Using Three Layers of Data?

I have some data given at three levels: ...
Tugrul Temel's user avatar
  • 6,233
1 vote
0 answers
55 views

Why this code does not show three legend lines?

My code shows empty legend lines. What should I do to show the graph with three legend lines? ...
Irram Riaz's user avatar
3 votes
1 answer
38 views

How to include the default color for ArrayPlot ColorRules to the SwatchLegend?

...
Syed's user avatar
  • 55.7k
3 votes
2 answers
188 views

How to stop folding in SwatchLegend?

How to stop folding in SwatchLegend? For example: SwatchLegend[63, Range[20]] outputs: Is there a way to make them just one ...
Y. zeng's user avatar
  • 567
4 votes
1 answer
117 views

How to combine plots together and add legends inside the frame?

I want to combine the Zenga curves of a distribution, for different parameter values. For each curve, the parameters are a, p, q. The values for the four curves are "a = 3, p = .1, q = 5",&...
ASHLIN's user avatar
  • 51
4 votes
1 answer
96 views

How to change the colour of certain PlotMarkers

Example data ...
eldo's user avatar
  • 78.3k
4 votes
1 answer
111 views

BarLegend color usage indicator

...
Syed's user avatar
  • 55.7k
1 vote
1 answer
51 views

Parametrized density plots with a unified BarLegend [duplicate]

I am plotting a function using DensityPlot for two different values of a parameter. I am setting the PlotLegends option to ...
egt123's user avatar
  • 165
1 vote
1 answer
32 views

Why is `PlotStyle->`List of colors not honored in this example? [duplicate]

This happens in version 12.3: Why is PlotStyle->List of colors not honored in this example? Why is there only one legend? ...
Adalbert Hanßen's user avatar
7 votes
2 answers
369 views

Another way to highlight plot lines

Example data: ...
eldo's user avatar
  • 78.3k
0 votes
0 answers
72 views

Plot BarChart and fixing the bars

I have 3 problems plotting the amplitudes of eigenvectors of a matrix H vertically (column). e.g. ...
Med Ch's user avatar
  • 117
7 votes
3 answers
332 views

PlotHighlighting - Option

...
eldo's user avatar
  • 78.3k
1 vote
2 answers
98 views

How to change the plot legends while mapping a plot command

I want to change the plot legend in each panel while mapping a plot command. e.g., in the example below ...
Mahdi Razaz's user avatar
6 votes
2 answers
221 views

Custom y-axis Compression

Plotting a function in log-scale is a very common way to "compress" a function that grows too fast. What I want to do is to use a different function to compress a plot by. For example, I ...
Gappy Hilmore's user avatar
2 votes
1 answer
119 views

3D Legend of a 3D plot

...
Math_student's user avatar
1 vote
1 answer
45 views

How to color functions on a graph in different colors when using Table? [duplicate]

Why are both parabolas of the same color in the first code, and different in the second code? How to make each parabola a different color in the first case and make the corresponding legend? 1. ...
Mam Mam's user avatar
  • 1,883
2 votes
0 answers
47 views

Some PlotMarkers in ListLinePlot are fuzzy

...
MMA13's user avatar
  • 4,644
2 votes
1 answer
60 views

How to put a dot in front of a plot created with listcontourplot?

I would like to put a large round dot at (x,y)=(0,1) in front of a plot constructed with the ListContourPlot function. I have ...
TobiR's user avatar
  • 254
3 votes
1 answer
114 views

How can I get PlotLegends to accept more than 8 entries in a column?

I have graphics that would be easier to read if the legends matched the order of the curves, but I can't get PlotLegends to make a column having more than 8 items. ...
David Keith's user avatar
  • 4,604
0 votes
0 answers
66 views

Plot Color Discontinuous with Legend

Im working on a project that simulates the temperature distribution within a material. Right now I have multiple plots using the ColorFunction -> "TemperatureMap" and a legend on the side....
Adam's user avatar
  • 11
7 votes
2 answers
935 views

How do I get such colorful plots with bar legends colored like this?

Each line in this plot is for the same equation with different values of a parameter $\beta$; the range of $\beta$ is shown in the lines plotted and the bar legend. I want to know how to create such ...
Bibhash Das's user avatar

1
2 3 4 5
19