From: SourceForge.net <no...@so...> - 2006-06-10 08:00:25
|
Bugs item #1502633, was opened at 2006-06-08 04:43 Message generated for change (Comment added) made by van_nek You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1502633&group_id=4933 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Xmaxima Group: None Status: Open Resolution: None Priority: 5 Submitted By: Robert Dodier (robert_dodier) Assigned to: Nobody/Anonymous (nobody) Summary: Gnuplot dumb terminal output not captured by xmaxima Initial Comment: In Xmaxima (5.9.3cvs / GCL 2.6.7, SBCL 0.9.9, Clisp 2.34 / Linux, and *maybe* also 5.9.3 / GCL 2.6.7 / Win XP), Gnuplot dumb terminal output is not captured. plot2d (sin(x), [x, 0, %pi], [gnuplot_term, dumb]); shows nothing in Xmaxima, and on Linux at least, the xterm from which Xmaxima was launched shows the output. Running Maxima from an xterm shows the dumb terminal output in the xterm as expected (an ascii art sine wave). Dunno for sure if this same problem is exhibited by Xmaxima 5.9.3 / GCL 2.6.7 / Win XP. The dumb terminal output goes missing, but I don't know if that is the same bug or a different one, because dumb terminal output is lost in a Maxima command prompt window. Fixing the gnuplot dumb terminal output is no pressing problem, but I'm pretty sure that the problem is that gnuplot is writing an output stream which is not redirected by Xmaxima; that seems like a somewhat more general problem. ---------------------------------------------------------------------- >Comment By: Volker van Nek (van_nek) Date: 2006-06-10 10:00 Message: Logged In: YES user_id=1269745 Here Robert, here is what i have written to the mailing list yesterday. this is specially for Windows. 1. terminal 'dumb' already works in Windows console maxima plot2d( sin(x), [x,0,2*%pi], [gnuplot_term,dumb], [gnuplot_out_file, "D:/test.txt"] ); --> dumb plot Remark: The dumb plot character is $, with using gnuplot directly it is a *. Reason? 2. with xmaxima system("type D:/test.txt"); --> NO dumb plot (from the formerly created file) system("type D:\\test.txt"); --> NO dumb plot 3. with console maxima and xmaxima printfile("D:/test.txt"); --> dumb plot 4. plot.lisp lines 1122 ... ($dumb (if gnuplot-out-file ;;($system (format nil $viewtext_command view-file)) ($printfile view-file) ;; fix ;;($system (format nil "~a \"~a\"" $gnuplot_command file)))))) ;; should be replaced by (merror ... ) (print (format nil "~a \"~a\"" $gnuplot_command file)))))) ;; for testing which WORKS in console maxima and xmaxima plot2d( sin(x), [x,0,2*%pi], [gnuplot_term,dumb], [gnuplot_out_file, "D:/test.txt"] ); --> dumb plot 5. plot2d( sin(x), [x,0,2*%pi], [gnuplot_term,dumb] ); --> "wgnuplot \"C:/Dokumente und Einstellungen/van Nek/maxout.gnuplot\"" system("wgnuplot \"C:/Dokumente und Einstellungen/van Nek/maxout.gnuplot\""); doesn't work, because maxout.gnuplot misses a line for the out file (set out 'myfile') Suggestion: If [gnuplot_term,dumb] is set, there should be an error message if there is no output file. Volker ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1502633&group_id=4933 |