So I was trying to run a simple code for a contour plot using the Spyder Python IDE and this error popped up:
Xlib: extension "RANDR" missing on display ":0"
Through Google, I found that the solution was to install this package from the USC:
I ran the code again, the error message was gone, and it generated my plot.
Found solution here: