From 65de3133245e38ea9244590af43d1a99f948ff8d Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 6 Oct 2010 17:29:47 +0200 Subject: compare_hkl: More useful resolution plot --- src/compare_hkl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/compare_hkl.c') diff --git a/src/compare_hkl.c b/src/compare_hkl.c index d1b1340f..096d1eb5 100644 --- a/src/compare_hkl.c +++ b/src/compare_hkl.c @@ -29,7 +29,7 @@ /* Number of bins for plot of resolution shells */ -#define NBINS (50) +#define NBINS (10) static void show_help(const char *s) @@ -85,7 +85,7 @@ static void plot_shells(const double *ref1, const double *ref2, it = get_item(items, i); h = it->h; k = it->k; l = it->l; - d = 0.5/resolution(cell, h, k, l); + d = resolution(cell, h, k, l) * 2.0; if ( d > rmax ) rmax = d; if ( d < rmin ) rmin = d; @@ -105,7 +105,7 @@ static void plot_shells(const double *ref1, const double *ref2, it = get_item(items, i); h = it->h; k = it->k; l = it->l; - d = 0.5/resolution(cell, h, k, l); + d = resolution(cell, h, k, l) * 2.0; bin = (d-rmin)/rstep; if ( bin == NBINS ) bin = NBINS-1; -- cgit v1.2.3