changed plotpt to **kwargs style