[RkWard-devel] plot_options pointtype

Prasenjit Kapat kapatp at gmail.com
Sat Feb 3 03:34:47 UTC 2007


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. 

Regards
PK




More information about the Rkward-devel mailing list