Below you can see the front-view size comparison of the Panasonic LF1 and Canon G9 X II. The Canon G9 X II is 5 mm narrower and 4 mm shorter than the Panasonic LF1 but it is also 3 mm thicker.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.