diff --git a/lib/Plots/Data.pm b/lib/Plots/Data.pm index 2f6a07c383..35c10f7f24 100644 --- a/lib/Plots/Data.pm +++ b/lib/Plots/Data.pm @@ -225,7 +225,7 @@ sub set_function { $f->{"x$key"} = $options{$key}; delete $options{$key}; } - return unless $f->{Fy}; + return unless $f->{Fy} ne ''; $f->{Fx} = $self->get_math_object($f->{Fx}, $f->{xvar}, $f->{yvar}); $f->{Fy} = $self->get_math_object($f->{Fy}, $f->{xvar}, $f->{yvar});