Commit 8b9fc970 authored by Hafiz Emin Kosar's avatar Hafiz Emin Kosar
Browse files

- using fcns defined in ient_plots for plotting lroc in laplace demo

parent c49fb795
......@@ -26,7 +26,7 @@ class pzPoint():
class pzPlot():
pp = np.array([])
pz = np.array([])
roc = {'sigma': [0, 0], 'lleft': None, 'lright': None, 'hatch': None, 'inf': 12}
roc = {'sigma': [0, 0], 'plot': None, 'inf': 12}
qdelta = 0.1
qthresh = 0.1
fig = None
......@@ -291,20 +291,14 @@ class pzPlot():
self.roc['sigma'][0] = left
self.roc['sigma'][1] = right
xx = [self.roc['sigma'][0], self.roc['sigma'][1]]
xx = np.array([self.roc['sigma'][0], self.roc['sigma'][1]])
y1 = [-12, -12]
y2 = [12, 12]
if self.roc['lleft'] is None:
# TODO - Use ient_plot_lroc instead
self.roc['lleft'], = self.ax.plot([xx[0], xx[0]], [y1[0], y2[0]], ls="--", c="rwth-50")
self.roc['lright'], = self.ax.plot([xx[1], xx[1]], [y1[0], y2[0]], ls="--", c="rwth-50")
self.roc['hatch'] = self.ax.fill_between(xx, y1, y2, facecolor="none", hatch="\\", edgecolor="rwth-50", linewidth=0.0)
if self.roc['plot'] is None:
self.roc['plot'] = ient_plot_lroc(self.ax, xx)
else:
self.roc['lleft'].set_xdata([xx[0], xx[0]])
self.roc['lright'].set_xdata([xx[1], xx[1]])
self.roc['hatch'].remove()
self.roc['hatch'] = self.ax.fill_between(xx, y1, y2, facecolor="none", hatch="\\", edgecolor="rwth-50", linewidth=0.0)
self.roc['plot'] = ient_update_lroc(self.ax, self.roc['plot'], xx)
self.update_plot()
# path = pzp.roc['hatch'].get_paths()[0]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment