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)

0
votes
1answer
31 views

Add a legend to a DiscretePlot - Version 8 [duplicate]

I have found several topics with legend issues but no answer to my problem. I have a function and I need to plot it for integers only (hence discrete plot) and then add a legend too. But ...
5
votes
1answer
96 views

How to share LineLegend among sub-figures in GraphicsGrid?

Using GraphicsGrid, I have put two figures that share the same x-axis in a row. However, I failed to let them share a common ...
1
vote
1answer
14 views
2
votes
3answers
85 views

Customizing the order of appearance of legends in PlotLegends

I have a graph with four curves and I want to custom order their appearance in the legend. In particular, in the graph below, ...
9
votes
1answer
187 views

PlotLegends won't generate automatically more than 15 labels in v10

NOT fixed in v 10.0.2 (Dec2014) While testing the examples from this recent post, i've noticed a problem in V.10 with PlotLegends when it has to automatically ...
3
votes
2answers
60 views

BarLegend using Function that uses Blend

I'm sorry if this is a duplicate, but I don't even know how to look for it. I had this line of code that worked on a Notebook I wrote on Mathematica 9.0: ...
1
vote
1answer
57 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: ...
4
votes
2answers
102 views

Match colors to plot themes

How do I get the colors to match the plot theme when I use a PlotLegend that is separate to the plots? I have had a look at How to access new colour schemes in version 10? but can't seem to find what ...
2
votes
1answer
45 views

Inconsistent behavior in ColorFunctionScaling of BarLegend in v10.0.1

I find the ColorFunction in BarLegend behaves very weirdly: Force rescaling from 0 to 1 For example: ...
1
vote
1answer
81 views

Plot multiple solutions [duplicate]

I want to plot multiple solutions of an equation, so that one can differ them in the plot. The given equation is e.g. ...
1
vote
1answer
144 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 ...
5
votes
1answer
192 views
1
vote
1answer
53 views
1
vote
2answers
74 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: ...
6
votes
2answers
542 views

How do I identify each surface in a multi-surface Plot3D?

I am plotting three surfaces on a 3D plot. They differ in the value of one parameter. Is there a way to distinguish each surface for various values of the parameter? My code is: ...
0
votes
1answer
46 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
46 views

Changing the width of BarLegend

Is it possible to change the aspect ratio of the BarLegend in Mathematica? The option LegendMarkerSize, in my case below, only ...
2
votes
3answers
98 views

Legend placement explanation

Could anybody explain, how the coordinates in Placed influence each other? ...
2
votes
1answer
37 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. ...
23
votes
2answers
478 views
6
votes
2answers
111 views

MatrixPlot provides wildly inaccurate PlotLegend?

I noticed something weird with MatrixPlot's PlotLegends -> Automatic behavior- here's a minimal example: ...
2
votes
2answers
70 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 ...
9
votes
2answers
390 views

In version 9 PlotLegends, how can I remove the strange edges that appear around LegendMarkers?

I'm running Mathematica version 9. I am using ListPlot to plot two sets of data. For each data set, I am using different ...
11
votes
4answers
3k views

Why are PlotLegends not combined with Plots?

I'm using PlotLegends in v9. It seems that in the documentation examples, plots and legends are combined into one graphic: Here's an example from ...
8
votes
2answers
163 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): ...
11
votes
2answers
603 views

Changing the inter-item spacing in Legends (version 9 and up)

The legending functionality in versions 9 and higher is much easier to use than the PlotLegends package and other bespoke ways of creating legends in earlier ...
2
votes
2answers
74 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? ...
5
votes
2answers
182 views

How to set PlotLegend Number Format

Is there any way to make Mathematica to show the legend labels like a real number rather than in fraction form? I read the BarLegend options, however they are just ...
4
votes
2answers
193 views
8
votes
2answers
219 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? ...
8
votes
2answers
138 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
247 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
129 views

Boundaries of graphical objects not displayed correctly

I have encountered two situations where Mathematica 10 is mishandling the outer pixels of plainly simple objects. I input this: ...
3
votes
1answer
309 views

rasterListContourPlot With PlotLegends in Mathematica 9

Jens Nöckel has write functions about (List) Contour Plots with rasterized shading in Mathematica: http://pages.uoregon.edu/noeckel/computernotes/Mathematica/rasterContourPlot.html It works well. ...
13
votes
2answers
312 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 ...
11
votes
3answers
487 views

Using PlotLegends with a numeric PointSize

Using PlotLegends with a PlotStyle containing (for instance) PointSize[0.02] creates a ...
5
votes
2answers
64 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
93 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
119 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, ...
1
vote
1answer
103 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)? ...
12
votes
1answer
257 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, ...
8
votes
1answer
297 views

How does PlotLegends actually work with ListPlot3D?

I'm sensing this might be a rookie mistake but normally I roll my own legends but decided to try the built in legends for a ListPlot3D. ...
0
votes
1answer
130 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
256 views

Gray background in export pdf

I am trying to output a simple plot with a legend and the output keeps coming out with a gray background. A simple example is the following: ...
13
votes
2answers
469 views

How can I get LineLegend to pick up my plot's BaseStyle?

The new legends functionality in version 9 really simplifies creating legends, and it automatically picks up the styles of the lines. ...
2
votes
3answers
127 views
2
votes
1answer
60 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 ...