The Portrait gallery of Scotland has free entry but you can donate 10£ with the tap&pay system at the entrance. I would strongly recommend visiting for the beauty of the building and the interiors. In general the pictures and portraits are nice, my favorite was the three surgeons against cancer. Worth mentioning also the library on the second floor.