October 2018
Beginner to intermediate
676 pages
18h 30m
English
The following code block plots three graphs, one on a linear scale and the other two on a logarithmic scale. The two logarithmic graphs also demonstrate how the physical size and the data scale can be adjusted:
fig, (ax1, ax2, ax3) = plt.subplots(1, 3)
ax1.plot([0.1, 5, 10, 500], [0.01, 25, 100, 10000], "x-")ax1.set(title="Linear Scale", xlim=(1e1, 1e3), ylim=(1e2, 1e4))
ax2.set(title="adjustable = box", xscale="log", yscale="log", xlim= (1e1, 1e3), ylim=(1e2, 1e3), aspect=2)
ax3.plot([0.1, ...
Read now
Unlock full access