plot: color labels correctly

pull/665/head
nick black 4 years ago
parent 0cda775900
commit e3c14ed569
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -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

Loading…
Cancel
Save