Here is my dilemma.  I have written a homemade function grapher (which currently does only 3D function surface plots but will eventually do 2D function plots, 2D and 3D parametric curves/surfaces, and perhaps more).<br><br>
<a href="http://www.tlhiv.org/mpgraph/">http://www.tlhiv.org/mpgraph/</a> (Only tested in Mozilla Firefox currently)<br><br>The user provides a function, a domain (and optional range) as well as several other tweaks for the graph.  One of the tweaks is how the x,y, and z axes are labeled.  Everything is computed internally with Perl (CGI) and Perl simply writes a MetaPost file that stores everything (filled paths, stroked paths, labels, etc.).  The only thing that the user can "break" in the MetaPost file is providing a x,y,z axis label (using TeX code) that does not typeset.  Everything else is generated safely with the Perl script.<br>
<br>So, I would like to either<br><br>1) have MetaPost continue through compilation errors caused by the labels resulting in a nice picture without labels (which seems unlikely)<br><br>2) have some way to let the user know that a label has failed (which seems doable, I'm just not clear how to do this)<br>
<br>I would appreciate any ideas that anyone may have.<br><br>Troy<br>