PnL Plot error

Hi, I'm on section 4 unit 4 of the Statistical Arbitrage Python course.  All notebook cells are working correctly apart from the last cell.  When I try to generate the PnL plot I get the below error message:

 

UserWarning: Attempting to set identical left==right results
in singular transformations; automatically expanding.
left=735452.0, right=735452.0
  'left=%s, right=%s') % (left, right))

Can you help please?  I'm not sure what I'm doing wrong.  

Hi Neil,



I ran the code on the Quantra portal and it is working fine. If you are using it on your local system, could you please tell us about the data you are using.



I was doing some research on the warning you are getting and I found that this occurs when the maximum and minimum y values are the same for the particular time series.



https://github.com/linkedin/naarad/issues/114