[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Texmacs-dev] Maxima inline plots
From: |
arisaka_110430 |
Subject: |
Re: [Texmacs-dev] Maxima inline plots |
Date: |
Sun, 6 Jan 2019 22:10:45 +0900 |
Dear Ederag,
Thanks for the comment.
2019/01/04, ederag <address@hidden> wrote:
> Thanks a lot, that's an improvement !
> (in particular waiting for the ps file to be written,
> instead of relying on times previously).
>
> It works fine on TeXmacs version 1.99.6.
Thanks for the info.
>
> I miss the gnuplot window that opened previously,
> allowing to use cursors and zoom, for instance.
> (it was not just there for the delay)
> Could it be an option ?
New plotting functions support only inline plots.
I think the basic plotting functions should use only one output terminal for
gnuplot.
If you want to get both inline plots and external plots at the same time,
you should program a new function in Maxima.
But this is the open-source project, so you can do what you want :)
> And sometimes there is an output, always false when it appears.
> (it is already the case with the previous texmacs-maxima.lisp)
> This is easy to silence with a $ suffix,
> but maybe that could be avoided altogether ?
You can get an arbitrary return value.
If you want to get the return value "true", you should add (return-from nil t)
as follows:
----------------------------------------
$ diff -u B/share/TeXmacs/plugins/maxima/lisp/texmacs-maxima.lisp
A/share/TeXmacs/plugins/maxima/lisp/texmacs-maxima.lisp
--- B/share/TeXmacs/plugins/maxima/lisp/texmacs-maxima.lisp 2018-11-27
02:02:50.000000000 +0900
+++ A/share/TeXmacs/plugins/maxima/lisp/texmacs-maxima.lisp 2019-01-06
05:22:04.000000000 +0900
@@ -263,6 +263,7 @@
(sleep 0.1)
(go start))))))
(funcall '$ps_out (plot-file-path tmp-name)))
+ (return-from nil t)
finish))))
;; same as plot2d, but also create an inline figure
@@ -349,6 +350,7 @@
(sleep 0.1)
(go start))))))
(funcall '$ps_out (concatenate 'string tmp-name ".eps")))
+ (return-from nil t)
finish))))
;; same as draw, but also create an inline figure
----------------------------------------
Thanks,
Tomio Arisaka