Hello, does anybody have an idea how to set the x-axis
> scale to logarithmic on an errorbar plot? In other words,
> is there any way to plot data with error bars while having
> x-axis scale logarithmic?
> Many thanks in advance for any useful suggestions.
On any type of plot where the data on a given axis is strictly
positive, you should be able to set the scale to 'log'. Just make
sure that the axis limits are also strictly positive. Eg
ax.set_xlim(0.01, 10)
ax.set_xscale('log')
With errorbars, you have to be careful, because if the error limits on
one of your positive datapoints extend into non-positive territory,
you'll get an error with log scaling.
JDH