plotting.func improvements