October 2018
Beginner to intermediate
676 pages
18h 30m
English
The following code block plots two graphs to demonstrate axes and blended co-ordinate systems:
np.random.seed(19681211)plt.style.use('ggplot')
fig = plt.figure(figsize=(10,5))ax1 = fig.add_subplot(121)
x, y = 50*np.random.rand(2, 500)ax1.plot(x, y, 'cH')
ellipse = patches.Ellipse((0.5, 0.5), 0.6, 0.3, transform=ax1.transAxes, facecolor='blue', alpha=0.3)ax1.add_patch(ellipse)# remove the comment below to check if Ellipse remains at the ...
Read now
Unlock full access