You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all thank you for the wonderful package, my question/issue is that I am trying to modify the automatic tick marks that bax gives me to have tick marks on the top as well and have tried messing around with a number of different things but can only ever modify the left and bottom axes tick marks. Is there a way to modify the top(and to a lesser extent the right) tick marks and if you also know how can you add minor ticks?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi Ben,
First of all thank you for the wonderful package, my question/issue is that I am trying to modify the automatic tick marks that bax gives me to have tick marks on the top as well and have tried messing around with a number of different things but can only ever modify the left and bottom axes tick marks. Is there a way to modify the top(and to a lesser extent the right) tick marks and if you also know how can you add minor ticks?
Thank you so much for your time.
Gregg
Sample of my code:
fig = plt.figure(figsize=(5, 5))
sps1, sps2, sps3 = GridSpec(3,1)
bax = brokenaxes(xlims=((15, 47.9), (53.55, 70)), wspace=0.05, despine=False, subplot_spec=sps1)
bax.plot(df2['x'],df2['Y'], 'o', markersize=3, color='black', label='Data')
bax.set_ylim([-1700, 10000])
bax.set_yticklabels([])
bax = brokenaxes(xlims=((15, 47.9), (53.55, 70)), wspace=0.05, despine=False, subplot_spec=sps2)
bax.plot(df1['x'],df1['Y'], 'o', markersize=3, color='black', label='Data')
bax.set_ylim([-1500, 16000])
bax.set_yticklabels([])
bax = brokenaxes(xlims=((15, 47.9), (53.55, 70)), wspace=0.05, despine=False, subplot_spec=sps3)
bax.plot(df['x'],df['Y'], 'o', markersize=3, color='black', label='Data')
bax.set_ylim([-1500, 10000])
bax.set_yticklabels([])
Beta Was this translation helpful? Give feedback.
All reactions