Plot Workbench/ru

Introduction
FreeCAD is able to perform plots using the matplotlib Python library. A module is provided to this end, as an external add-on in version 0.19 and as a core component from version 0.20 on. Older versions of FreeCAD are not covered in this documentation.

The produced plots offer the standard matplotlib tools to edit and save. On top of that, a Plot Workbench is provided as an external add-on offering more complete tools to edit the plot and save it. The add-on can be installed with the Add-on manager.

Module
The module can be invoked in a Python console or in a macro. The first thing you must do is importing the module. In FreeCAD 0.19 you must first install the Plot Workbench using the Add-on manager, and then you can import Plot typing

From FreeCAD 0.20 on plot module is already packaged within the program, so you don't need to install any add-on, but just type

After that, you can plot a straight line from (0,0) to (1,2) just simply typing

You can find more complex examples in the Plot Basic tutorial and the Plot MultiAxes tutorial.

Инструменты
If you decide to install the Plot Workbench using the Add-on manager, you will have the following tools available to manage the plots created with the module:

Доступные инструменты.
 * [[Image:Plot_Save.png|32px]] Сохранить диаграмму: Сохраняет диаграмму в нескольких форматах. Вы так же можете выбрать размер и разрешение на выходе.
 * [[Image:Plot_Axes.png|32px]] Настройка осей: Добавить, убрать или редактировать оси диаграммы.
 * [[Image:Plot_Series.png|32px]] Настройка числовых рядов: Редактирует последовательности чисел в титлах и их стиль.
 * [[Image:Plot_Grid.png|32px]] Показать/скрыть сетку: Показывает/скрывает сетку.
 * [[Image:Plot_Legend.png|32px]] Показать/скрыть легенду: Показывает/скрывает легенду.
 * [[Image:Plot_Labels.png|32px]] Настроить подписи: Редактирует подписи.
 * [[Image:Plot_Positions.png|32px]] Настройка расположения и размеров: Устанавливает позиции элементов.

Scripting
Since the Plot Workbench is a layer on top of, you are free to use any function from this library on plot instances. See Scripting and macros for examples.

Учебники

 * Plot Basic tutorial
 * Plot MultiAxes tutorial