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:

enter image description here

how can bunch bars , rid of white space?

try making graph logarithmic giving xaxis in layout equal 'log'

xaxis=dict(
type="log"
)


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -