Skip to content

Commit

Permalink
addressed #29
Browse files Browse the repository at this point in the history
  • Loading branch information
jirhiker committed Nov 28, 2018
1 parent a736017 commit df0a5fc
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions wellpy/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,10 +469,18 @@ def get_manual_measurements(self, name):
return xs, ys, ss

def plot_existing_continuous(self, name):
args = self.get_continuous(name)
args = self.get_continuous(name, qced=1)
if args:
xs, wts, hs, ahs, ds = args

plot = self._plots[DEPTH_TO_WATER]
plot.data.set_data(QC_DEPTH_X, xs)
plot.data.set_data(QC_DEPTH_Y, ds)

nargs = self.get_continuous(name)
if nargs:
xs, wts, hs, ahs, ds = nargs

plot = self._plots[DEPTH_TO_WATER]
plot.data.set_data(EXISTING_DEPTH_X, xs)
plot.data.set_data(EXISTING_DEPTH_Y, ds)
Expand Down Expand Up @@ -867,7 +875,7 @@ def _add_depth_to_water(self, padding, *args, **kw):
plot.y_axis.title = DEPTH_TO_WATER_TITLE

line = plot.plot((DEPTH_X, DEPTH_Y))[0]
line2 = plot.plot((EXISTING_DEPTH_X, EXISTING_DEPTH_Y), color='red')[0]
line2 = plot.plot((EXISTING_DEPTH_X, EXISTING_DEPTH_Y), color='blue')[0]
line3 = plot.plot((QC_DEPTH_X, QC_DEPTH_Y), color='green')[0]

dt = DataTool(plot=line, component=plot, normalize_time=False, use_date_str=True)
Expand Down

0 comments on commit df0a5fc

Please sign in to comment.