extracted plot code from web to visualization (redmine #1927)