After further reading, the problem may come from the way the gnuplot pslatex 
driver handles the layers of background texts/ vector graphics/ and foreground 
texts (cf. a "closed-won't fix" bug in gnuplot dating back to 2016. https://
sourceforge.net/p/gnuplot/bugs/1820/?page=0).

Here is another patch where ~/maxoutXXX.gnuplot contains the three lines
"set obj 1 rectangle behind from screen 0.0,0.0 to screen 1.0,1.0"
"set obj 1 fc rgb '#ffffff' fs solid 1.0 noborder "
and 
"set tics front"

In that case, the axis annotations are drawn twice (behind and in front of the 
rectangle), but without the need of testing terminal $epslatex_standalone any 
more.

Best regards.
*** gnuplot.lisp_bak	2018-05-18 11:32:33.229304308 +0200
--- gnuplot.lisp	2018-05-18 16:13:30.345171657 +0200
***************
*** 2813,2818 ****
--- 2813,2819 ----
              (if (equal (get-option '$proportional_axes) '$none)
                 (format nil "set size noratio~%")
                 (format nil "set size ratio -1~%") )
+             (format nil "set tics front~%")
              ; this let statement is to prevent error messages from gnuplot when
              ; the amplitude of the ranges equals zero
              (let ((xi (first  (get-option '$xrange)))
***************
*** 3390,3397 ****
                       (incf nilcounter)))
                  (format cmdstorage "~%set size ~a, ~a~%" size1 size2)
                  (format cmdstorage "set origin ~a, ~a~%" origin1 origin2)
!                 (when (and (not *multiplot-is-active*)
!                            (not (member (get-option '$terminal) '($epslatex $epslatex_standalone))))
                    (format cmdstorage "set obj 1 rectangle behind from screen ~a,~a to screen ~a,~a~%" 
                                       origin1 origin2 (+ origin1 size1 ) (+ origin2 size2)))  ))
          (setf is1stobj t
--- 3391,3397 ----
                       (incf nilcounter)))
                  (format cmdstorage "~%set size ~a, ~a~%" size1 size2)
                  (format cmdstorage "set origin ~a, ~a~%" origin1 origin2)
!                 (when (not *multiplot-is-active*)
                    (format cmdstorage "set obj 1 rectangle behind from screen ~a,~a to screen ~a,~a~%" 
                                       origin1 origin2 (+ origin1 size1 ) (+ origin2 size2)))  ))
          (setf is1stobj t

Reply via email to