Plot Save/pl: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
{{Docnav |
{{Docnav |
||
| |
| |
||
Line 16: | Line 17: | ||
==Description== |
==Description== |
||
Plot save tool saves the active plot at desired location. With this tool you can also select the size and resolution of output image. |
|||
The standard plot module already provides a minimum tool to save plots [[File:Matplotlib_save_button.png|24px]]. |
|||
But if you install the [[Image:Workbench_Plot.svg|24px]] [[Plot Workbench|Plot Workbench]] using the [[Std_AddonMgr|Add-on manager]], a more complete tool to save the active plot will be available. With this tool you can also select the size and resolution of the output image. |
|||
[[Image:Plot_Trigonometric_Example.png|600px]] |
[[Image:Plot_Trigonometric_Example.png|600px]] |
||
== |
==Usage== |
||
Select the plot tab that you want to save, and run this tool. Use path selector button |
Select the plot tab that you want to save, and run this tool. Use the path selector button to show a file dialog where you can choose the file location and format. |
||
[[Image:Plot_Save_Path.png|Path selection button]] |
[[Image:Plot_Save_Path.png|Path selection button]] |
||
{{Caption|Path selection button}} |
|||
==Options== |
==Options== |
||
* '''File path''': You can set the output image path (including format extension) inserting it at text line too. |
* '''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). |
* '''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. |
* '''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|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: |
|||
{{Code|code= |
|||
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. |
|||
{{Docnav |
{{Docnav |
||
Line 54: | Line 48: | ||
{{Plot_Tools_navi{{#translation:}}}} |
{{Plot_Tools_navi{{#translation:}}}} |
||
{{Userdocnavi{{#translation:}}}} |
{{Userdocnavi{{#translation:}}}} |
||
[[Category:External_Workbenches{{#translation:}}]] |
|||
{{clear}} |
|||
[[Category:Addons{{#translation:}}]] |
Revision as of 02:16, 31 August 2021
Plot Save |
Menu location |
---|
Plot → Save plot |
Workbenches |
Plot |
Default shortcut |
None |
Introduced in version |
- |
See also |
None |
Description
The standard plot module already provides a minimum tool to save plots . But if you install the Plot Workbench using the Add-on manager, a more complete tool to save the active plot will be available. With this tool you can also select the size and resolution of the output image.
Usage
Select the plot tab that you want to save, and run this tool. Use the path selector button to show a file dialog where you can choose the file location and format.
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.
Centrum użytkownika
- Jak zacząć
- Instalacja: Pobieranie programu, Windows, Linux, Mac, Dodatkowych komponentów, Docker, AppImage, Ubuntu Snap
- Podstawy: Informacje na temat FreeCAD, Interfejs użytkownika, Profil nawigacji myszką, Metody wyboru, Nazwa obiektu, Edytor ustawień, Środowiska pracy, Struktura dokumentu, Właściwości, Pomóż w rozwoju FreeCAD, Dotacje
- Pomoc: Poradniki, Wideo poradniki
- Środowiska pracy: Strona Startowa, Architektura, Assembly, CAM, Rysunek Roboczy, MES, Inspekcja, Siatka, OpenSCAD, Część, Projekt Części, Punkty, Inżynieria Wsteczna, Robot, Szkicownik, Arkusz Kalkulacyjny, Powierzchnia 3D, Rysunek Techniczny, Test Framework