Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

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: 146
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.

Thanks,

Kevin




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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.