version 1.42, 2010/11/20 00:14:44
|
version 1.44, 2010/11/23 17:01:28
|
Line 329 sub plot_script {
|
Line 329 sub plot_script {
|
$label='C'.$Apache::functionplotresponse::counter; |
$label='C'.$Apache::functionplotresponse::counter; |
} |
} |
if ($fixed) { |
if ($fixed) { |
return "document.ggbApplet_$id.evalCommand('$label=Function[$function,$xmin,$xmax]')". |
return "document.ggbApplet_$id.evalCommand('$label=Function[$function,$xmin,$xmax]');\n". |
($visible?'':"document.ggbApplet.setLabelVisible('$label', false);"); |
($visible?'':"document.ggbApplet_$id.setLabelVisible('$label', false);\n"); |
} else { |
} else { |
return "document.ggbApplet_$id.evalCommand('y=$function')"; |
return "document.ggbApplet_$id.evalCommand('y=$function')"; |
} |
} |
Line 467 sub start_functionplotrule {
|
Line 467 sub start_functionplotrule {
|
['1','First derivative'], |
['1','First derivative'], |
['2','Second derivative'], |
['2','Second derivative'], |
['-1','Integral']],$token).'<br />'. |
['-1','Integral']],$token).'<br />'. |
&Apache::edit::text_arg('(Initial) x-value:','xinitial', |
&Apache::edit::text_arg('Initial x-value:','xinitial', |
$token,'8'). |
$token,'8'). |
&Apache::edit::select_or_text_arg('(Initial) x-value label:','xinitiallabel', |
&Apache::edit::select_or_text_arg('Initial x-value label:','xinitiallabel', |
[['start','Start of Plot']],$token,'8').'<br />'. |
[['start','Start of Plot'], |
|
['end','End of Plot']],$token,'8').'<br />'. |
|
|
&Apache::edit::text_arg('Optional final x-value for ranges:','xfinal', |
&Apache::edit::text_arg('Final x-value (optional):','xfinal', |
$token,'8'). |
$token,'8'). |
&Apache::edit::select_or_text_arg('Optional final x-value label:','xfinallabel', |
&Apache::edit::select_or_text_arg('Final x-value label (optional):','xfinallabel', |
[['end','End of Plot']],$token,'8').'<br />'. |
[['end','End of Plot']],$token,'8').'<br />'. |
&Apache::edit::text_arg('Optional minimum length for range:','minimumlength', |
&Apache::edit::text_arg('Minimum length for range (optional):','minimumlength', |
$token,'8'). |
$token,'8'). |
&Apache::edit::text_arg('Optional maximum length for range:','maximumlength', |
&Apache::edit::text_arg('Maximum length for range (optional):','maximumlength', |
$token,'8').'<br />'. |
$token,'8').'<br />'. |
&Apache::edit::select_or_text_arg(&mt('Relationship:'),'relationship', |
&Apache::edit::select_or_text_arg(&mt('Relationship:'),'relationship', |
[['eq','equal'], |
[['eq','equal'], |
Line 562 sub start_spline {
|
Line 563 sub start_spline {
|
&Apache::edit::text_arg('Index:','index', |
&Apache::edit::text_arg('Index:','index', |
$token,'4').' '. |
$token,'4').' '. |
&Apache::edit::select_arg('Order:','order', |
&Apache::edit::select_arg('Order:','order', |
['2','3','4','5','6','7','8','9'],$token).' '. |
['2','3','4','5','6','7','8'],$token).' '. |
&Apache::edit::text_arg('Initial x-value:','initx', |
&Apache::edit::text_arg('Initial x-value:','initx', |
$token,'4').' '. |
$token,'4').' '. |
&Apache::edit::text_arg('Initial y-value:','inity', |
&Apache::edit::text_arg('Initial y-value:','inity', |