> I've tried to understand the Maxima and gnuplot documentation as to how
> to get a plot with one curve as a dashed line but to no avail. For
> example, suppose I plot a function and its asymptote,
>
> plot2d([1/(x-1),[parametric,1,t,[t,-10,10]]],[x,-2,4],[y,-10,10])
>
> but want to make the asymptote dashed. How do I accomplish this?
>
> The Maxima manual sends me to gnuplot documentation but I can't figure
> out that documentation enough to get a dashed line.
>
> Thanks for any pointers, Bob
Dear Robert,
You may find the following usefull link about gnuplot
http://t16web.lanl.gov/Kawano/gnuplot/misc4-e.html
I would expect the following to work in your case
plot2d([1/(x-1),[parametric,1,t,[t,-10,10]]],[x,-2,4],[y,-10,10],
[gnuplot_out_file,"plot.eps"],[gnuplot_preamble, "set palette gray"],
[gnuplot_curve_styles, ["w l lt 2"]]);
but it fails. It draws with green in postscript terminal (as for default
terminal) instead expected black dashed line. Pehaps. maxima does not include
all the features of gnuplot. I'd like to be wrong about it.
rgds,
valery