'Lomb Scargle periodogram Windows function for stellar time series

I am using Lomb Scargle periodogram for determining periodicities in the data. Using the data shown in the following paper The data used for analysis and in particular the attached image.

Periodogram of the timeseries along with window function at the bottom panel

How does one reproduce the lower panel using 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