October 2018
Beginner to intermediate
676 pages
18h 30m
English
The following code block plots the required charts and saves them into a PDF document as three separate pages. All these plots have been used in earlier chapters, so the details of plotting each of them are already familiar to you. Here, the focus is how these charts are arranged to save in various pages of the PDF document:
np.random.seed(19681211)
def Plot_Polar(): plt.figure(figsize=(6, 4)) N = 250 r = 10 * np.random.rand(N) theta = 2 * np.pi * np.random.rand(N) area = r**2 colors = theta ax1 = plt.subplot(121, projection='polar') ax1.scatter(theta, r, c=colors, s=area, cmap='plasma', alpha=0.6) ax1.set_title('Polar Plot', color='m', size=15, ...Read now
Unlock full access