Linked Questions

65 votes
9 answers
50k 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 experience,...
Tianxiang Xiong's user avatar
46 votes
4 answers
38k views

How can I save both the plot and the legend together?

In this example, how can I put the legend inside the graph? Currently, when I save the graph, only the graph is saved, not the legend. ...
Mika Ike's user avatar
  • 3,241
35 votes
3 answers
9k 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 ...
Andrew Spott's user avatar
  • 1,581
28 votes
7 answers
9k 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. ...
Julia's user avatar
  • 931
23 votes
4 answers
9k views

How do I use Map for a function with two arguments?

I'm a newbie who tries to be a good boy, and use Map instead of writing out a list of functions. I have a table I want to Map ...
stevenvh's user avatar
  • 6,866
20 votes
4 answers
9k views

How can I mark each of several plots with a parameter that identifies it?

I've got a two variable function that I'm plotting against one axis for a few different values of a parameter ...
Peeter Joot's user avatar
  • 6,418
17 votes
5 answers
7k views

"Save Graphic As..." does not include plot legends

I am creating some plots with Show but unfortunately the PlotLegends seems to be out of the bounding box when saving the graph. ...
JavaCake's user avatar
  • 559
15 votes
3 answers
758 views

Use OptionValue to deal with nested options

OptionValue allows for recent versions of Mathematica (I think as from 7) to easily access optional parameters if they are explicitely given to a function or their default values otherwise. For big ...
faysou's user avatar
  • 11k
13 votes
4 answers
755 views

Calculate proportion of values for dates

At work, we were discussing when is it the best time to change to winter tires for bikes and/or cars. Using WeatherData[] and ...
FredrikD's user avatar
  • 1,868
13 votes
3 answers
12k 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: ...
Cedric H.'s user avatar
  • 696
13 votes
2 answers
22k views

Plot legend inside a Show [duplicate]

Possible Duplicate: Using PlotLegends with Show messes up the graphics I have created a composite plot function: I want to add a legend to it, however ...
Margus's user avatar
  • 1,987
12 votes
4 answers
3k views

Plot the minimum of a list of functions

This is my first question on any stack-exchange site and I'm also very new to using Mathematica software so please excuse/correct me if I mess up. I would like to take a list of functions of a single ...
Moodragonx's user avatar
11 votes
1 answer
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 ...
Mike Honeychurch's user avatar
10 votes
2 answers
7k views

Legends in combined Plot and ListPlot

I have a set of data ...
dbm's user avatar
  • 1,239
9 votes
4 answers
684 views

PlotLegend frame disappears during Export

Bug introduced in 11.2 or earlier and persisting through 12.0 I placed a framed PlotLegend and it works just fine in the notebook, but after exported to ...
Turgon's user avatar
  • 1,050

15 30 50 per page