I am having issues with using bargap=0 to create a histogram. Here is how it looks without any usage of bargap.
The look with using bargap=0 is the same like without it. However, the graph changes when I use bargap=0.1
So, apparently bargap works, but not when removing the lines between the bars. It is important to mention that the initial graph (first one) contains some bars borders not shown, and some are shown. To those who are shown, their width between each other is not constant, too.
Here is my code.
fig = px.histogram(plot_data, x=plot_data.index, y=plot_data.columns, color_discrete_sequence=colors) fig.update_layout( title='Active developers over time', yaxis_title_text='Number of active developers', plot_bgcolor="white", bargap=0 ) fig.update_traces(nbinsx=50, selector=dict(type='histogram')) fig.show()
What is the problem here? Is it a bug or I am missing something in my code?
I also tried using marker_line_width = 0 and bargroupgap=0, but ended up with the same result as the first picture.