Using pyplot as backend, the following draws a rectangle:
pyplot()
plot([(1,1),(5,1),(5,3),(1,3),(1,1)])
while if I change pyplot() to gr(), a partial rectangle is drawn, and then an error message is generated: GKS: Rectangle definition is invalid in routine SET_VIEWPORT