python - Overlapping tick marks in inset plot matplotlib -


in older version of matplotlib (with winpython 3.4.2.3), if wanted include subplot inset, hid tickmarks below it: http://imgur.com/gsktcua,koqgek6#1

in upgraded version (with winpython 3.4.3.2), overlays both of axis tick marks: http://imgur.com/gsktcua,koqgek6#0

how revert old behavior, bottom plot's ticks hidden?

thanks!

here overview of plotting code:

fig=plt.figure(8, figsize=(8,7), dpi=300)  ax1 = fig.add_axes([0.1, 0.1, 0.8, 0.8], xscale='log', xlim=(5e-8, 1e-4), xlabel='...', ylabel='...',ylim=(-0.3,9)) # main axes ax2 = fig.add_axes([0.52, .52, .38,.38], xscale='log', xlim=(5e-8, 1e-4), xlabel='...', ylabel='...') # inset axes  # main figure ax1.plot(...)  # insert ax2.plot(...)  xticks = ax2.xaxis.get_major_ticks() print(xticks) xticks[5].label1.set_visible(false) #xticks[-2].label1.set_visible(false)  yticks = ax2.yaxis.get_major_ticks() print(yticks) yticks[-1].label1.set_visible(false)   #start3, end3 = ax2.get_ylim() ax2.yaxis.set_ticks([0,5,10]) 

if use keyword axisbg='white' in ax2.plot() works expected.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -