Coprographia is involuntarily making vulgar writings or drawings. Coprographia comes from the Greek κόπρος meaning "feces" and "graphia" meaning to write.
Related terms are coprolalia, the involuntary usage of scatalogical words, and copropraxia, the involuntary performance of obscene gestures.