<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Am 07.11.2017 um 12:50 schrieb Michael
Van Canneyt via Lazarus:<br>
</div>
<blockquote type="cite"
cite="mid:alpine.DEB.2.20.1711071231330.5172@home.telenet.be">
I see that I missed to commit a patch to plotpanel, because here
sin(x) works. I have too many unfinished patches in my source tree
:/
<br>
<br>
Should I still commit it, or it is not necessary any more ?
<br>
</blockquote>
<br>
Please commit it. I think we should fix the shortcomings of
plotpanel. There were already a few bugs which I fixed - look at the
svn commit notes. I'm just against adding too many new features
which just will be appetizers for even more new features.<br>
<br>
In the meantime I put the TExpressionSeries into the standard
TAChart package where everything works fine (in order to remove the
dependence on fpexprparser, maybe I'll move it to a separate package
later once I know how to get the registration for the series editor
done). Here are short instruction how to use it<br>
<ul>
<li>Add a TChart on the form</li>
<li>Double-click the chart</li>
<li>In the "Edit series" dialog select "+ Add" and "Math
expression series" at the very bottom.<br>
</li>
<li>In the Object Tree, select the newly added serie,
Chart1ExpressionSeries1<br>
</li>
<li>Enter the function term, e.g. 'sin(x)*exp(-0.1x)'<br>
</li>
<li>Define the x range for which the function will be plotted:
Select "Range", enter the minimum and maximum x values, e.g.
XMin = 0, XMax = 50, set UseXMin and UseMax to true in order to
apply this axis range.<br>
</li>
<li>Set AutoExtentY to true in order to auto-scale the y axis.</li>
<li>Voila - see the attached screenshot (which is taken at
designtime, of course).<br>
<img src="cid:part1.3E0FE999.8A7C82F1@freenet.de" alt=""></li>
</ul>
<p>Michael, the expression panel allows to add identifiers at
designtime. I do understand this for variables, and, in fact, this
is great to parameterize the function or to use natural constants.
But the IdentifierType can also be itFunctionCallBack,
itFunctionHandler, itFunctionNode. Can you explain how these
should be handled in practice?<br>
</p>
<p><br>
</p>
</body>
</html>