WeBWorK Problems

Border in init_graph

Border in init_graph

by Edwin Flórez -
Number of replies: 2
Hello WeBWorkers,

Is there any special reason "init_graph" in PGgraphmacros.pl put a border to all dynamic images?  If not, how can I remove it?.

Edwin F.
In reply to Edwin Flórez

Re: Border in init_graph

by Dick Lane -
Lines 486-487 of .../pg/lib/WWPlot.pm seem relevant.

# Put a black frame around the picture
$im->rectangle(0,0,$size[0]-1,$size[1]-1,$colors{'black'});

If I comment-out the executable line and restart my server, a dynamically-generated image is shown without a black frame (similar to standard display of a static image).

Question 1: is this line in WWPlot.pm the sole control for display of a frame for a dynamic image?

Question 2: Is there an undocumented option [? to what ?] which toggles display of a frame?

Question 3:  If there is not a current option to toggle display of a frame, would it be backward-compatible to introduce such an option for v2.11.1?
In reply to Dick Lane

Re: Border in init_graph

by Edwin Flórez -
Thanks, you got it. I guess they made in that way because some graphs looks weird in problems like: 

Library/Rochester/setAlgebra16FunctionGraphs/ns1_1_2.pg

and is better to highlight the image.