The image shows a python paragraph in an OML notebook. The image shows a python
script to compute and render the data in two histograms. In this example, the commands
import two Python module to compute and render the data in two histograms list1 and
list2. The script
is:
list1 = np.random.rand(10)*2.1
list2 = np.random.rand(10)*3.0
plt.subplot(1,2,1) # 1 line, 2 rows, index nr 1 (first position in the subplot)
plt.hist(list1)
plt.subplot(1, 2, 2) # 1 line, 2 rows, index nr 2 (second position in the subplot)
plt.hist(list2)
plt.show()