People's attitudes rub off on each other. For an analogy, someone with a sour attitude who enters a field of flowers will cause them all to shrivel up and die. If you're going to be sour, stick to yourself if you ask me. Mind your business, keep your head down and have minimal interactions with people.

Why spread your bad vibes all over the workplace?  We are all aware of how the old saying goes, "misery loves company".