Commit 8220c4e9 authored by Anthony Larcher's avatar Anthony Larcher
Browse files

savefig

parent 36aee1e6
......@@ -725,7 +725,7 @@ class DetPlot:
linewidth=plot_args[2])
mpl.legend()
if(matplotlib.get_backend() == 'agg'):
mpl.save(self.__title__ + '.png')
mpl.savefig(self.__title__ + '.png')
def plot_rocch_det(self, idx=0, style='color', target_prior=0.001, plot_args=''):
"""Plots a DET curve using the ROCCH.
......@@ -766,7 +766,7 @@ class DetPlot:
linewidth=plot_args[2])
mpl.legend()
if matplotlib.get_backend() == 'agg':
mpl.save(self.__title__ + '.png')
mpl.savefig(self.__title__ + '.png')
def plot_mindcf_point(self, target_prior, idx=0, plot_args='ok',
legend_string=''):
......@@ -794,7 +794,7 @@ class DetPlot:
else:
fig = mpl.plot(__probit__(pfa), __probit__(pmiss), plot_args)
if(matplotlib.get_backend() == 'agg'):
mpl.save(self.__title__ + '.png')
mpl.savefig(self.__title__ + '.png')
def plot_DR30_fa(self, idx=0, plot_args=((0, 0, 0), '--', 1),
legend_string=''):
......
......@@ -1087,6 +1087,8 @@
<span class="n">gsv_statserver</span> <span class="o">=</span> <span class="n">StatServer</span><span class="p">()</span>
<span class="n">gsv_statserver</span><span class="o">.</span><span class="n">modelset</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">modelset</span>
<span class="n">gsv_statserver</span><span class="o">.</span><span class="n">segset</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">segset</span>
<span class="n">gsv_statserver</span><span class="o">.</span><span class="n">start</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">start</span>
<span class="n">gsv_statserver</span><span class="o">.</span><span class="n">stop</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">stop</span>
<span class="n">gsv_statserver</span><span class="o">.</span><span class="n">stat0</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">ones</span><span class="p">((</span><span class="bp">self</span><span class="o">.</span><span class="n">segset</span><span class="o">.</span> <span class="n">shape</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="mi">1</span><span class="p">))</span>
<span class="n">index_map</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">repeat</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">arange</span><span class="p">(</span><span class="n">ubm</span><span class="o">.</span><span class="n">distrib_nb</span><span class="p">()),</span> <span class="n">ubm</span><span class="o">.</span><span class="n">dim</span><span class="p">())</span>
......
This diff is collapsed.
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