Plotsol plots solutions with gnuplot.
plotsol [-h-i] [options ...] [cols] [ranges] FPMSPM |
options | : | -bw (-k name) (-eps eps-name) (-bl n) | ||||
cols | : | x:y[:z] | ||||
ranges | : | "xrange" ["yrange" ["zrange"]] | ||||
xyzrange | : | [a:b] | ||||
FPM | : | run ( pfile- qrunqfile ) | ||||
SPM | : | ( qrunqfile- ) lab ... |
-h | : | Display a usage message and exit with nonzero return value. | ||||
-i | : | Interactive, do not exit from gnuplot, but prompt for input. |
run | : | Read branch data and solutions of run with qualified run name run. | ||||
qrun | : | Read solutions of run with qualified run name qrun. | ||||
pfile | : | Read branch data from p.*-file file. | ||||
qfile | : | Read solutions from q.*-file file. | ||||
- | : | Read branch data (FPM) or solutions (SPM) from standard input. | ||||
lab | : | Plot solutions with labels lab ... |
-bw | : | Plot black and white. | ||||
-k name | : | Keep, save gnuplot file as name.gp and data files | ||||
as name*.dat, * = s, u, LP, BP, HB, PD, TR, UZ, RO. | ||||||
-eps eps-name | : | Plot to eps-file eps-name.eps instead of screen. | ||||
-bl n | : | # of Blank lines to separate solutions, | ||||
1=mesh data, 2=individual. |
Plotsol has two principal operation modes: a family plotting mode that is used if no solution labels are specified, and a solutions plotting mode that is used if solution labels are present on the command line.
plotsol 0:2:3 |
will plot the projection of a solution to its first two components (U(1),U(2)) versus the continuation parameter. Use filterbd to plot only part of a family, for example, in bash notation
filterbd run -l 1 $(splabs run PD 1 1) | plotsol 0:2:3 - run |
will plot a family of periodic solutions from the first labeled solution up to and including a solution at the first period-doubling bifurcation. If the parameter (column 0) is given for the , , or axis, then the family of solutions is plotted as a surface, otherwise, the solutions are plotted as individual curves. This behavior can be changed with the option -bl n; see section `Common switches/options' below.
Plotsol uses green lines for stable, red lines for unstable and various other colors for special solutions. If you prefer a more traditional form of stability plot, then the option -bw will create a black-and-white plot with solid lines for stable, dashed lines for unstable and different markers for special solutions.
plotsol run $(splabs run UZ) |
will plot all solutions at UZR output points from run with qualified run name run. By default a plot of column 3 versus column 2, that is, U(2) versus U(1) is shown. The selection of columns and plotting ranges follows gnuplot's syntax, that is,
plotsol 1:2 "[0:0.5]" |
will plot U(1) versus time over half a period.
The option -bl n will override any default interpretation of the plotting data to: mesh data if , or, individual curve data if . Default is except if the parameter (column 0) is given for one of the , or axis in family plotting mode, in which case the default is .
The option -eps eps-name will direct the output to the encapsulated postscript file eps-name.eps. Note that eps-name may contain sub-directories, but should not contain the extension .eps. The figures created by plotsol are intended for a quick overview over the solutions, but not for publication (except this one). However, the intermediate files created by plotsol may serve as a starting point for producing publishable pictures. If you specify the option -k name, then all intermediate files will be saved as files with a name matching name.*. Therefore, name should point to a sub-directory and should not contain any extension. For example,
plotsol -k bddata/pos -eps pics/pos |
will save all intermediate files to the sub-directory bddata, which must be created before calling plotsol. The most important file in this set is bddata/pos.gp, which is the gnuplot file containing instructions for creating the data-files and, more importantly, the eps-file pics/pos.eps. You should move this gnuplot file to a different location to prevent accidental overwriting, and edit it to accommodate your ideas. Simply call `gnuplot gnuplot-file' to update pics/pos.eps.
Plotsol returns 0 on success and 1 if an error occurred or the -h switch was given. Error checking is quite sloppy. Plotsol will fail if called with incorrect options/arguments, but the issued error message might not be terribly helpful.