Re: Showapplied to a Plotand a ListPlot??
- To: mathgroup at smc.vnet.net
- Subject: [mg41068] Re: Showapplied to a Plotand a ListPlot??
- From: Bill Rowe <listuser at earthlink.net>
- Date: Wed, 30 Apr 2003 04:26:30 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
On 4/29/03 at 5:24 AM, rob at piovere.com (1.156) wrote: >a = Plot[f[x], {x, 0, 1}]; >b=ListPlot[data,Epilog\[Rule]{RGBColor[1,0,0],PointSize[0.025],Point/@ >data}] Change b to be as follows: b=ListPlot[data,PlotStyle\[Rule]{RGBColor[1,0,0],PointSize[0.025]}] and your problem will be solved. Your version of b plots the data points twice, once as small black dots, i.e. the ListPlot[data] and a second time as large red dots, i.e., the Epilog directive. Apparently Show combines ListPlot[data] with Plot[f[x],{x,0,1}] What I did was have the data plotted once and used the plot style directive to set the size and color of the plotted points. An alternative, would be to use your Epilog in the Plot command and avoid the use of Show altogether.