From: Eduardo O. <edu...@gm...> - 2022-11-20 03:29:11
|
Hi Robert and all, I am still trying to digest all the hints in this thread... https://sourceforge.net/p/maxima/mailman/message/37737109/ First problem: setting the terminal to "tikz" doesn't work for me. I am running this version of Maxima, Maxima branch_5_46_base_555_g6fa201ff5 that I git-pull'ed and compiled a few minutes ago, and a gnuplot from 2020... but I followed the instructions here http://www.gnuplot.info/docs/latex_demo.pdf to check if my gnuplot supports tikz, and the answer seems to be yes - I ran "set terminal tikz" in a gnuplot REPL and got: gnuplot> set terminal tikz Terminal type is now 'tikz' Options are 'latex nopreamble color nostandalone nogparrows notikzarrows nogppoints picenvironment nooriginreset bitmap rgbimage noclip notightboundingbox noexternalimages ' Here's what I tried to do in Maxima (inspired by the file share/draw/draw_gnuplot.dem): F(x,y) := 2*x^2 - x*y - y^2; level(z) := implicit(F(x,y)=z, x,-2,2, y,-2,2); clevel(clr,z) := [color=clr, level(z)]; clevels : [clevel(red, -2), clevel(orange,-1), clevel(green, 0), clevel(blue, 2), clevel(violet, 5)]; draw2d(clevels); draw2d(file_name="/tmp/myplot", terminal=eps, clevels); /* ^ These two "draw2d"s work as expected */ draw2d(file_name="/tmp/myplot", terminal=tikz, clevels); /* ^ Fails with: "draw: illegal terminal specification: tikz" */ set_plot_option ([gnuplot_term, "tikz"]); set_plot_option ([gnuplot_out_file, "/tmp/myplot.tikz"]); draw2d(clevels); /* ^ The options are ignored */ set_plot_option ([gnuplot_term, "eps"]); set_plot_option ([gnuplot_out_file, "/tmp/myplot2.eps"]); draw2d(clevels); /* ^ The options are ignored */ I also tried to grep the source tree of Maxima for "tikz" case-insensitively, and got no matches... Thanks in advance! Eduardo Ochs http://angg.twu.net/eev-maxima.html |