From: Gavin L. v. a. <we...@ma...> - 2007-11-20 15:14:05
|
Log Message: ----------- Make VectorField plotting honor setting of x_steps and y_steps. Modified Files: -------------- pg/lib: VectorField.pm Revision Data ------------- Index: VectorField.pm =================================================================== RCS file: /webwork/cvs/system/pg/lib/VectorField.pm,v retrieving revision 1.3 retrieving revision 1.4 diff -Llib/VectorField.pm -Llib/VectorField.pm -u -r1.3 -r1.4 --- lib/VectorField.pm +++ lib/VectorField.pm @@ -255,10 +255,10 @@ my $brush = new GD::Image($self->arrow_weight,$self->arrow_weight); my $brush_color = $brush->colorAllocate($g->im->rgb($arrow_color)); # transfer color $g->im->setBrush($brush); - my $x_steps = 10; + my $x_steps = $self->x_steps; my $xmin = $self->xmin; my $x_stepsize = ( $self->xmax - $self->xmin )/$x_steps; - my $y_steps = 10; + my $y_steps = $self->y_steps; my $ymin = $self->ymin; my $y_stepsize = ( $self->ymax - $self->ymin )/$y_steps; my $dt = $self->dt; |