Colormap log
Solved using: void colorbar_label( PLINT axis, PLFLT value, char *label, PLINT length, PLPointer data ) { PLFLT * inputdata = (PLFLT *) data; snprintf( label, length, "%.2f", inputdata[(int)value] ); } .... const char *axis_opts[] = { "uwxno", }; PLFLT shedge[] = {0.4,1,2,4,10,20,40,100}; num_values[0] = 8; values[0] = new PLFLT[ns]; for (int i=0;i<ns;i++){ values[0][i] = i; } pls->colorbar( &colorbar_width, &colorbar_height, PL_COLORBAR_SHADE | PL_COLORBAR_SHADE_LABEL | PL_COLORBAR_BACKGROUND, PL_POSITION_BOTTOM...
Is there any way to create a color bar with the same spacing but with labels not value spaced equally? (picture as example)