sddscontour multiple panels

Moderators: cyao, michael_borland

Post Reply
libov
Posts: 32
Joined: 30 May 2013, 07:14

sddscontour multiple panels

Post by libov » 12 Jan 2015, 04:49

Hi Michael,

I'm often using -layout=x,y with sddsplot in order to have several panels on one plot.
However I couldn't find this option for sddscontour. Is therefore only one panel per plot supported for sddscontour?

Thanks a lot!

Cheers,
Slava

michael_borland
Posts: 2008
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: sddscontour multiple panels

Post by michael_borland » 12 Jan 2015, 09:17

Slava,

sddscontour does support the layout option. It appears in the usage message, but is missing from the on-line manual. Sorry for the confusion.

--Michael

libov
Posts: 32
Joined: 30 May 2013, 07:14

Re: sddscontour multiple panels

Post by libov » 12 Jan 2015, 09:35

Hi Michael,

thanks for very fast response!
Does it also support plot requests from different files? With sddsplot I do the following:

sddsplot -thickness=$T -layout=2,2 -split=page -separate=page \
-col=s,"beta*" -legend $LINE $1.twi $MAGNETS -title='$gb$r-functions' -topTitle -end \
-col=s,"(enx,eny)" -legend $LINE $1.sig $MAGNETS -title='Trace-space emittance' -topTitle -tickSettings=yfactor=1e6 -end \
-col=s,"(St)" -legend $LINE $1.sig $MAGNETS -title='Bunch temporal RMS' -topTitle -tickSettings=yfactor=1e15 -end \
-col=s,"(Sx,Sy)" -legend $LINE $1.sig $MAGNETS -title='RMS beam size' -topTitle -tickSettings=yfactor=1e6

but something along these lines with sddscontour didn't work right away:

sddscontour -thickness=$T -layout=2,2 \
$1.tp.h2d -shade=100 -noLabels -end \
$1.xxp.h2d -shade=100 -noLabels -end \
$1.yyp.h2d -shade=100 -noLabels -end \
$1.xy.h2d -shade=100 -noLabels

What am I doing wrong? Thanks!

Slava

michael_borland
Posts: 2008
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: sddscontour multiple panels

Post by michael_borland » 12 Jan 2015, 09:38

Slava,

Alas, it doesn't support plot requests. You can combine all the data into a single file using sddscombine, which will work when the data has the same columns and parameters. Otherwise, we've sometimes used the ImageMagick tools or latex subfigure features to form a grid of contour plots.

--Michael

Post Reply