Next: Logarithmic projection Up: Non-map Projections Previous: Non-map Projections

##
Cartesian Linear Projection (-–Jx -–JX)

Selection of this transformation will result in a linear scaling of the input coordinates. The projection is defined by stating

scale in inches/unit (-Jx) or axis length in inches (-JX)

If the y-scale or y-axis length is different from that of the x-axis (which is most often the case), separate the two scales (or lengths) by a slash, e.g., -–Jx0.1i/0.5i or -JX8i/5i. Thus, our data sets will plot as shown in Figure 5.1.

Figure 5.1: Linear transformation of coordinates

The complete commands given to produce this plot were

    psxy -R0/100/0/10 -JX3i/1.5i -Ba20f10g10/a2f1g2WSne -W1t3_3:0p -P -K sqrt.d >! GMT_linear.ps
    psxy -R -JX -St0.075i -G200 -W -O sqrt.d10 >> GMT_linear.ps

Normally, the user's x-values will increase to the right and the y-values will increase upwards. It should be noted that in many situations it is desirable to have the direction of positive coordinates be reversed. For example, when plotting depth on the y-axis it makes more sense to have the positive direction downwards. All that is required to reverse the sense of positive direction is to supply a negative scale (or axis length).

Next: Logarithmic projection Up: Non-map Projections Previous: Non-map Projections