Skip to content
Advertisement

Tag: z-order

Display order of a stacked line chart

I am using stacked line plots that sometimes have 0 values, and the default plot puts the color of the zero line on top of the actual increasing line. Is there any way to swap the zorder of a stacked line plot? Please see the below simple example: pd.DataFrame([[0,1,1],[1,0,2],[1,0,1],[2,0,3]],columns=[“A”,”B”,”C”]).plot(stacked=True) Answer I found a solution to this problem for myself by

Advertisement