aboutsummaryrefslogtreecommitdiff
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
parentc4a9925905abc1108b33057240b17913de2e671a (diff)
render_hkl: Show max value, and improve documentation for --scale-top
-rw-r--r--doc/man/render_hkl.15
-rw-r--r--src/render_hkl.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/doc/man/render_hkl.1 b/doc/man/render_hkl.1
index d78e3343..eadbba34 100644
--- a/doc/man/render_hkl.1
+++ b/doc/man/render_hkl.1
@@ -93,6 +93,11 @@ The raw numbers of observations of the reflections, without performing the corre
The default is \fB--weighting=I\fR.
.PD 0
+.IP \fB--scale-top=\fIn\fR
+.PD
+Force the top of the colour scale to correspond to a value of \fIn\fR. Any value you give for \fB--boost\fR will be ignored.
+
+.PD 0
.IP \fB--colour-key\fR
.PD
Write the selected colour scale out to 'key.pdf' in the current directory.
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);