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
1answer
150 views

Including legend with reference magnitude in a VectorPlot

I'd like to plot a vector field with a legend for the magnitude of a reference vector. I have read all the document of VectorPlot and found only ...
1
vote
2answers
65 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 ...
3
votes
2answers
555 views

Changing the size of a Chart Legend

I'm trying to get a reasonable match for the following PieChart. I understand how to make the piechart, tweak the colors, placement of labels, etc. ...
1
vote
1answer
31 views

Put two symbols in a legend at the same time

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

Multiple two-dimensional plots in 3D visualization

How can I produce this kind of plot? Please help
0
votes
0answers
29 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
61 views

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

I have a dataset like as follows: ...
14
votes
5answers
3k views

How do you plot the same function with different options over different intervals?

Here is the motivation for my question. I want to plot Sin[x] over the interval 0 to 2 π, ...
4
votes
2answers
1k views

Spanning/centering elements with Grid/GraphicsGrid when there's a non-equal number of elem. in rows

I'm trying to align elements in Grid/GraphicsGrid: Grid[{{a,b,c},{d,e}}] This makes ...
1
vote
1answer
186 views

How to increase the font size in PlotMakers

When I use PlotMarkers -> {\[FilledCircle], 40} in ListPlot I get something like this: How can I increase the font size of ...
33
votes
2answers
903 views

Poets of the 19th century

...
12
votes
1answer
262 views

Highlight line in plot

I have a plot with many functions. Some of the functions overlap. In Maple, when you plot functions with legends, you can just click on the legend and it highlights the corresponding line. Does ...
3
votes
1answer
52 views

Multiple legends for barCharts

I came across this and found it quite cool. Here is the minimal example: ...
4
votes
5answers
250 views

LegendMarkerSize doesn't work here?

I'm trying to change the marker size on the legend of a figure. Simply: ...
2
votes
1answer
49 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. ...
7
votes
2answers
1k views

What is the default blue for the Plot? [duplicate]

My code is a simple function which I plot for two different times t ...
3
votes
2answers
147 views

Why does BarLegend change its position when exported?

I have this code to create some DensityPlot with M12.0.0.0 on Ubuntu ...
2
votes
3answers
949 views

How to put a PlotLegends in this case?

Here is my problem: I have to make a plot in log log scale, and I would like to put a Plot Legend INSIDE the plot (in order to include it into the document with all the specifications). The plot must ...
3
votes
1answer
118 views

Label curves with corresponding parameter [closed]

How can Plotlegend label each curve with the corresponding value of parameter param in the code below? ...
3
votes
2answers
88 views

Legend with matching lines

If it is a duplicate, I apologize. I have the function ...
2
votes
3answers
94 views

Putting the text after the line legend

I want to put the line legend after the text, here is my code; ...
2
votes
2answers
104 views

How to define NumberForm in LegendLabel?

To start: ...
2
votes
1answer
77 views

Geometric transform of a plot with legends and title

I'm doing a ternary phase diagram, so I want to plot it in a triangle and not in a square. If I'm doing the transformation with legends it doesn't work, but if I don't put legends it does work. Why ...
1
vote
1answer
42 views

Label with a formal part and a computed part

If would like to print $\left(\frac{b}{a}\right)^2$= (b/a)^2 inside a plot or a graphics where a and b have been seted to certain values so the first part is analytic and the second part (after the =)...
1
vote
1answer
68 views

Let `PlotLabel` use data set names in a list of plots

In the code below, how to make PlotLabel automatically show the name of the data sets (i.e., aa, bb, cc)? ...
2
votes
1answer
173 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 ...
3
votes
2answers
278 views

Plotting: one label for two curves

Consider the following code ...
5
votes
2answers
213 views

Plot problems: vertical lines and letters [closed]

In few words, I would make this graph: My many problems are the following: How do I plot a vertical line? What's the equation? How do I add the letters on the lines? How to make the Ticks like $...
9
votes
1answer
1k views

How to add own description to BarLegend?

Is there a default-option possibility to add own defined names of the contour-labels in BarLegend? I want to have a string "hot" ...
1
vote
2answers
43 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 ...
9
votes
1answer
804 views

Problem with custom ticks in BarLegend in Mathematica 11.1

Bug introduced in version 11.1 and fixed in 11.3.0 I think the bar legend custom ticks are automatically sorted in Mathematica 11.1. Am I making some stupid mistake here or is it a bug? This is with ...
1
vote
1answer
51 views

Building a nine - region cluster chart but, getting inaccurate plot-legend when empty subregions are present

This is a follow up question to the one submitted at the following: Stack exchange Link I quickly get to the subject: ...
2
votes
2answers
46 views

Display labels at the bottom and as a column in a ParametricPlot3D

I would like to display the labels of a 3D plot (made of many subplots) as a column at the bottom of the plot. I managed to put them at the bottom, thanks to the option ...
3
votes
2answers
58 views

Need help removing a legend

I need to fix the following code ...
4
votes
2answers
702 views

How can I use legend in ContourPlot3D and add arrowheads for axis?

I am using ContourPlot3D to show two surfaces. This is my code. Now I want to use Legend to distinguish the two surfaces, and add arrowhead for the three axis. <...
6
votes
1answer
60 views

Force two distance matrices to use and show a common legend

I have two distance matrices. Both are comparing two entities in the same way. I create each matrix using ...
5
votes
1answer
3k views

Scale coloring of ContourPlot

The answer given here solved how to use the same color scale across multiple plots within the function ListContourPlot. I can't for the life of me map this solution onto the function ContourPlot that ...
8
votes
4answers
482 views

PlotLegend disappears if Plot is used with ColorFunction

Working some charts on V10, I discovered that PlotLegends disappears if used together with ColorFunction inside ...
8
votes
2answers
2k views

How do I produce a BarLegend with the default coloring of a ContourPlot, using Legended?

I have a series of ContourPlots that I want to compare in a GraphicsRow environment. I want to add a single legend for all three ...
1
vote
1answer
74 views

Associate string with plot marker

I'm wondering, that is it possible in mathematica to associate plot legends with plot markers. For example let's say we have a Legended datas. Is it possible, to use the same marker for the data if ...
5
votes
1answer
242 views

A built-in way to manipulate the order of the items in the legend

I have several lists that I plot on the same image like this: ...
6
votes
3answers
717 views

Making a rectangular label for RegionPlot

I have a plot that includes a RegionPlot. I want to make a rectangle with the same shading as in the region plot to show as a legend. The dumb way I can think off ...
4
votes
4answers
334 views

How to exclude the diagonal in a MatrixPlot?

I have a matrix where the diagonal elements are meaningless. Usually I just fill them with 0, or infinities. The problem is that when I MatrixPlot this matrix, the diagonal elements affect the ...
3
votes
2answers
211 views

How to align the plot legends in the following way?

Consider example ...
4
votes
1answer
160 views

how to depict a network with a legend

Because my network nodes have real world names more than a few characters long, I'd like to label them with a shortcut, e.g., n1, n2, n3, ..., and put a legend on the side something like this: n1 - ...
13
votes
2answers
879 views

Vertical (mis-)aligning of plotmarkers and legend text in V10 PlotLegends

Consider this example, taken from the docs and modified for a larger font size using Style (V10.0): ...
20
votes
2answers
27k views

Formatting legend text font

I am using this code to plot a graph, and I am trying to make the font of the legend bigger. ...
4
votes
1answer
118 views

Ideas for styling graph nodes with weights

Suppose we have the following random graph SeedRandom[100] n = 15; m = 20; G = RandomGraph[{n, m}, VertexLabels -> "Name"]; and a list of weights for the ...
4
votes
3answers
169 views

How to add a legend to a graph to depict vertex properties?

I have made an animated graph that shows the changes of certain functions in time with different vertex sizes and colors: ...
13
votes
2answers
976 views

PieChart with radial coloring/color function

I am trying to visually compare multiple functions that depend on a single argument running from $0$ to $1$. They describe a radial property and so I thought it would be nice to use a kind of ...

1
2 3 4 5
14