plot: color labels correctly

This commit is contained in:
nick black 2020-06-01 09:00:46 -04:00
parent 0cda775900
commit e3c14ed569
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -121,6 +121,10 @@ class ncppplot {
if(labelaxisd){
// show the *top* of each interval range
for(int y = 0 ; y < dimy ; ++y){
uint64_t channels = 0;
calc_gradient_channels(&channels, maxchannel, maxchannel,
minchannel, minchannel, y, 0, dimy, dimx);
ncplane_set_channels(ncp, channels);
char buf[PREFIXSTRLEN + 1];
if(exponentiali){
if(y == dimy - 1){ // we cheat on the top row to exactly match maxy