A Two-Sample Q-Q Plot compares the levels reached at corresponding places in two distributions. The horizontal coordinate comes from one sample and the vertical coordinate from the other. A point can represent two medians, two lower-quarter values or two values near the upper tail. What ties the coordinates together is their relative position within their own sample. Their original record numbers, timestamps and positions in the input file can be entirely different.
Consider two independently recorded sets of travel times, each collected with the same start and stop definitions. For two equal-size samples, the NIST handbook describes the basic construction as sorting each set and plotting the values rank against rank. If the shortest time in set A is four units and the shortest in B is five, the first point can sit at four horizontally and five vertically. The middle pair comes from the middle ranks, and the upper pair comes from the largest values. Sorting each column separately preserves the distribution of times in that column while discarding any original row correspondence.
The first figure uses five matched quantile levels. Its midpoint can be inspected by reading along the middle row, where the values chosen from A and B become coordinates of one point. The stated quantile level tells the reader why those two values were paired. The plotted axes, by contrast, remain in units of the measured quantity. A point at ten on the horizontal scale and twelve on the vertical scale does not refer to the tenth and twelfth percentiles.

For data on the same physical scale, a point on the line y = x has equal values at that quantile level. A point above it means the vertical-axis sample reaches a larger value at the matched level. Below it, the vertical-axis sample reaches a smaller one. The equality line looks like a 45-degree diagonal when the chart uses the same visual scale on the two axes. Its definition remains y = x even when the chart area is wider than it is tall.
A cloud that follows the line closely suggests similar sampled quantiles over the range shown. Finite samples from one population still vary, especially near their ends. The line is a useful visual reference and the deviations show where the samples differ. A fitted trend line has a different purpose: it describes the plotted points themselves. If every vertical value equals the horizontal value plus two, a fitted line can pass through every point while every point remains two units above equality.
The second figure gives three examples in the same coordinate scale. A consistent upward offset illustrates a location shift. A steeper line, drawn crossing equality near the center, illustrates a change in spread around a shared center. In that second case the lower quantiles of B are below those of A and the upper quantiles are above. The difference therefore grows in opposite directions away from the center. A shift alone would move the points the same distance in one direction.
The third example follows equality through the center and bends upward at the large values. Such a shape directs attention to the upper end of the distributions. In a travel-time report, that is where unusually long durations would appear. The plot by itself gives no cause for their appearance. A small number of upper observations or a change in what the samples contain can also affect the end of a plot, so the quantile level, sample size and measurement definition help explain how much evidence that shape represents.

When one set has more observations, pairing first with first and second with second all the way to the smaller set's end would eventually compare different proportions. NIST describes a common approach that takes levels associated with the smaller set and interpolates quantiles of the larger set at those levels. A resulting coordinate can fall between two recorded values. The two coordinates still represent the same quantile level. Statsmodels documents an implementation detail worth preserving when reading an exported plot. Its two-sample function puts the longer series on the horizontal axis when the sizes differ, regardless of argument order.
This matters when a report labels a change as upward. Swapping the sample axes changes which sample is above equality. The reference-line setting matters as well, because the software can draw an equality line, a fitted line or no line. Where the question concerns the signed disagreement of two gauges on each individual part, the original pair identifiers are central. A two-sample distribution comparison answers how the two sets of values are arranged across their ranks.
See the industrial data methods collection and technical article directory. The primary references are the NIST handbook on quantile-quantile plots and the Statsmodels two-sample plot documentation.