I have a set of data that I wanna plot as a bar plot. But the interesting points are only between a certain range, which I actually wanna plot. If I manipulate the data by subtracting a certain value, I can plot the right range, but the labels on the y-axis are wrong. I couldn’t find a solution to my problem. Either changing the y-labeling to a custom one or plotting the certain range in the first place. The two pictures show my problem
If you want to simply restrict the range of your plot to a pre-defined one, you can use fig.update_yaxes(range=[ymin, ymax]), where ymin and ymax are values you can select. Bar charts will by default start at zero as it is a good practice, but in your specific case this is not needed.