Plot Save/ru

From FreeCAD Documentation
Revision as of 21:17, 25 August 2020 by FuzzyBot (talk | contribs) (Updating to match new version of source page)

Plot Save

Системное название
Plot Save
Расположение в меню
Plot → Сохранить диаграмму
Верстаки
Plot
Быстрые клавиши
Нет
Представлено в версии
-
См. также
Нет

Описание

Инструмент сохранения графика сохраняет активный график в нужном месте. С помощью этого инструмента вы также можете выбрать размер и разрешение выходного изображения.

Использование

Выберите вкладку графика, которую вы хотите сохранить, и запустите этот инструмент. Используйте кнопку выбора пути, чтобы показать диалоговое окно файла, где вы можете выбрать место и формат выходного изображения.

Path selection button Path selection button

Options

  • File path: You can set the output image path (including format extension) inserting it at text line too.
  • Size: You can specify output image width and height (inches).
  • dpi: You can set the image resolution (Dots Per Inch). Final resolution (in pixels) will be the multiplication of width and height by dpi.

Scripting

Plot save tool can be used in macros and from Python console by using the following function:

save(str, (float, float), float) : Saves the plot at path, width the size specified in inches, and the resolution specified in Dots Per Inch.

Example:

import Plot
Plot.save("~/example.pdf", (12.8, 9.6), 50)

That will save a pdf image of 12.8x9.6 inches, with 640x480 pixels.