Yes, you can use matplotlib to plot the PDF and CDF. Example code:
import numpy as np
import matplotlib.pyplot as plt
from scipy.stats import rayleigh
sigma = 2.0
x = np.linspace(0, 10, 1000)
pdf = rayleigh.pdf(x, scale=sigma)
cdf = rayleigh.cdf(x, scale=sigma)
plt.figure(figsize=(10, 4))
plt.subplot(1, 2, 1)
plt.plot(x, pdf, label='PDF')
plt.xlabel('x')
plt.ylabel('Probability Density')
plt.title('Rayleigh PDF')
plt.legend()
plt.subplot(1, 2, 2)
plt.plot(x, cdf, label='CDF')
plt.xlabel('x')
plt.ylabel('Cumulative Probability')
plt.title('Rayleigh CDF')
plt.legend()
plt.tight_layout()
plt.show()