Re: Show graphics command
- To: mathgroup at smc.vnet.net
- Subject: [mg40392] Re: Show graphics command
- From: Daniel Nettels <Daniel.Nettels at unifr.ch>
- Date: Fri, 4 Apr 2003 01:20:56 -0500 (EST)
- References: <b6eb3u$ao3$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi Nathan, try Show[ListPlot[data,DisplayFunction->Identity], Plot[f[x],{x,0,Xo},DisplayFunction->Identity], DisplayFunction->$DisplayFunction] Daniel Nettels Nathan Moore wrote: >The list operations have been very useful. > >Here's a pet peeve. Often when I combine several graphics objects with >the show command I get a bunch of extraneous plots. Suppose I have a list >of {x,y} pairs (named "data") and a fit function f[x] and I want to show >them together. The easiest way to do this is with the command, > >Show[ListPlot[data],Plot[f[x],{x,0,Xo}] > >When I execute this I get 3 plots, ListPlot[data], the Plot[f[x]], and >then the tro combined. How can I have the front end suppress the first >two plots? (this "error" is especially annoying when I'm plotting 7 or 8 >lists together) > >Nathan Moore > > > >