Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/m/plot/plot_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from processmesh import processmesh
from plot_gridded import plot_gridded
from plot_landsat import plot_landsat
from plot_none import plot_none


def plot_manager(md, options, fig, axgrid, gridindex):
Expand Down Expand Up @@ -77,9 +78,11 @@ def plot_manager(md, options, fig, axgrid, gridindex):
plot_vertexnumbering(md, options, fig, axgrid, gridindex)
return
elif data == 'none':
print('no data provided to plot (TODO: write plot_none.py)')
applyoptions(md, [], options, fig, axgrid, gridindex)
return
#print('no data provided to plot (TODO: write plot_none.py)')
#applyoptions(md, [], options, fig, axgrid, gridindex)
if not options.exist('overlay'):
plot_none(md, options, fig, axgrid, gridindex)
return
else:
print(("WARNING: '%s' is not implemented or is not a valid string for option 'data'" % data))
# }}}
Expand Down
23 changes: 23 additions & 0 deletions src/m/plot/plot_none.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env python3
import matplotlib.pyplot as plt

def plot_none(md, options, fig, axgrid, gridindex):
'''
PLOT_NONE - plot nothing, just apply options

Usage:
plot_none(md,options,fig,axgrid,gridindex)

See also: ??
'''
return

options=options.addfielddefault('colorbar','none')
options=options.addfielddefault('map','none')
#FIXME: What do you mean 'axis" in matlab? Check 'axis' option in python.
#options=options.addfielddefault('axis','equal')

#TODO: overlay option in "plot_none.m"

#apply options
applyoptions(md,[],options);
Loading