Page 1 of 1

reproduce dinver-> vew->dispersion figure with command lines

Posted: Wed Jun 28, 2023 7:42 am
by fabioca
Dear Marc,
I am essentially trying to reproduce the figure created by the graphical interface dinver--> view-->dispersion with command lines.

My problem is that I do not know how to plot the experimental dispersion curve saved in the target file on top of the modeled dispcurves saved in the report file.

in my script, I have a row:
gpdcreport $out -pR 0 -m 0.1 | figue -mc -m Rayl.mkup -e $outnam -f jpeg

that automatically creates a plot for the best-fit dispcurves (being $out the report file and $outnam the jpg figure). I can load an plot separately the target dispcurve, e.g.:

gptarget E -disp 0 $outb | figue -c -m Rayl.mkup

but I do not know ho to plot on top of the first figure. is there an easy way?
Thank you

Re: reproduce dinver-> vew->dispersion figure with command lines

Posted: Fri Jun 30, 2023 8:40 am
by admin
Hi,

Add an option to export the target curve as a .layer (mkup is useless because of the export):

Code: Select all

gptarget E -disp 0 $outb | figue -c -e Rayl.layer
Then, add this layer to your plot:

Code: Select all

gpdcreport $out -pR 0 -m 0.1 | figue -mc -m Rayl.mkup -append-layer Rayl.layer -e $outnam -f jpeg

Code: Select all

gpviewdcreport $out -m 0.1 -dispersion -target  $outb -e $outnam -f jpeg
Does a similar job. The format option is mandatory for all formats except .page. The format is not deduced from the file extension like for other commands (figue, gpviewmax,...). gpviewdcreport is not using the same export facility which is now fixed for next releases.

I did not check, any feed back is welcome.

Re: reproduce dinver-> vew->dispersion figure with command lines

Posted: Tue Jul 04, 2023 2:30 pm
by fabioca
Thank you very much Marc. Perfect. The script works fine!