Skip to content
Snippets Groups Projects
Commit 509efe2a authored by GUEZ Lionel's avatar GUEZ Lionel
Browse files

Also return axes

We need axes to add eddy contours.
parent 1929dc7a
No related branches found
No related tags found
No related merge requests found
...@@ -89,7 +89,7 @@ def plot_velocity(input_file, window, undefined, scale): ...@@ -89,7 +89,7 @@ def plot_velocity(input_file, window, undefined, scale):
ax.gridlines(draw_labels=True) ax.gridlines(draw_labels=True)
ax.coastlines() ax.coastlines()
return fig return fig, ax
if __name__ == "__main__": if __name__ == "__main__":
...@@ -124,7 +124,7 @@ if __name__ == "__main__": ...@@ -124,7 +124,7 @@ if __name__ == "__main__":
) )
parser.add_argument("input_file", help="NetCDF file containing velocity") parser.add_argument("input_file", help="NetCDF file containing velocity")
args = parser.parse_args() args = parser.parse_args()
fig = plot_velocity( fig, ax = plot_velocity(
args.input_file, args.window, args.undefined, args.scale args.input_file, args.window, args.undefined, args.scale
) )
......
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