I'm working through "The Student's Introduction to Mathematica, Second Edition" and am on the "Working with Data" section of chapter 3.
The image below shows the steps I followed from this section as well as a couple of additional steps I took in an attempt to troubleshoot the problem that I encountered. The exercise uses a list of points plotted in three different ways and combines/overlays these plots using the Show function. The first plot is a ListPlot which is stored in the scatterplot variable. The other two plots are created using the Plot function inline in the Show function along with the scatterplot variable. The original ListPlot function displays as expected but the Show function returns a "Show::gcomb: Could not combine the graphics objects in Show[..." error when the scatterplot variable is included. The Show function excluding the scatterplot variable displays as expected but the Show function with just the scatterplot variable returns a "Show::gtype: Symbol is not a type of graphics" error.
I have two questions:
1) What is causing these errors? I believe that the book was written for v6 and I am using v10 so I'm wondering if they're due to changes between versions.
2) Is there a way to show the "type" of variables or otherwise peer behind the curtains when troubleshooting in Mathematica? I've been using the documentation quite a bit and I've noticed that it can be somewhat vague about "types" when compared to some of the strongly-typed languages that I've used.
Thanks
P.S. I've attached a copy of the notebook in case someone wants to try this.
Attachments: