Calling set_size_inches with w=14090.5 causes Xorg to lock up and corrupt the screen. With a width of 14090 or less it doesn't happen. Note Xorg doesn't actually crash, just displays garbage all over ...
setting figure size using the figsize parameter to matplotlib.pyplot.figure works just fine, but setting it to a different value in the same script fails in case the first argument to the figure call ...