I am finding that if I user "interval", the showUnit parameter works, but if I use "values", showUnit is not respected.
Code: Select all
label='Full Disk ({} um) Conus ({} um) Meso ({} um)'.format((fd[0]['satband-band-label'].split())[0],
(conus[0]['satband-band-label'].split())[0],(meso[0]['satband-band-label'].split())[0])
formatStuff=[Matte(
background='black',
top=130,
),
Colorbar(
display=fd_layer,
width="700",
height="20",
orientation="top",
values="180,200,220,240,260,280,300,320",
#interval="20",
fontSize="18",
place="UM,0,30",
anchor="UM",
showUnit="true",
showLines="true",
lineColor="yellow",
color="yellow",
),
TextOverlay(
text=label,
place="UM,0,60",
anchor="UM",
fontSize="24",
color="yellow",
),
TextOverlay(
text=str(timestep),
place="UM,0,90",
anchor="UM",
fontSize="24",
color="yellow",
),
]
panel[0].captureImage(filename=fname, formatting=formatStuff)
Thanks,
Joleen