Next Previous Up Contents
Next: plot2time: Draws a time plot
Up: plot2corner: Draws a matrix of plane plots
Previous: Usage

### B.18.2 Examples

Here are some examples of using `plot2corner`:

    stilts plot2corner in=:attractor:100000,rampe
                       nvar=3 x1=x x2=y x3=z
                       layer_m=mark

  Plots a grid of scatter plots for a 3-d dataset. This presents three plots: X vs. Y, X vs. Z, and Y vs. Z in the lower triangle of the grid.

    stilts plot2corner in=:attractor:100000,rampe
                       nvar=3 x1=x x2=y x3=z
                       matrixformat=full
                       layer_m=mark layer_h=histogram

  Same as the previous example, but also presents histograms (one each for X, Y and Z) along the diagonal. Additionally, the `matrixformat=full` parameter means that the full grid (with redundant plots also for Y vs. X, Z vs. X, and Z vs. Y) are plotted above the diagonal.

    stilts plot2corner in=rrlyrae.fits
                       icmd_A='select best_classification==\"RRAB\"'
                       icmd_C='select best_classification==\"RRC\"'
                       color_A=red color_C=cyan
                       nvar=4 x1=peak_to_peak_g x2=p1 x3=r21_g x4=phi21_g x4min=3
                       layer_A_m=mark layer_C_m=mark
                       layer_A_k=kde layer_C_k=kde smooth_A_k=-50 smooth_C_k=-50
                       layer_f=contour color_f=light_grey smooth_f=10 nlevel_f=6
                       leglabel_A=RRAB leglabel_C=RRC legseq=_A_m,_C_m legpos=1,1

  In this example there are two separate input datasets (different selections from the same input table) and four quantities to plot. One of the coordinates is restricted in range using the `x4min` parameter. As well as the `mark` and `kde` layers, an additional `contour` layer (of the whole input table) is overplotted on the scatter plot grid elements.

Next Previous Up Contents
Next: plot2time: Draws a time plot
Up: plot2corner: Draws a matrix of plane plots
Previous: Usage

STILTS - Starlink Tables Infrastructure Library Tool Set
Starlink User Note256
STILTS web page: http://www.starlink.ac.uk/stilts/
Author email: m.b.taylor@bristol.ac.uk
Mailing list: topcat-user@jiscmail.ac.uk