I am trying to make a stairs plot for a credit ratings time series, but the plot I obtain is disconnected in between each steps. I would like the plot not to have disconnections when the credit rating goes up or down. See example below. I am trying to make a stairs plot for a credit