Work with functions for making plots