From 3a5eacd9262964210d44118a407e30b21157dfa2 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 7 Nov 2016 16:12:01 +0100 Subject: render_hkl: Show max value, and improve documentation for --scale-top --- doc/man/render_hkl.1 | 5 +++++ src/render_hkl.c | 5 +++++ 2 files changed, 10 insertions(+) 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 @@ -92,6 +92,11 @@ The raw numbers of observations of the reflections, without performing the corre .PP 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 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= Manually set the top of the colour scale\n" " --res-ring= Draw a resolution ring at Angstroms.\n" " --highres= Render spots only up to 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); -- cgit v1.2.3