From 7c528a4bfdf71a4be50df8ba1e86d3433dac2186 Mon Sep 17 00:00:00 2001 From: Darius Arnold Date: Fri, 15 Sep 2017 16:48:08 +0200 Subject: [PATCH] [change] jackknife and wadati plot show one instead of two points in legend --- pylot/core/pick/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pylot/core/pick/utils.py b/pylot/core/pick/utils.py index 3cafc490..ff67055f 100644 --- a/pylot/core/pick/utils.py +++ b/pylot/core/pick/utils.py @@ -690,7 +690,7 @@ def wadaticheck(pickdic, dttolerance, iplot=0, fig_dict=None): ax.plot(checkedPpicks, wdfit2, 'g', label='Wadati 2') ax.set_title('Wadati-Diagram, %d S-P Times, Vp/Vs(raw)=%5.2f,' \ 'Vp/Vs(checked)=%5.2f' % (len(SPtimes), vpvsr, cvpvsr)) - ax.legend(loc=1) + ax.legend(loc=1, numpoints=1) else: ax.set_title('Wadati-Diagram, %d S-P Times' % len(SPtimes)) @@ -921,7 +921,7 @@ def checkPonsets(pickdic, dttolerance, jackfactor=5, iplot=0, fig_dict=None): ax.set_xlabel('Number of P Picks') ax.set_ylabel('Onset Time [s] from 1.1.1970') - ax.legend(loc=1) + ax.legend(loc=1, numpoints=1) ax.set_title('Jackknifing and Median Tests on P Onsets') if plt_flag: fig.show()