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.
667
questions
3
votes
1answer
35 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
29 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 ...
0
votes
0answers
26 views
PlotLabels Cut off in Show [closed]
When I try to use PlotLabels with Plot that is in Show, it gets cut off.
...
4
votes
2answers
189 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
56 views
Combining expressions and text together in PlotLegends Mathematica
I have a code which goes like this:
...
0
votes
0answers
32 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
104 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
34 views
2
votes
1answer
83 views
0
votes
0answers
30 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
63 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
44 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
148 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
62 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
163 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
43 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
45 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
86 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
70 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
146 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
34 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
65 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
32 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
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
44 views
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
67 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
236 views
2
votes
1answer
65 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
60 views
0
votes
0answers
62 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
159 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
174 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
73 views
5
votes
4answers
177 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
86 views
1
vote
0answers
30 views
Getting PlotLegend to show the exponential of values?
I made a contour plot in Mathematica, and am currently using PlotLegends->Automatic. But, instead of having the legend labels show the values of the function, I want it to show the Exp of the ...
9
votes
2answers
215 views
BarLegend ticks distorted in MatrixPlot
As shown in many threads here (this, this, ...), Ticks is a valid option of BarLegend. But it doesn't seem to work well in this ...
2
votes
0answers
28 views
Add a normal legend to an MMA plot in SciDraw
How can I add a legend to a standard Mathematica plot object that is embedded in a FigurePanel in SciDraw? Ideally, I'd like to be able to use this in an iterated Multipanel.
I believe (from this ...
2
votes
1answer
44 views
How to add legend with specific values and frame
I need to add well-defined ticks in this range Ticks -> {Range[0, Pi, Pi/6], Automatic} to the following plot
This is the code but it is incomplete. Comments and suggestion to solve it
...
3
votes
2answers
89 views
Multiple Matrixplots with a common colorbar, but can't distinguish the values
I need to create a group of MatrixPlots with a common color bar. The matrices have the value at different scale. Here I have written the code where matrices are created with ...
2
votes
1answer
52 views
Double Marker in one PlotLegend
I'm trying to produce a plot to compare two approximations which have in common the same parameter alpha.
I wish to get a plot like showed in the picture:
but I cannot combine the markers and width.
...
3
votes
2answers
117 views
Add plot markers into legend
Bassicaly I work with the points in data and try to find clusters with different distance functions and show them in the grid.But,how can I add the plot markers ...
1
vote
2answers
61 views
Having two or multiple plot legend lines next to a single string
This question showed up as a gentleman asked on reddit.
Had a quick jab at it and thought might be useful.
The request was to have legends for a plot where each legend mark represents two traces on ...
3
votes
1answer
52 views
Multiple legends for barCharts
I came across this and found it quite cool.
Here is the minimal example:
...
0
votes
0answers
57 views
Outline Color in RegionPlot & Labeling
I would like to:
change the outline color to be black, for both regions, rather than the current blue and orange. Is this possible?
I would like to label the white area above the b2 = 3.1 line as &...