RE: Show graphics command
- To: mathgroup at smc.vnet.net
- Subject: [mg40382] RE: [mg40347] Show graphics command
- From: David.Annetts at csiro.au
- Date: Thu, 3 Apr 2003 01:44:06 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Hi Nathan, > 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) Why not try p1 = ListPlot[dta, DisplayFunction->Identity]; p2 = Plot[f[x], DisplayFunction->Identity]; p3 = Show[p1, p2, DisplayFunction->$DisplayFunction]; You might also want to try looking at the help for DisplayTogether and DisplayTogetherArray ... Regards, Dave. ========================================== Dr. David Annetts EM Modelling Analyst CSIRO DEM Tel: +612 9490 5416 North Ryde Fax: +612 9490 5467 Australia David.Annetts at csiro.au ===========================================