[GIS] Hide meridians and parallel lines from plot and add TICK marks in matplotlib

matplotlibmatplotlib-basemap

I want to hide the meridian and parallel lines from my plot and add the tick marks.
I could remove the lines by setting linewidth=0, but how to add the tick marks with each Lat-Lon label.

meridians = np.arange(70.,90.,0.5)
m.drawmeridians(meridians,labels=[0,0,0,1],fontsize=9, linewidth=0)

Best Answer

ax.set_xticks([0,1,2]) worked in my case.

You might also want to try suppress_ticks = False, see https://stackoverflow.com/questions/18363987/basemap-how-to-remove-actual-lat-lon-lines-while-keeping-the-ticks-on-the-axis

Related Question