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.

Filter by
Sorted by
Tagged with
2
votes
1answer
937 views

Normalize the PlotLegends and z values for two DensityPlot

I'm trying to compare two DensityPlots: ...
1
vote
1answer
718 views

Concerning ShowLegend in Mathematica

I found a code for Mie Scattering from 2007, written for Mathematica. I have edited it quite a bit, since there are package definitions that we don't need, etc. But I am having difficulties ...
1
vote
1answer
230 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 ...
3
votes
3answers
329 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 ...
1
vote
1answer
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 ...
2
votes
2answers
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 ...
5
votes
1answer
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 ...
0
votes
1answer
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: ...
5
votes
3answers
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 ...
2
votes
1answer
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 ...
4
votes
1answer
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 ...
3
votes
1answer
152 views

Controlling margin around PlotLegends

Here's my code: ...
6
votes
3answers
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]}] ...
-1
votes
1answer
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: ...
1
vote
1answer
282 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. ...
21
votes
4answers
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 ...
2
votes
2answers
263 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 ...
6
votes
1answer
638 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 ...
14
votes
1answer
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 ...
9
votes
1answer
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 ...
1
vote
1answer
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 ...
0
votes
1answer
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 ...
2
votes
1answer
483 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 ...
4
votes
2answers
226 views

Prevent manipulations in PlotLegends

Mathematica code to reproduce: ...
6
votes
2answers
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 ...
2
votes
0answers
186 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 ...
1
vote
0answers
120 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 ...
2
votes
1answer
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: ...
1
vote
0answers
103 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 ...
1
vote
1answer
215 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 ...
4
votes
1answer
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: ...
11
votes
1answer
3k 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 ...
2
votes
2answers
437 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
6k views
12
votes
3answers
2k 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: ...
12
votes
3answers
2k views

Adapt ticks in plot and font in legend

Some of my 2-dimensional data are displayed with a code similar to this: ...
5
votes
2answers
6k 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
805 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 ...
3
votes
1answer
360 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 ...