Not entirely sure what you'd need it for.
But you can do some drawing with
CGI modules.
but to be honest if it's for graphs etc you're better of with the
CAD::* modules.
More specifically the
CAD::Drawing. module could be helpful.
Update: just read the title, YMMV with pixel based plotting. But
CAD will sort you for vector graphics.
Hope that helps,
John