Plot Workbench/fr

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.

Outils
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.svg|32px]] Suavegarde: Enregistrer sous plusieurs formats. Vous pouvez sélectionner la taille de sortie et la résolution.
 * [[Image:Plot_Axes.svg|32px]] Axes: Ajouter, effacer ou editer les axes Plot.
 * [[Image:Plot_Series.svg|32px]] Séries: Editer les séries titres et style.
 * [[Image:Plot_Grid.svg|32px]] Grille: Afficher/Cacher la grille.
 * [[Image:Plot_Legend.svg|32px]] Légende: Afficher/Cacher les légendes.
 * [[Image:Plot_Labels.svg|32px]] Etiquettes: Éditer les étiquettes.
 * [[Image:Plot_Positions.svg|32px]] Positions: Ensemble des éléments de positions.

Script
Puisque l'atelier Plot est une couche sur, vous êtes libre d'utiliser toutes les commandes de la librairie matplotlib. Voir exemples de scripts pour des exemples.

Tutoriels
Tutoriel de base

Tutoriel multi Axes