[metapost] Plotting a Gaussian Distribution in MetaPost

Kevin Liu metapost.5.mezzopiano at spamgourmet.com
Thu Nov 8 23:07:45 CET 2007


Hi,

I am currently learning MetaPost, which, thanks to the great tutorials, is going quite well. I am mostly using it to plot graphs of functions, which has also been going quite well so far. However, I am experiencing significant difficulties in plotting a normal distribution - The only output I have been able to achieve was quite confusing. 
The graph package handles the task quite well, but it has limitations of its own. I would prefer an implementation directly in MetaPost to allow for maximum customisation.

Do you know of any solutions to this problem? Could this be a symptom of the very small numbers involved? Should I compute the numerical data and try to import it into MetaPost? Do you know of any bézier approximations of the gaussian distribution? I would be very grateful if you could help me out with this problem.

Thank you very much for your help


Kevin
_______________________________________________________________________
Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate
kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220



More information about the metapost mailing list