'Returns a Subplot by name. If the subplot doesn\'t exist, it gets created.
:param name: The name of the Subplot to get or create.
:type name: string.
:rtype: :class:`Subplot`.'

def getOrCreateSubplot(self, name):

    try:
        ret = self.__namedSubplots[name]
    except KeyError:
        ret = Subplot()
        self.__namedSubplots[name] = ret
    return ret
