I have written python code, which shows the gpu temperature, gpu fan speed and memory usage using the graphs, the graph is something similar to system monitor in ubuntu. Download the source code from here.
It works with ubuntu. Required: python-matplot and python-numpy.