Skip to content
Snippets Groups Projects
Commit a3e64dc6 authored by Martin Schrön's avatar Martin Schrön
Browse files

Added grid option for add_latlon_ticks

parent e8dc71ef
No related branches found
No related tags found
No related merge requests found
......@@ -399,7 +399,7 @@ def guess_ticks_from_lim(a, b, steps=None):
A[(A>=a) & (A<=b)]
return A
def add_latlon_ticks(ax, steps=0.01):
def add_latlon_ticks(ax, steps=0.01, grid=True):
# x_1 = round(float(a)/steps)*steps
# x_2 = round(float(b)/steps)*steps
......@@ -415,7 +415,8 @@ def add_latlon_ticks(ax, steps=0.01):
ax.set_yticklabels(["%.3f°" % y for y in ys])
ax.set_xlabel(None)#'Longitude (°E)')
ax.set_ylabel(None)#'Latitude (°N)')
ax.grid(color='k', alpha=0.1)
if grid:
ax.grid(color='k', alpha=0.1)
def add_circle(ax, x, y, radius=1,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment