Re: How smooth graphs?
- To: mathgroup at smc.vnet.net
- Subject: [mg61399] Re: [mg61385] How smooth graphs?
- From: "Virgilio, Vincent - SSD" <Vincent.Virgilio at itt.com>
- Date: Tue, 18 Oct 2005 02:44:42 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
The symptom ("jaggedness", "staircasing", a.k.a pixellation) sounds like aliasing. The following antialiasing code might help: http://members.wri.com/jeffb/visualization/aa.shtml Vince Virgilio -----Original Message----- From: Murray Eisenberg [mailto:murray at math.umass.edu] To: mathgroup at smc.vnet.net Subject: [mg61399] [mg61385] How smooth graphs? A colleague, L.J. Moffitt, asked me how the graphs produced by the following code might be smoothed so as to avoid the jaggedness, especially the "staircasing". (This is going to be projected, and at a typical projection resolution of 1024 x 768, it looks even worse.) I tried all sorts of ploys, like drastically increasing PlotPoints and PlotDivision; lowering the Thickness in PlotStyle; and even breaking up the domain into two subintervals, one where the graph is more level and the other where the graph is rising rapidly. Nothing seemed to help. p[x_, L_] := (50.*L)/((1000. - 1.*x)*(-9.025*^8 + L + 1000.*x^2)) <<Graphics`Animation` Animate[ Plot[p[x,L],{x, 0, 950}, PlotStyle->{AbsoluteThickness[3]}, PlotRange->{.1,.7}, AxesLabel->{"Inspection Rate","Robustness"}, PlotPoints->10000, PlotDivision->50, AxesStyle->{RGBColor[0,0,1],Thickness[0.02]}, ImageSize->600, Background->RGBColor[.1,.2,.7]], {L,1000000000., 1000000000.+700000000., 10000000}] Any suggestions that I might pass along to him? -- Murray Eisenberg murray at math.umass.edu Mathematics & Statistics Dept. Lederle Graduate Research Tower phone 413 549-1020 (H) University of Massachusetts 413 545-2859 (W) 710 North Pleasant Street fax 413 545-1801 Amherst, MA 01003-9305 ************************************ This e-mail and any files transmitted with it are proprietary and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender. Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of ITT Industries, Inc. The recipient should check this e-mail and any attachments for the presence of viruses. ITT Industries accepts no liability for any damage caused by any virus transmitted by this e-mail. ************************************