Commit 1a522457 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

modified shift distribution plots

- plot_shift_distribution(): added RMSE in pixel units; reversed legend order

updated __version__
parent 2cf54471
......@@ -9,7 +9,7 @@ from .components import utilities
from .components import geometry
__author__ = 'Daniel Scheffler'
__version__= '2017-04-27_01'
__version__= '2017-04-28_01'
......@@ -449,8 +449,10 @@ class Tie_Point_Grid(object):
plt.text(xlim[1]-(xlim[1]/20),-ylim[1]+(ylim[1]/20), 'RMSE: %s m' % np.round(rmse, 2), ha='right',
va='bottom', fontsize=fontsize, bbox=dict(facecolor='w', pad=None, alpha=0.8))
xlim, ylim = ax.get_xlim(), ax.get_ylim()
'RMSE: %s m / %s px' %(np.round(rmse, 2), np.round(rmse/self.shift.xgsd, 2)),
ha='right', va='bottom', fontsize=fontsize, bbox=dict(facecolor='w', pad=None, alpha=0.8))
# add grid and increase linewidth of middle line
......@@ -466,7 +468,10 @@ class Tie_Point_Grid(object):
[tick.label.set_fontsize(fontsize) for tick in ax.xaxis.get_major_ticks()]
[tick.label.set_fontsize(fontsize) for tick in ax.yaxis.get_major_ticks()]
# add legend with labels in the right order
handles, labels = ax.get_legend_handles_labels()
plt.legend(reversed(handles), reversed(labels), fontsize=fontsize, loc='upper right')
ax.set_title(title, fontsize=fontsize)
plt.xlabel('x-shift [%s]' % 'meters' if unit == 'm' else 'pixels', fontsize=fontsize)
plt.ylabel('y-shift [%s]' % 'meters' if unit == 'm' else 'pixels', fontsize=fontsize)
Markdown is supported
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