showmat function added for mono graph