I am plotting a change in ranking over periods, so it makes sense to use a reversed axis. However I find when I plot the line it gets clipped at rank number 1. I thought that cliponaxis might be a suitable workaround, or that i could use padding, but none seem to work.
Any ideas on how I can get it to display the full line width when it lies on the axis?
data = {โrankโ: [2,2,2,2,1,1,2,2,2],
โperiodโ: [โAโ,โBโ,โCโ,โDโ,โFโ,โGโ,โHโ,โIโ,โJโ]}
rank = pd.DataFrame(data)
range = 15
trace1 = go.Scatter(x = rank[โperiodโ], y = rank[โrankโ])
data = [trace1]
layout = dict(title = โClippingโ,
xaxis = dict(showgrid= False,
ticks = โoutsideโ,
tickcolor = โ#acadafโ,
hoverformat = โ.0fโ),
yaxis = dict(showgrid = False,
zeroline = True,
showline = False,
ticks = โโ,
tickcolor = โ#acadafโ,
range= [15,1],
tick0= 1,
dtick= 1,
hoverformat = โ.2fโ),
showlegend= False
)
fig = go.Figure(data=data,layout=layout)
iplot(fig, filename=โclipping exampleโ)