How do I make graphs of (easy) functions like those in textbooks?
- To: mathgroup at smc.vnet.net
- Subject: [mg40411] How do I make graphs of (easy) functions like those in textbooks?
- From: a_cjones at hotmail.com (cdj)
- Date: Fri, 4 Apr 2003 01:25:49 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Hi, I'm sure that questions like this have been asked/answered before, but I'm not sure what keywords to search on to find them... some obvious candidates didn't get me anywhere... Take, for example, f(x)= (x-3)^2 - 1 I'd greatly appreciate seeing the Mathematica code that does the following: (a) Plots the parabola itself (duh). (b) Does so on a a gridded piece of "graph paper", with the axes substantially darker than the rest of the grid. (c) Both x and y axes are numbered at the units: 0, +-1, ..., +-10. The numbers should be to the left of the y axis, and below the x axis. The origin doesn't have to be labelled, if it's ugly, or too hard. (d) The y axis is labelled "y" at the top of the graph, x axis is labelled "x" on the right. (e) Puts little arrows on the 4 tips of the axes (signifying that they continue arbitrarily far). (f) The following points are explicitly represented with reasonable-sized dots: (0,8), (2, 0), (3,-1), (4,0), and (6,8). (g) It would be nice, but not essential, if the tips of the parabola itself had little arrows (again signifying that it continues upward with increasing abs(x) values. Sorry for all the conditions - just trying to be somewhat precise about what I meant by graphs "like those in textbooks". Once I get the code for this, I'm sure I can modify it to other similar tasks... Can all these desiderata be obtained in *one* Mathematica graph? Or is there another graphics/graphing program that is better-suited to such tasks? Thanks a bunch for any help, cdj
- Follow-Ups:
- Re: How do I make graphs of (easy) functions like those in textbooks?
- From: Dr Bob <majort@cox-internet.com>
- Re: How do I make graphs of (easy) functions like those in textbooks?