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)

1
vote
2answers
194 views

How to create an effective PlotLegend when plotting many ListPlots?

I'm creating a ListPlot where I plot many data sets simultaneously. Currently, my code that produces it is something like this: ...
2
votes
1answer
100 views
1
vote
1answer
81 views

Different distance in .jpg plot and .eps

I noticed that when I run my code to draw a plot: ...
2
votes
1answer
492 views

Place legend without border above the plot

I use Mathematica 7.0 and as far as I know, there is not method PlotLegends, only PlotLegend. I want to set my legend - without background, shadow and frame - above my plot, as in the example belowe: ...
0
votes
1answer
175 views

Plot Legends when first argument was generated by Table[]

I can get a plot to generate legends for different functions when these functions are put into a hand-coded list. However, when I generate the list of functions using Table[] only one legend is ...
1
vote
1answer
168 views

Changing the width of BarLegend with Contour argument

Bug exists in 10.0.2 Is it possible to change the aspect ratio of the BarLegend in Mathematica? The option LegendMarkerSize, ...
2
votes
1answer
68 views

ChartLegends only displays the last two legends in the list

I would like to add 4 legends on a simple bar chart below, but only the last 2 legends appear on the graph. ...
25
votes
2answers
619 views

Poets of the 19th century

...
6
votes
2answers
244 views

MatrixPlot provides wildly inaccurate PlotLegend?

I noticed something weird with MatrixPlot's PlotLegends -> Automatic behavior- here's a minimal example: ...
2
votes
2answers
519 views

Legend placement explanation

Could anybody explain, how the coordinates in Placed influence each other? ...
2
votes
2answers
114 views

LegendMarkerSize value equivalent to special character size in LegendMarkers

I am trying to find the equivalent LegendMarkerSize value to the size specified for special characters when using LegendMarkers. So far I found LegendMarkerSize 14 generates symbols close to 22 set ...
2
votes
1answer
478 views

graphics grid legend

I'm working with mathematica 9.0 and I want to make a graphic grid containing 3 different plots. My problem is that when I use plotlegend to label the plots the legend does not show up or the left ...
2
votes
2answers
105 views

Why legendmarkers shifted a few pixels after opacity is specified

In below simple graph, if an opacity is specified in the legendmarkers, the plot marker shifted a little bit, can someone please shed some lights? ...
10
votes
2answers
293 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): ...
9
votes
2answers
317 views

Attaching a legend to BallAndStick picture

I am looking for a way to add a legend showing the identity of various atoms (with different colours) to this picture. Any Clues? ...
12
votes
3answers
423 views

Changing BarLegend border style

I want all the lines in my plot to be a consistent style, let's say thick and black for the purpose of this question. ...
3
votes
2answers
692 views

Most convenient way to set legend marker size?

If I add a legend using Legended[..., SwatchLegend[..., ...]] then I can explicitly set the legend marker size using the ...
4
votes
1answer
150 views

Boundaries of graphical objects not displayed correctly

Bug introduced in 10.0.0 and fixed in 10.0.1 I have encountered two situations where Mathematica 10 is mishandling the outer pixels of plainly simple objects. I input this: ...
15
votes
2answers
1k views

PlotLegends -> “Expressions” not working when Plot given one function

I don't get a legend when I use the option PlotLegends -> "Expressions" when the first argument to Plot is a single function. It works OK when I give ...
5
votes
2answers
88 views

Why does Rotate in PlotMarkers behave strangely?

While answering Change the inner color of markers I came across a behavior that may be a bug. I would like to know if there is another explanation. First a basic example of normal behavior: ...
4
votes
2answers
354 views

Change the legend labels' font when PlotLegends is Automatic

I am using the options PlotTheme -> "Scientific" and PlotLegends -> Placed[Automatic, Right] on a ...
2
votes
1answer
249 views

How to set range of values on BarLegend and Manipulate Polygons color filling using BarLegend

I have a simple graphics which display a polygon and a bar legend. I am having difficulties defining a range of values for my bar legend. What I am looking to get is 4 values: 10^-10, 10^-6, 10^-3, 10^...
1
vote
1answer
411 views

Plot Legends and Frame Ticks in Array Plots

Why do the frame ticks go away when PlotLegends->Automatic is inserted in an Array Plot? For instance, the following code produces an Array Plot with Frame Ticks. ...
1
vote
0answers
19 views

LegendLayout not working as asked [duplicate]

Why the following code does not result in row layout as specified (see the attached picture for result)? ...
13
votes
1answer
373 views

BarLegend changes in Version 10

Apparently, BarLegend in version 10 displays tick legends in scientific notation when they are smaller in magnitude than 0.01. For instance, ...
1
vote
1answer
507 views

Plotting legends in contourplot

In Mathematica 8. Given this: ...
1
vote
1answer
190 views

Legend in a Show

I am trying to put some legends on a graph but I am not able to do that. This is my code: ...
2
votes
1answer
132 views

How to add a barlegend to a listlineplot?

I'm trying to add a color bar legend to a ListLinePlot with multiple lists. With 20+ lists a normal Legend gets long and bulky. Basically, each list line is associated with a different value. I've ...
4
votes
1answer
189 views

puzzled with ColorData [closed]

At first let me thank, from this point as well, those that they replied to my previous queries. From a reply I got, I obtained finally the desired graph. ...
3
votes
1answer
804 views

Create a colorbar plot legend

I have the following list of parametric equations lst = {10*Cos[u]*Sin[v], 3*Sin[u]*Sin[v], 2*Cos[v]}; I define the following color function ...
2
votes
3answers
199 views

PlotLegends question

Two lists: ...
3
votes
4answers
2k views

How to add PlotLegends in a Show function?

I have multiple ListPlot in a Show where i want to add PlotLegends, but adding the PlotLegend...
4
votes
3answers
426 views

How to use LineLegend and SwatchLegend together

I am wondering if one can place on the right of the plot frame a single legend that is a combination of a LineLegend and a SwatchLegend. What I want is to see the line with its label on top of the ...
2
votes
2answers
127 views

Multi-legend issue in ChartLegends?

Been fiddling around with the legends and trying to place one in each corner and I bumped into an issue: ...
0
votes
1answer
55 views

Bar legend does not display values

My BarLegend shows only zeros instead of right values and I cannot find the reason. I set following minimum and maximum: ...
11
votes
1answer
1k views

Control BarLegend size

I want to plot a big 2D array of experiment data. I need plot axes and tick labels as well as a bar legend using BarLegend: ...
3
votes
2answers
624 views

How can I get thicker lines in the legends of a ListLinePlot?

I want to have thicker lines in the legends of this plot: ...
2
votes
2answers
112 views

Can I change Legend text in a stylesheet?

I prefer a sans serif font in graphics, which I do by creating a style for "Graphics" in a stylesheet. However, this does not affect the style used by legend labels: ...
4
votes
3answers
1k views

Adding plot legends in version 8

I use Mathematica to draw the displacement, velocity, and acceleration of one point in a graphic. ...
1
vote
1answer
230 views

Having trouble saving a plot with legends

I am trying to plot a graph. ...
0
votes
2answers
608 views

How to change the font of a color bar?

When using DensityPlot or similar, I want to change the font size of both frame labels and the color bar legend, but I can only get the frame labels to work. ...
1
vote
1answer
99 views

Adding a legend to a MatrixPlot

I have produced this MatrixPlot: Rows refer to countries and columns to ranks. Row 1 refers to Norway with many 1 ranks, row 15 to Greece with many 15 ranks. Other countries are inbetween. I would ...
2
votes
1answer
124 views

A problem about option “Plotlegends”

Today,I use the Mathematica to deal with data.My code as below: Needs["PlotLegends`"] Function Definition: ...
1
vote
1answer
92 views
5
votes
2answers
332 views

Plots using TextAlignment with SwatchLegend to left align multi-line items

I have Legends that stretch over multi-lines and the only way I can get them left aligned is by adding white space to the end of the legend item. Does anyone know if there is a way to use ...
4
votes
1answer
204 views

“Legended” not working with “Plot” or “LogLinearPlot”

Version 9 has a new option Legended, which I find appealing since it should allow me to add individual expressions/curves to a legend, but it doesn't seem to be ...
2
votes
2answers
1k views

How to make lines in Plot Legends wider?

1.- How to put DASHED lines in the Legend? 2.- How to give Style to {20,Bold} to all "Expressions in Legend? (I use LegendMarkSize for make lines wider than default fine style ) ...
2
votes
1answer
151 views

LogPlot and LogLogPlot do not output their legends correctly

When I give lists of functions to LogPlot or LogLogPlot with the option of PlotLegends, the ...
5
votes
4answers
243 views

ContourPlot refuses to show in-figure PlotLegends after turn on ContourShading

I would like to do a contour plot with a label inside the figure itself. For example, the following works well: (note there is a small text "example" at the right bottom figure) ...
2
votes
1answer
523 views

Another one problem with legends on GraphicsGrid

I have used ListLinePlot to generate this grid of plots: and I want to add a legend in Row Layout below this grid. My code, has as follows: ...