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.

learn more… | top users | synonyms (1)

5
votes
2answers
50 views

BarLegend with two different scales (ticks&labels)

I am looking for a way to plot e.g. a legended DensityPlot with a BarLegend, where the colorbar shows two differently scaled ...
4
votes
3answers
105 views
2
votes
2answers
70 views

Does PlotLegend lie in a figure?

I wonder if PlotLegends is part of a figure. Indeed in the code ...
3
votes
2answers
82 views

Problem with PlotLegends in Manipulate

Please consider this simple code: Manipulate[ Plot[{a Sin[x], a Cos[x]}, {x, 0, 2 Pi}, PlotLegends -> "Expressions"], {a, 1, 2}] Mathematica returns this ...
1
vote
2answers
70 views

Problems with formatting PlotLegends text [closed]

To avoid issues, I post here the photo to explain you better what my problem is. So what I would like to have, is a "correct" writings of the legend text for the Blue function. I would like it to ...
3
votes
2answers
161 views

Making a better looking plot legend

I want to plot two (or more) functions, inserting in the plot itself the legend that will clarify me what are those plotted functions. I know this basic standard command lines: ...
1
vote
2answers
84 views

Matching colors in BarLegend and colorfunction

How I can use Hue as color function in BarLegend in this density plot? ...
4
votes
4answers
219 views

Combine multiple swatch legends

How can I combine multiple SwatchLegends? As a minimal example: ...
5
votes
1answer
81 views

inset legend from top right corner / find size of swatchlegend bounding box

The question is the following. Using Inset, we can insert a legend in a Plot (in a Graphic, in general). E.g. ...
2
votes
1answer
131 views

BarLegend too large for plot in version 10.3

In previous versions, the following code, taken from here from @kglr, used to give a reasonably sized legend, but in version 10.3 gives a huge legend. ...
1
vote
1answer
74 views

How to border legends in ListLinePlot

I'm trying to use ListLinePlot for 3 data sets, and I want to put borders for my legends. Here is my code: ...
1
vote
1answer
88 views

Is it possible to use vectorized Plot Legend?

I upload data using the following code data = Import["L" <> # <> ".dat"] &/@{"10", "102", "103", "104"}; My function is ...
1
vote
1answer
76 views

How can I plot legends on only some of my curves that all plotted together?

I am using ListPlot to plot many lines in the same graph. I want to put in a legend but only for a subset of these lines. For example ...
1
vote
2answers
60 views

Formatting legend text font multiple times

I have the same question as asked in this question. With the difference that I want to change multiple legend entries. I tried: ...
0
votes
1answer
122 views

Plot legends not displaying correctly

I'm having an issue with a notebook I'm running. I'm generating a bunch of plots, but the legends aren't showing up correctly. I generate a bunch of plots every time I run the program so I wrote a ...
7
votes
2answers
84 views

How to generate a Log BarLegend for a DensityHistogram

I have a Log count histogram: DensityHistogram[myData, 100, {"Log", "Count"}, ColorFunction -> "Rainbow", ChartLegends -> Automatic] But ...
3
votes
1answer
152 views

Customizing a graph (Dashing, PlotMarkers, Labeled)

There are actually several questions here but I thought they are closely related so I should not split into several posts. Here we go... I have the following list ...
2
votes
1answer
58 views

Map inside LogLinearPlot with legends and different colors [closed]

I have been trying to use Plot with a nested map to make plots of a numerically integrated function with different argument parameters, and after some searching I have finally got that sorted. My MWE ...
1
vote
1answer
58 views

Using PlotLabel with ParametricPlot

I cannot get the label to appear on this vertical line! (Mma 9.0.1 OS 10.8) ParametricPlot[{.5, t}, {t, 0, .5}, PlotStyle -> Blue, PlotLabel -> "z"]
1
vote
1answer
76 views

How to change the spacing of line in legend?

Given this plot: ...
3
votes
2answers
157 views

How to set original color of markers in plot legend?

I tried to make a plot markers manually as follows ...
1
vote
0answers
34 views

Update plot legend after using drawing tools [closed]

After manually editing a plot by changing the colours and filling of the curves using the drawing tools, is there any way to update the legend, so that it corresponds with the new colours?
6
votes
2answers
168 views

LineLegend behaves differently in ListPlot in Mathematica Version10.0 or later

Suppose I want a line legend for a list plot: ...
12
votes
3answers
268 views

How can I change the thickness of tick marks in BarLegend?

Bug introduced in 10.2 or earlier and persisting through 10.3.0.0 or later This answer explains how to change various undocumented options for BarLegend with ...
6
votes
2answers
149 views

PlotLegends “Expressions” default for ListPlot?

gwr pointed out an apparent problem with setting a default Option value of PlotLegends for DateListPlot. I traced the problem ...
0
votes
0answers
34 views

Adding a legend to ListContourPlot [duplicate]

I am struggling to add a legend to my plots. I am using ListContourPlot and my data is ASiAufrontZnO, which is an array of data with three columns ...
8
votes
2answers
287 views

Getting a correct custom legend for contourplot?

I am having trouble making a custom range for a legend in ContourPlot since the legend doesn't "talk" to the PlotRange and ...
2
votes
1answer
113 views

Three questions about two plots

I used the following code ...
2
votes
1answer
109 views

Contours aren't aligned with frame ticks in ContourPlot

Because of the problem described in BarLegend can't make spaced contours when contours number>11, I decided to brew my homemade spaced-contours-barlegend. After some trials I get something like ...
2
votes
1answer
93 views

Legend is too long

I've a problem with the legend of my graph. I've customized the graphs of my papers in an acceptable way for the a lot of journals. But this time I've two problem: Is there a simple way to write the ...
4
votes
1answer
138 views

How to automatically align multiple legends in Show [duplicate]

I am looking for a way to align two multiple legends while I can control the position of one of the legend myself. Consider the following code. ...
7
votes
3answers
150 views

BarLegend can't make spaced contours when contours number>11

According to Document of BarLegend,BarLegend will select equally spaced contours: BarLegend[cf,contours] generates a legend that identifies color ranges from the color function cf based on the ...
5
votes
2answers
211 views

Scatter plot from two lists with BarLegend

I have two lists listx = {}; Do[x = RandomReal[{0, 1}]; AppendTo[listx, x], {1000}]; listy = {}; Do[y = RandomReal[{0, 10}]; AppendTo[listy, y], {1000}]; I can ...
5
votes
1answer
113 views
5
votes
2answers
211 views

How to export plot legend independently?

Let us take an adapted example from Mathematica doc's: ...
4
votes
1answer
184 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 plots. Also, I really like the standard color scheme of the ...
0
votes
2answers
95 views

Control legend size when autoLegend is used with LinTicks [closed]

It looks simple, but I'm been trying to solve this issue for days, but no luck yet. So, here I used LinTicks, as customized option and another graphic option. Here ...
1
vote
1answer
140 views

PlotLegends in ListPlot does not display different markers

I would like to plot a graph with the legends at its side. However, I have managed to plot the legends, but the markers do not match the one in plot (picture bellow): My code for that plot is: ...
3
votes
3answers
145 views

How to use PlotMarkers or Mesh with Plot to creat Marks on the plot

I have a plot and I want to format it for journal paper. I just realized how hard to format a plot for academic purposes using MMA. For example: I want this plot ...
5
votes
3answers
236 views

adjust the alignment of different legends

I used Show to combine a ListPlot and Plot, and each plot has its own legend. The code is as ...
1
vote
1answer
52 views

ListLogLinearPlot with Legends

I need to plot this data in Log scale for both axes, and also need to add a legend. But since they are joined dots, the legend that appears is just a dot instead the plotstyle I choose. ...
0
votes
1answer
171 views

Fixed colors for fixed values in contourplot legend

I am trying to make a contour plot of a gravitational potential, consisting of a sum og different potential.s. I would like to plot them separately with a BarLegend that has the same colors for the ...
0
votes
2answers
50 views

Barlegend with a different z span for ListDensityPlot

I would like to rescale the colors in a plot and to do this in the same way for the color bar. (So this enables me to have the color bar span a (z) range larger than than the data itself.) I got this ...
1
vote
2answers
119 views

How to make legends in Graphics?

To make an equilateral hexagon, here is my code in mathematica: ...
1
vote
1answer
44 views

Setting Marker Line widths in Legend

I have read all these posts and can not get this to work. I am trying to increase the width of the line in the legend. I have tried SwatchLegend, ...
0
votes
1answer
76 views

Plotlegend does not work [closed]

I am trying to add a legend to a plot, but sometimes it work and sometimes it doesn't work and I don't understand why. For example, when I use the following code, I get as an error "Unknown option ...
6
votes
1answer
325 views

Straightforward way to make a multicolumn line legend?

I have a plot showing 8 curves, and I'm able to define a line legend styled in either a column or a row version. I have the following code: ...
7
votes
6answers
314 views

PlotLegends for ListPlot with more than 15 curves?

fixed in 10.1 (windows) I'm running into trouble getting the right PlotMarkers in the legend of a ListPlot of many curves. ...
1
vote
2answers
200 views

Want to put additional items in my plot legend

I was able to plot most of the parts of the figure. But I have a problem with some legend items. Here is my code: ...
3
votes
1answer
107 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" ...