writing pdf color bars too. though matplotlib makes it look weird