@@ -1697,7 +1697,7 @@ def _checkpoint(self, flags=''):
16971697 # a data-receiving mode. I'm careful to avoid this situation, but bugs in
16981698 # this module and/or in gnuplot itself can make this happen
16991699
1700- self ._logEvent ("Trying to read from gnuplot" )
1700+ self ._logEvent ("Trying to read byte from gnuplot" )
17011701
17021702 rlist ,wlist ,xlist = select .select ([self .gnuplotProcess .stderr ],[], [],
17031703 None if waitforever else 15 )
@@ -1723,6 +1723,8 @@ def _checkpoint(self, flags=''):
17231723 raise GnuplotlibError (
17241724 r'''Gnuplot process no longer responding. This shouldn't happen... Is your X connection working?''' )
17251725
1726+ self ._logEvent (f"Read string from gnuplot: '{ fromerr } '" )
1727+
17261728 fromerr = re .search (r'\s*(.*?)\s*{}$' .format (checkpoint ), fromerr , re .M + re .S ).group (1 )
17271729
17281730 warningre = re .compile (r'^\s*(.*?(?:warning|undefined).*?)\s*$' , re .M + re .I )
@@ -1834,7 +1836,7 @@ def _sendCurve(self, curve):
18341836 np .savetxt (pipe ,
18351837 nps .glue (* curve ['_data' ], axis = - 2 ).astype (np .float64 ,copy = False ),
18361838 '%s' )
1837- pipe . write ( b "\n e\n " )
1839+ self . _printGnuplotPipe ( "\n e\n " )
18381840 else :
18391841 # Previously I was doing this:
18401842 # np.savetxt( pipe,
@@ -1869,12 +1871,12 @@ def write_element(e):
18691871 pipe .write (b'\n ' )
18701872
18711873
1872- pipe . write ( b "e\n " )
1874+ self . _printGnuplotPipe ( "e\n " )
18731875
18741876 else :
18751877 nps .mv (nps .cat (* curve ['_data' ]), 0 , - 1 ).astype (np .float64 ,copy = False ).tofile (pipe )
18761878
1877- self ._logEvent ("Sent the data to child process" )
1879+ self ._logEvent ("Sent the data to child process (not logged) " )
18781880
18791881
18801882 def _getPlotCmd (self , curves , subplotOptions ):
0 commit comments