I'm trying to set the Width of the lake's contours to zero or change the color to light blue, since the I dont want to see the black outline. The vector file is a Polygon (MultiPolygon) named vlayer2 and I have tried the following commands:
vlayer2.setStrokeWidth(0)
vlayer2.setStrokeColor([49,179,245])
vlayer2.setWidth(0)
But I always get the message: ''AttributeError: 'QgsVectorLayer' object has no attribute '....' ''