I have a DataFrame that looks something like this:
df = [4, -1, 5, -32, 4, -32, -1]
I want to set the xticks like this:
tick_locs = [-30, -10, 0, 10, 30, 100, 300, 1000, 3000]
plt.xticks(tick_locs, tick_locs)
I can set the ticks to all positive, but that won't give me negative numbers on the x-axis:
tick_locs = [10, 30, 100, 300, 1000, 3000]
plt.xticks(tick_locs, tick_locs)
Any idea how to get the negative ticks marks?
P.S. The data is set up as logged, but the x-axis is set to show the actual numbers:
bin_edges = 10 ** np.arange(-0.1, np.log10(planes_df['ArrDelay'].max())+0.1, 0.1)
plt.hist(planes_df['ArrDelay'], bins = bin_edges)
plt.xscale('log')
tick_locs = [10, 30, 100, 300, 1000, 3000]
plt.xticks(tick_locs, tick_locs)

