Subject: [newbie] problem producing pslatex output-file
From: Hugo Coolens
Date: Wed, 13 Jun 2012 20:53:00 +0200
On Wed, 13 Jun 2012, Jaime Villate wrote:
> On 06/12/2012 08:56 PM, Hugo Coolens wrote:
>> I think the following message did not get through because of problems
>> with the maxima-list, so allow me to repost it:
>>
>>
>> On Sun, 10 Jun 2012, Hugo Coolens wrote:
>>
>>> I'm trying to produce a pslatex-file of a graph which plots fine on the
>>> screen but I don't get any file. This is the command I'm using:
>>> wxplot2d([db],[f,20,2e6],[logx],[gnuplot_term,'pslatex],[gnuplot_preamble,"set
>>> mxtics 10; set mytics 5;set grid xtics mxtics ytics
>>> mytics;"],[gnuplot_out_file,"acl0.tex"]);
>>>
>>> I'm using wxMaxima 0.8.5 and Gnuplot 4.4 patch level 2
> Hi,
> I can't help you with wxMaxima, and I don't know the db expression you
> used, but I tried the command:
>
> plot2d
> ([1/f],[f,20,2e6],[logx],[gnuplot_term,'pslatex],[gnuplot_preamble,"set
> mxtics 10; set mytics 5;set grid xtics mxtics ytics
> mytics;"],[gnuplot_out_file,"acl0.tex"]);
>
> and it worked fine in the current git version of Maxima, with Gnuplot 4.4.
Thanks for your answer, I noticed two things:
1. changing wxplot2d to plot2d as you did in your command now produces a
indeed a file acl0.tex
2. the file acl0.tex is incomplete, the following ending lines are missing:
\end{picture}%
\endgroup
\endinput
I think this is a bug in maxima as I get the same error with maxima 5.22.1
and with wxmaxima 0.8.5
regards,
hugo
>
> The following command might help you when you are trying to find a
> problem with a plot:
> set_plot_option([plot_format,gnuplot])$
> that way, after each plotting command a file maxout.gnuplot should be
> created. You can then work
> with gnuplot interactively and use the command
> load "maxout.gnuplot"
>
> If there is any problem with the file, gnuplot should give you an
> explanation of the error.
>
> Regards,
> Jaime
>
>
>