Courses / Physics I
Computer Science

Visualising scientific computation

Physics I 163 words Free to read

Visualising Scientific Data

Visualisation turns raw computational output into physical insight, revealing patterns that flat numbers hide.

import matplotlib.pyplot as plt
import numpy as np
t = np.linspace(0, 2*np.pi, 200)
plt.plot(t, np.sin(t), label="sin(t)")
plt.xlabel("Time (s)"); plt.ylabel("Amplitude")
plt.legend(); plt.grid(True); plt.show()

Essential plot types for physics

PlotUse Case
Line plotTime series, trajectories
ScatterExperimental data points
HistogramMeasurement distributions
Contour2D scalar fields
VectorForce / velocity fields
A wall of numbers is silent; the same numbers, plotted, draw a circle

Best Practices & Pitfalls

A clear plot communicates science cleanly, while bad practices distort the truth.

Common Pitfall: Axis choices manufacture or hide stories. Truncated y-axes exaggerate trends, and log scales linearise exponentials. Always read the axes before believing any plot.

Practise this lesson

The explanation above is free to read. The graded practice for this lesson lives in the Tryals app.

14practice questions
2interactive scenes

Computer Science