The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Legends for Data Plots
Replies: 1   Last Post: Feb 28, 2013 9:25 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Kevin J. McCann

Posts: 147
Registered: 12/7/04
Legends for Data Plots
Posted: Feb 27, 2013 3:03 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Here is a routine that I go through a lot. Take some data set, do a fit
or two, then plot the data along with the fit(s). Simple enough to do.
Now, how can I do a Legend that incorporates both the data (usually
points) and the fits (usually lines)? I can use PlotLegends to get the
lines bit, but I usually put the points on the Plot with Epilog.

One thing I thought of was to generate a dense Table of the fitting
function(s) and then use ListLinePlot along with Legends; however, here
all works, except the Legends entry for the data is a line and not a
point even though I used something like Joined->{False,True,True} to put
points down for the data and lines for the fits.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.