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

Missing Ticks and Failed legending on LisPlot

Here's mine: ...
1
vote
1answer
42 views

How to add legend for filled and unfilled regions?

I have the following plot. How I add the legend for the filled, not-filled regions and the boundary line with the names "above", "below" and "boundary line", respectively?...
2
votes
0answers
32 views

Straight font in formulas

I'm trying to make a legend to a ListPlot. There is the problem, several letters are displayed in itallic and some in the plain slant. How can I fix this?
2
votes
0answers
78 views

How do I perform volume rendering on image slices imported from a directory on my local machine?

I have a set of image slices (in .MHA and DICOM formats) in a folder on my local machine. I will like to import these slices, perform rendering to get 3D volume, perform "ClusterComponents" ...
1
vote
1answer
27 views

How can I put a label on top of a PieChart legend

I would like to put a legend label above a legend generated from PieChart / ChartLegends. The closest I could come is with ...
2
votes
0answers
31 views

Strange behavior when placing a Legend on a GraphicsRow, Column or Grid

Consider the following example: ...
2
votes
1answer
114 views

Inconsistent appearance of square root sign in plot labels

Observe the inconsistency in the appearance of the title on the following plots: ...
0
votes
0answers
37 views

LegendFunction and MaTeX

I have started using MaTeX (excellent package to integrate Latex in your wonderful Mathematica generated plots). I am getting a warning in generating the following plot ...
0
votes
0answers
29 views

VectorPlot BarLegend: color for direction and opacity for magnitude?

Implemented below, I'm working on a vector field plot where the background color indicates the vector orientation and its opacity for the vector norm. Therefore I'd like to have a ...
3
votes
1answer
48 views

Marking with Mesh, Distinct coloring, Ticksing, and Plotting table of complex function with parametric plot

Here is my todo list and what i've done: Using FrameTicks on specific points only (failed). Plotting six graphs with Table on <...
6
votes
3answers
230 views

Include the legend inside the plot but was failed

I'm trying to include the legends inside the frame of the plot like this Here is my Attempt: ...
3
votes
1answer
40 views

Performance - Plot with Calloutmarker ->“Arrow” and ImageSize->Full

This is a little esoteric, but I noticed that using CalloutMarker -> "Arrow" on a Plot that uses ...
1
vote
1answer
36 views

VectorPlot3D legend label

I am trying to plot a 3D vector field and I want to also attach a labeled-legend to it, but it appears that LegendLabel is not an option for ...
4
votes
2answers
197 views

A complex PieChart

I'm trying to reproduce the data visualizations in this article: https://towardsdatascience.com/improve-your-analytics-projects-w-these-data-distributions-visualizations-7ba3821f2092 The composite pie ...
4
votes
1answer
65 views

Combining expressions and text together in PlotLegends Mathematica

I have a code which goes like this: ...
0
votes
0answers
34 views

Plot complex integration contour

I want to draw the the contour {z, 0, -2, -2 + I 10^3, I 10^3, 0} and maybe highlight different parts with different colours. I can’t find the suitable function.
1
vote
2answers
119 views

How to plot a vector field with arrow length and background color for strength and direction

I want to visualize a 2D vector field, e.g., Table[Exp[-(x^2 + y^2)/4] {y, -x}, {x, -3, 3, 0.2}, {y, -3, 3, 0.2}] in the following way: the arrow length denotes ...
1
vote
1answer
37 views

Put two symbols in a legend at the same time

If I have the following data: ...
2
votes
1answer
86 views

Multiple two-dimensional plots in 3D visualization

How can I produce this kind of plot? Please help
0
votes
0answers
34 views

How to get Callout and Text[…,Offset[…]] to use the same coordinate system in Mathematica 12?

I could have sworn this worked in a previous version of Mathematica, but when I transcribe the coordinates used to label text offsets, I get errors like ...
0
votes
2answers
66 views

Customization the plotting of a set of data all at once with multiple line legends

I have a dataset like as follows: ...
1
vote
2answers
49 views

Changing Plot Lines into Different Colors When Plotting Table of NDSolve Solutions

I am using NDSolve to solve two differential equations and then putting the solutions into a table and varying one of the parameters to see a few different cases. I am able to get everything to work ...
3
votes
2answers
152 views

Why does BarLegend change its position when exported?

I have this code to create some DensityPlot with M12.0.0.0 on Ubuntu ...
1
vote
2answers
64 views

Different Plot Legend Style in the Plot with same code and How to make it good-looking inside the figure

I use Plot to draw two figures and combine them in one figure with the following code. ...
6
votes
2answers
172 views

Opacity gradient in custom legend

I need to produce the legend of a plot which encodes a color gradient together with a color gradient. In particular, I would like the image bellow to have the blueish edge faded and the redish solid: ...
1
vote
1answer
46 views

Change the size of the ListDensityPlot

I want to put two ListDensityPlot together using "Style" command, but I don't how to control the size of the plot to make it the same height of the legend. The following the is code ...
2
votes
1answer
66 views

How should I include PlotLegends in the given code to get the given plot?

How can I include PlotLegends in this code ...
2
votes
1answer
52 views

Issues with Plotlegend

I'm making a 3D plot of the function En1 and I'm attributing its color to the sz1 function below, which contains values spanning from -1 to 1. ...
0
votes
1answer
56 views

Plot many functions from Table with separate graph

Does anyone how can I plot this? I got many errors saying Infinite expression 1/0. I want to plot each one on a separate graph from top to bottom with legend about the values of a, b, c, m, n, p. <...
1
vote
1answer
46 views

Placing the legend on a BarChart [closed]

I would like to have the label on the plot rather than on the side. ...
2
votes
2answers
90 views

Plot legend for filling

I have a plot where several lines and curves intersect, and the regions between them are filled with red and blue. My code is ...
2
votes
1answer
72 views

How to set colors for the customize contours

I am trying to beautify a contour plot where I have a wide data range. But still I want to use a linear scale for axis. But due to large range of the data, the most of the contours are restricted to a ...
2
votes
2answers
149 views

How can I plot and indicate when the function is positive or negative?

I would like to study the sign of this function (potential) and show the region (positive-negative) These are the parameters followed by the code (left figure) ...
1
vote
1answer
36 views

How to properly write multiline text with LaTeX symbol in a frame and with background

I wanted to include a number of text-box with background color white inside a plot. The text inside the box will also have LaTex expressions as well as multiple lines. Is there any way to include ...
2
votes
2answers
71 views

How can I add plot legends to my list plot?

I would like to add a legend to the ListPlot defined in the code shown below. Unfortunately, adding PlotLegends -> Automatic ...
1
vote
1answer
33 views

How can I add a legend?

I need to plot data that are distributed over many orders of magnitude, natural ListLogLogPlot gets too cluttered, so I decided to split the y-axis in two following ...
2
votes
1answer
42 views

StreamDensityPlot and its legends

I'm trying to plot this simple code ...
0
votes
1answer
29 views

Using Epilogue in the Grpahics environment and labelling an axis in Frame

I am trying to generate the following plot What I have managed to do so far can be seen below: ...
1
vote
2answers
46 views

Fix Value at the BarLegends

I am having trouble fixing a value at the barlegends. ...
4
votes
1answer
63 views

'PlotLegend' does not display the correct symbol color

I am plotting some data points with a legend but PlotLegend does not yield the same color as the points have. Where is the mistake? Here is the result that I obtain:...
1
vote
0answers
69 views

Combining PlotThemes, PlotMarkers and Plot with MaTeX used on Labels, Axis Labels and Legend

Summary I am currently attempting to make some of my earlier plots more fit for black-and-white printing, while keeping color and typesetting in TeX/Latin Modern Roman. While at it, I tried to ...
2
votes
5answers
242 views

Min & Max value for colorbar doesn't match DensityPlot

...
2
votes
1answer
67 views

Changing the legend and the style of plots that are displayed by Show?

I have a function two variables (which is not z t^2) that requires a lot of processing to plot. It would be very convenient for me if I could use the Plotstyle and <...
3
votes
2answers
61 views

Need help removing a legend

I need to fix the following code ...
0
votes
0answers
66 views

How to plot a function using a table particular values

I would like to plot the following function in terms of kR, but using specific different values, I think the best easy way is using a Table. This is a common useful problem to explore numerical the ...
2
votes
3answers
163 views

How can I precisely control the position of the BarLegend in the DensityPlot?

I generated the following plot and I would like to move the BarLegend to a specific position, how can I do that? I also faced another problem where in the ...
5
votes
3answers
209 views

How to put a title to PlotLegends?

I want to put a title to the plotlegends I am using. I get a solution here which says to use ...
0
votes
1answer
76 views
5
votes
4answers
186 views

Put Inset beyond plot range

I want to put an inset (a) further downward (roughly the same height as the BarLegend). However, the following code doesn't seem to allow that. Can one do it ...
4
votes
2answers
91 views

Color in BarLegend is not consistent with the plot?

...

1
2 3 4 5
14