Python plotly: remove empty spaces from bar chart -
i'm plotting bar chart python library plotly
, there's whitespace between bars don't want.
import plotly plotly import graph_objs go xvals = [u'12.09', u'12.10', u'12.11', u'12.12', u'12.13', u'13.01', u'13.02'] yvals = [115, 69, 165, 98, 157, 126, 60] data = [go.bar(x=xvals,y=yvals)] plotly.offline.plot(data)
produces this:
how can bunch bars , rid of white space?
try making graph logarithmic giving xaxis in layout equal 'log'
xaxis=dict(
type="log"
)
Comments
Post a Comment