'How to plot gamma distribution with k and theta as parameters in python?

I am trying to plot(using matplotlib) the pdf of gamma distribution with parameters k and theta. However, all functions I found on the net, such as scipy.stat.gamma or sympy.stats.Gamma, are using a and scale as parameters. Does anyone know how I can use those functions? Or is there any way I can get the pdf of gamma function of specific k and theta in python?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source