gnuplot cairo fix

fixes #18527