Preparation of graphics for publication of scientific results can be time-consuming procedure and therefore a lot of authors are looking for the way how does it in simpler and faster manner. The paper is devoted to the facilitation of work with LaTeX environment. It shows how to automate the preparation of plots for easy use in LaTeX documents. It is realized using JSON-RPC based web services that can be available to all users. The service and the complementary web application enable to take into account user's preferences regarding layout and appearance of resulting pictures and facilitate the picture production.