Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Commit

Permalink
Fixed bug spotted by Rob G's test, triggered by bug fix in pcomb
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregungory committed Jan 15, 2018
1 parent 31b6afc commit 7b8a6d4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/px/falsecolor.pl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/perl -w
# RCSid $Id: falsecolor.pl,v 2.12 2017/09/25 18:48:11 greg Exp $
# RCSid $Id: falsecolor.pl,v 2.13 2018/01/15 22:35:34 greg Exp $

use warnings;
use strict;
Expand Down Expand Up @@ -328,10 +328,11 @@

# Legend: Create the background colours
$cmd = qq[pcomb $pc0args];
$cmd .= qq[ -e "v=(y+.5-$sheight)/(yres/(1+1.5/$ndivs));;vleft=v;vright=v"];
$cmd .= qq[ -x $legwidth -y $vlegheight];
$cmd .= qq[ -e "v=(y+.5-$sheight)/(yres/(1+1.5/$ndivs));vleft=v;vright=v"];
$cmd .= qq[ -e "vbelow=(y-.5-$sheight)/(yres/(1+1.5/$ndivs));vabove=(y+1.5-$sheight)/(yres/(1+1.5/$ndivs))"];
$cmd .= qq[ -e "ra=0;ga=0;ba=0;"];
$cmd .= qq[ -x $legwidth -y $vlegheight > $scolpic];
$cmd .= qq[ > $scolpic];
system $cmd;
} else {
# Create dummy colour scale and legend labels so we don't
Expand Down

0 comments on commit 7b8a6d4

Please sign in to comment.