Fixed matplotlib frame initialization.