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.
33
votes
4answers
5k views
Creating legends for plots with multiple lines?
So I have a graph with multiple lists, for e.g.
data = {{1,2}, {3,4}, {3,5}, {2,3} . . .}
If I then do ...
22
votes
6answers
5k views
Labeling individual curves in Mathematica
I need to create a plot for export and inclusion in a report. Is there a better way to label curves than PlotLegends? From what I've read and my personal ...
21
votes
3answers
2k views
ListPlot with each point a different color and a legend bar
I would like to generate a ListPlot with the color for each point in the plot corresponding to a particular value (not associated with the position in the plot). I'd then like to add a legend ...
19
votes
7answers
1k views
Sizing cells in a GraphicsGrid/GraphicsRow
I would like to add a colour bar to a plot. I tried to use GraphicsRow for this. In a GraphicsRow, each item is given the same ...
19
votes
3answers
2k views
ShowLegend values
How do I get ShowLegend to put the max and min values that a plot produces.
for example, when using ListDensityPlot, with ...
17
votes
5answers
2k views
Using PlotLegends with Show messes up the graphics
I have already obtained the plot that I want but am having trouble legending the graph correctly.
...
16
votes
4answers
445 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
...
13
votes
5answers
377 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 ...
11
votes
4answers
346 views
Changing the order of elements in a chart legend
In a stacked BarChart or Histogram the bars are stacked from bottom to top, while the legend entries are listed from top to ...
10
votes
1answer
3k 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.
...
9
votes
3answers
580 views
Adapt ticks in plot and font in legend
Some of my 2-dimensional data are displayed with a code similar to this:
...
9
votes
1answer
168 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 ...
8
votes
3answers
432 views
How do I change the Font in BarChart Legend?
Just wondering if anyone knows the proper Syntax to change the Text properties in the BarChart's ChartLegend. I cannot seem to figure out how to get Style[] to apply. Here is an example:
...
8
votes
2answers
2k views
Legend of a plot: how to increase the size of the line/marker?
I'm using the following kind of code to do the legends of my plots:
...
8
votes
1answer
103 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.
...
8
votes
1answer
301 views
How to position legends exactly where I want them?
I just noticed another plot legend question today and while user solutions to this, in particular code by @Jens, are IMO better than the built in solutions, exact positioning often still requires some ...
7
votes
3answers
386 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 ...
7
votes
2answers
161 views
Changing the inter-item spacing in Legends (version 9)
The new legending functionality in version 9 is much easier to use than the PlotLegends package and other bespoke ways of creating legends in earlier versions. ...
7
votes
1answer
482 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 ...
5
votes
3answers
256 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 ...
5
votes
3answers
133 views
Placing bar chart labels on the upper and lower frame axes
In the bar chart (with negative values)
...
5
votes
2answers
229 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:
...
5
votes
1answer
95 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
...
5
votes
1answer
134 views
Using PlotLegends with a numeric PointSize
Using PlotLegends with a PlotStyle containing (for instance) PointSize[0.02] creates a ...
4
votes
3answers
298 views
4
votes
1answer
125 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 ...
4
votes
3answers
1k views
How can I label a ListDensityPlot with a color bar?
Here is an example of what is desired, only the result wouldn't be a contour plot, but a ListDensityPlot. The arguments would be a gradient and a list of numbers.
4
votes
2answers
118 views
4
votes
1answer
348 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:
...
4
votes
1answer
95 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 ...
3
votes
4answers
347 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 ...
3
votes
2answers
630 views
Plot CSV-data; make statistical statements in Mathematica / WA
First, I'm quite new to Mathematica so sorry in advance if some questions seem to be trivial.
I have a CSV-file which looks like this:
...
3
votes
1answer
63 views
3
votes
1answer
61 views
Problem with the Plot of Functions and PlotLegends
For some odd reason the PlotLegends output is not as expected.
...
3
votes
2answers
378 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
...
3
votes
1answer
158 views
SetOptions or other approach to imposing default styling of text in a BarChart Legend?
Gustavo Delfino's answer to an earlier question showed that it is possible to use the third argument to Placed to format text in a ...
3
votes
1answer
60 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 ...
2
votes
3answers
179 views
Selective inclusion of elements in BarChart Legend
Further to my previous question, is there a concise way - amenable to automated setting in a package so that it can be accessed globally - to eliminate some legend item that would otherwise show? For ...
2
votes
2answers
132 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 ...
2
votes
1answer
1k views
2
votes
1answer
152 views
Is it possible to use styled (e.g., colored) text in PlotLabel?
Sometimes, I want to provide a key or legend for my Plot or ListPlot without using the ...
2
votes
3answers
147 views
ParametricPlot and PlotLegends don't seem to cooperate
I noted that only part of the legend shows up in ParametricPlot using v9's PlotLegends:
...
2
votes
1answer
105 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 ...
2
votes
1answer
254 views
2
votes
1answer
59 views
Normalize the PlotLegends and z values for two DensityPlot
I'm trying to compare two DensityPlots:
...
2
votes
1answer
94 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
...
2
votes
1answer
123 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 ...
2
votes
2answers
148 views
Varying plot sizes for identical PlotRanges in ListLinePlot, where one has a legend
I am trying to make some figures using ListLinePlot in Mathematica 8. Although the PlotRanges are the same, the resulting frame sizes are different. The only difference (as I see it) between the two ...
2
votes
1answer
107 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. ...
2
votes
0answers
70 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 ...



