aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2016-11-07 16:12:01 +0100
committerThomas White <taw@physics.org>2016-11-07 16:12:01 +0100
commit3a5eacd9262964210d44118a407e30b21157dfa2 (patch)
tree03aeffc305240ee98a00b8a5a84f6c814432770f /src
parentc4a9925905abc1108b33057240b17913de2e671a (diff)
render_hkl: Show max value, and improve documentation for --scale-top
Diffstat (limited to 'src')
-rw-r--r--src/render_hkl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/render_hkl.c b/src/render_hkl.c
index b0dca996..3996814a 100644
--- a/src/render_hkl.c
+++ b/src/render_hkl.c
@@ -90,6 +90,7 @@ static void show_help(const char *s)
" rawcts : the raw number of measurements for the\n"
" reflection (no 'epsilon' correction).\n"
"\n"
+" --scale-top=<n> Manually set the top of the colour scale\n"
" --res-ring=<r> Draw a resolution ring at <r> Angstroms.\n"
" --highres=<r> Render spots only up to <r> Angstroms.\n"
" --no-axes Do not draw reciprocal space axes.\n"
@@ -477,7 +478,11 @@ static void render_za(UnitCell *cell, RefList *list,
/* Use manual scale top if specified */
if ( scale_top > 0.0 ) {
max_val = scale_top;
+ STATUS("Ignoring boost value (%f) because you used "
+ "--scale-top\n", boost);
+ boost = 1.0;
}
+ STATUS("Top of colour scale = %e\n", max_val/boost);
scale1 = ((double)wh-border) / (2.0*rmax);
scale2 = ((double)ht-border) / (2.0*rmax);