You are specifying linear axes for three laboratory plots. A major tick is a principal reference mark on an axis, usually accompanied by a numerical label. For each axis below, place major ticks at equal intervals, with both the minimum and maximum included as ticks.
Complete the tick spacing and total number of major ticks. Enter exact integers. Each spacing uses the unit named in its row; do not include units in the answer cells. The interval count is the number of gaps between consecutive major ticks.
Unlock full course notes by signing up
Relabelling a pressure axis in kilopascals
A student logs the absolute pressure in a tank once per second. The array p holds values in pascals, from 101325 Pa up to 245000 Pa, and t holds times in seconds. The student wants the y-axis to read in kilopascals so the tick labels are short. Which pair of calls produces a correctly annotated axis?
Placing a label on a spectrum in axes coordinates
A spectrometer plot has its x-axis set with ax.set_xlim(200, 700), in nanometres, on a linear scale. You want to place a text label directly above the 532 nm laser line using textcoords="axes fraction". What horizontal axes fraction should the text have? Give your answer as a dimensionless number to three decimal places.
Keeping a reduced plot readable
A cooling plot like the preview below is prepared at a source width of 180 mm, with axis text set to 14.0 pt. A report places the entire exported image at a width of 90 mm. Everything scales uniformly, including the text, and the image's pixel count stays unchanged during placement.
The report requires axis text of at least 9.0 pt and a raster image with at least 300 ppi at the final printed width. Use the exact conversion 1 inch=25.4 mm1\ \text{inch}=25.4\ \text{mm}1 inch=25.4 mm.
Find the final size of the existing axis text in pt, to one decimal place; the minimum source text size in pt needed to satisfy the text requirement, to one decimal place; and the minimum exported image width in pixels, as a whole number. Round a minimum pixel count upward if necessary.
Annotating features on a logarithmic frequency axis
A Bode magnitude plot of a low-pass filter uses a logarithmic frequency axis set with ax.set_xscale("log") and ax.set_xlim(10, 100000), in hertz. You want to annotate two features using axes coordinates: a mains-hum spike at 300 Hz and a resonance at 50 kHz. Find the number of decades the axis spans, as an integer, and the horizontal axes fraction of each feature, each as a dimensionless number to three decimal places.