![insert a graph in texmacs insert a graph in texmacs](https://i.ytimg.com/vi/ff0H6w561z8/hqdefault.jpg)
I do not know how safe is the program now, but I hope that it is now difficult damaging your computer by placing “the wrong code” as an argument to the function-plotting macro.
![insert a graph in texmacs insert a graph in texmacs](https://1.bp.blogspot.com/-3q56xhZUlas/V2_8gLu1KNI/AAAAAAAANpg/Ysekm7XtCUA0Smo8b-Y1R_80wNxrVP6FACLcB/s1600/3.png)
In this module a restricted set of commands is available (I learnt about that from here: as far as I understand for the Guile 2/3 series there is a different method). It can now plot several functions in the same graph (but all in blue )įollowing up on a suggestion from Max, I am evaluating the arbitrary user-provided code that the program needs to plot the functions using a “safe module”. I have improved a bit the package for TeXmacs that plots functions that I placed at I would appreciate suggestions on this too.
#Insert a graph in texmacs how to#
In the github project there is a test file and its pdf output (test_plotting_Scheme.tm and test_plotting_Scheme.pdf).Ī thing that I would like to improve is the placement of the tick labels: I think that to place them right I should know how long each typeset string is, but I do not know how to get this information and to pass it onto the Scheme code. I would appreciate, though, if someone tries it and tells me whether it works on their computer.
![insert a graph in texmacs insert a graph in texmacs](https://www-fourier.univ-grenoble-alpes.fr/~parisse/giac/horner.png)
The code can be improved a lot and it is not well-documented (I am starting already to forget what I wrote in there) for example the plot parameters (at the moment they are the function and the range) could be supplied with a file rather than as parameters of the macro and of course writing the function to be plotted in standard notation would also be nice, but I do not have time for this immediately. I put it at, with short instructions on how to use it. I have written a small set of Scheme files to plot functions using the graphics of TeXmacs.