Is possible to call gnuplot script directly from maxima and let maxima only output necessary data in a file to be read by gnuplot?



Dear all,

I frequently find that I request features that are supported by gnuplot but
not by the maxima graphical interface (both plot2d/draw2d).

For example, I need to draw broken axes. Here is how it is done in gnuplot:
http://gnuplot-tricks.blogspot.co.uk/2010/06/broken-axis-once-more.html.
However, I did not find any way to draw broken axes using either plot2d nor
draw2d. (Is there a way?)

Because all my data is processed and stored in Maxima. I am wondering if it
is possible to feed my data in maxima directly to a manually written
gnuplot script:

1. Let maxima output the data required for drawing to a temp file,
2. And then call a gnuplot script written by myself within maxima to
process these data.

This is similar to what draw2d is doing. The difference is that I want to
write my own gnuplot script directly instead of depending on the
translation of draw2d or plot2d.

I know *gnuplot_preamble *and* user_preamble* allow user to write raw
gnuplot code. However, they do not allow you to modify the line with the
final plot command in gnuplot and I can not write multiple plot commands
either. This prevent me from implementing many required features, for
example broken axes.


Any help would be much appreciated.

Leo