[RkWard-devel] plot_options pointtype

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Sun Feb 4 13:04:53 UTC 2007


On Saturday 03 February 2007 04:34, Prasenjit Kapat wrote:
> In the PHP files of the discrete distributions, to set the default
> pointtype to "p", I am using the following code:
>
> 	$type = getRK_val ("plotoptions.pointtype.string");
> 	$type_tag = "";
> 	if ($type == "")  $type_tag = ", type=\"p\"";
> try (curve (<? echo ($fun); ?> (...), ...<? getRK
> ("plotoptions.code.printout"); ?><? echo ($type_tag); ?>))
>
> Of course "..." being the usual parameters. This works, but the "default"
> radio option in the pointtype tab will be misleading. Strictly speaking,
> the default type is "l" for curve(), but I am forcing it to be "p" even
> though the chosen radio option is "default". Of course I can mention this
> in the help file and get away.
>
> Any suggestions? Other option is to set allow_type to "false" and hardcode
> the type in the php files.

You could also do the following in the logic section:
<set id="plotoptions.pointtype" to="p">
thereby directly manipulating the standard option in the plot_options plugin.

Regards
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20070204/eecc4f09/attachment.sig>


More information about the Rkward-devel mailing list