Scalebar with background - a demonstration of a little issue with two pics next to each other Here's an MWE: \documentclass{article} \usepackage{graphicx} \usepackage{subcaption} \usepackage{tikz}