# 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.

518 questions
Filter by
Sorted by
Tagged with
1k views

### Dynamically labeling a family of curves [duplicate]

I have created some simple code which generates a plot. This plot contains a family of curves created by changing a single parameter "k". I use the Table function within the Show function to iterate ...
7k views

### Font size in PlotLegends, using Table to generate the list in the legend

I am currently trying to get to graph with several functions as below. My problem is that I cannot change the font size in the legend (authomatically generated numbers by "Table" function). This code ...
231 views

### Labelling Curves Using ListLogLinearPlot within DynamicModule (So Close)

I currently have a large number of time-series datasets in the form where the name and time-series transposed data, so I have a list of lists of names for datasets and their time-dependant data. The ...
6k views

### How can I change the size of the plot markers

I use ListPlot in order to plot four sets of data and also insert legends in my plot. Here is the Mathematica code ...
408 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. ...
2k views

### Legend for ListContourPlot

Consider this example below for ListContourPlot. ListContourPlot[ Table[Sin[j^2 + i], {i, 0, Pi, 0.02}, {j, 0, Pi, 0.02}], PlotLegends -> Automatic] I ...
1k views

### Colorbar doesn't appear

I have a list of data with dimensions $(2000,4)$. I plotted it using ListPointPlot3D, setting the fourth dimension as the color. As follows: ...
428 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 ...
9k views

### How can I change the position of my plot legends?

As the title indicates, I want to change the current position of the legends in a combined plot. The Mathematica code I used is ...
2k views

### ErrorListPlot Legend with Markers

I'm trying for some days now to integrate markers in my legend. I have a ErrorListPlot with markers and a legend but difficulties to realize the markers in the legend as well. Thanks a lot for your ...
2k views

### How do I set the boundaries of the legend for a ListDensityPlot?

I have a 3-d array imported from a text file. One dimension represents time, and the other two represent space. It's basically an array of 2-d arrays of temperature values. I want to plot these values ...
2k views

### Using PlotLegends

Please don't answer this with "Just trash PlotLegends" or anything like that as I have tried homebrew solutions. I keep running into problems which I can't debug as ...
1k views

### ParametricPlot and PlotLegends don't seem to cooperate

Bug introduced in 9.0.1 -- fixed in 10.0.0? I noted that only part of the legend shows up in ParametricPlot using v9's ...
153 views

### Controlling margin around PlotLegends

Here's my code: ...
2k views

### Placing bar chart labels on the upper and lower frame axes

In the bar chart (with negative values) BarChart[{{1, 2, 3}, -{4, 5, 6}}, ChartLabels -> {Placed[{"r1", "r2"}, Above], Placed[{"c1", "c2", "c2"}, Below]}] ...
1k views

### Font size in PDF export with legended plots not working

I need to export plots as PDF with a given image and font size. Everything is working fine if there is no legend for that plot. However, if I want to export legended plots, the font size is decreased ...
6k views

### How to add a common color legend to a grid of density plots?

I have a grid of density plots, say something like: GraphicsGrid[Partition[Table[ DensityPlot[Sin[i x] Sin[y/i], {x, -4, 4}, {y, -3, 3}], {i, 1, 4}], 2]] I ...
325 views

### Improving ContourPlot and Table output

I am trying to examine the results of and NDSolve solution for a BVP, and the output is not at all "pretty". Here's the code: ...
848 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. ...
285 views

### Big spaces between legend positions

I am trying to make a legend for my plot. Actually, I made one, but I cannot understand why there are such big spaces between the legend positions. ...
268 views

### How can I shift the frame ticks to the corner of each element-cell in a Matrixplot?

I am using the following code,to create a Legend for my plot. I would like to shift (or re-position) the frameticks to the corner of each of the cell-elements instead of being in their middle. I ...
646 views

### Can I add legends to a SmoothHistogram?

Under the options menu for Histogram, there is an option called ChartLegends, which adds little boxes beside the plot to ...
845 views

### Exporting 3D plotted figure complete with legend ready for Word

I have one more problem, still with exporting full quality 3d figure into Word. I want perfect quality in a Word document of a 3d figure prepared with legend (traditional form of text). Extremes of ...
598 views

### What is the best way to export a table of numerics with legends ready for Word?

I want to put my table output into an MS Word document without having to edit it in word after, so I want to export it ready for Word in final version with complete legends and title. Is it possible ...
3k 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 ...
1k views

### Using PlotLegends with a numeric PointSize

Using PlotLegends with a PlotStyle containing (for instance) PointSize[0.02] creates a ...
1k 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: ...
2k views

### Number format in Legend Labels

I would like to use the usual (new and nice) BarLegend[] with something like BarLegend[{"LakeColors", 1/10000 {-2, 2}}] which ...
1k views

### PlotLegends doesn't work on Plot3D-V8.0.0

I am trying to plot in 3D and I need to use PlotLegend. My code is ...
3k views

### Logarithmic scale in the legend of a ListContourPlot

Is there a way to use a logarithmic scale in the colour legend of a ListContourPlot? The contours can be logged by taking the ...
6k 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 ...
2k views

### How to show legend in a combined plot of many lists,

I am having trouble with adding a legend to a plot. The example I discuss here is simpler than my real problem, but describes it well. I have a vector, called X with dimensions (100 x 6). I use the ...
488 views

### LabelStyle doesn't affect PlotLegends [duplicate]

Possible Duplicate: Setting the default font for PlotLegends Using version 9 The option setting for LabelStyle in plots (I've tried this in ...
226 views

### Prevent manipulations in PlotLegends

Mathematica code to reproduce: ...
7k views

### Setting the default font for PlotLegends

I'm pleased that Mathematica 9 appears to have brought us prettier legends. If I always want the legend in ...
327 views

### logticks in a colorbar

I have a question on using logarithmic ticks in a colorbar in Mathematica 8.0 . I use the package ColorbarPlot (...
3k views

### Make legend same height as plot

One common style for density plots is to have a vertical legend that is the same height as the plot itself. Some example density plots from Google Image search: How can we make DensityPlots with ...
597 views

### Graphics legend: How do I split tables into parts?

Using Jens's code: ...
2k views

### How can I create a legend for a Heat Map when I don't want to show the full range of colors?

I produce a heat map with legend with the code shown below ...
190 views

### Plot with Legends and Markers [duplicate]

Possible Duplicate: Creating legends for plots with multiple lines? I must say I have seen a couple of similar questions but they were not addressing my specific problem. Level one: I'm trying ...
121 views

### Show Legend with 3D ListPlot [duplicate]

Possible Duplicate: Creating legends for plots with multiple lines? I am trying to plot the color bar that shows the data range for the data plotted by ...
2k views

### Adjusting the legend colors to match that in MatrixPlot

I am trying to show the legend with a ColorData for a discrete Fourier transform coefficient table. Here's a sample data table: ...
105 views

### Make PlotMarker explanation [duplicate]

Possible Duplicate: Creating legends for plots with multiple lines? I have a ListPlot of data points. To distinguish between datapoints coming from different sources, I give them different ...
216 views

### How to add FindDivisions to the plot commands?

I used these instructions to make a legend bar next to my plot (I can't comment there) But I'm lost to where and how can I add FindDivisions to the DensityPlot under "Edit: illustrating additional ...
1k views

### How do I use the ShowLegends function to produce a legend for my framed graphic?

I'm new to this site and new to Mathematica as you can see from my question. I'm also new to programming, btw. I'm trying to produce a legend for my plot which I've coded as follows: ...
579 views

### How To Span Table Headings?

What I am doing wrong? I would like to get a header to the table and based on your code I tried this: ...
512 views

### Table in a Legend

Calculated data: ...
1k views

### How can I generate a legend for a BubbleChart?

Is there a way to make a nice disk radius legend (with linear or log scale) for a BubbleChart? Something like the following example should be built in: