Plot Workbench: Difference between revisions

From FreeCAD Documentation
(Removed Docnav. In V0.19 Plot is an external WB and should not be in the Docnav sequence. Updated the categories)
(Scripting_examples -> Scripting_and_macros)
Line 34: Line 34:


==Scripting== <!--T:4-->
==Scripting== <!--T:4-->
Since the Plot Workbench is a layer on top of {{incode|matplotlib}}, you are free to use any function from this library on plot instances. See [[Scripting_examples|scripting examples]] for examples.
Since the Plot Workbench is a layer on top of {{incode|matplotlib}}, you are free to use any function from this library on plot instances. See [[Scripting_and_macros|Scripting and macros]] for examples.


==Tutorial== <!--T:5-->
==Tutorial== <!--T:5-->

Revision as of 17:45, 30 December 2020

The Plot Workbench is unmaintained since v0.17. As of v0.19 it is now designated an external workbench, so it is no longer included in the base system. If you have experience with the topic and are interested in maintaining it, please see the project's repository.
Plot workbench icon

Introduction

The Plot Workbench allows the user to edit and save output plots created from other workbenches and tools.

With the Plot workbench you can edit the working area, the axes, labels, titles, line styles, and other elements of plots.

The Plot workbench is an abstraction of the matplotlib Python library conveniently adapted for FreeCAD. To use the Plot functions, the version of matplotlib installed in your system should match the Python version that FreeCAD uses, that is, if FreeCAD uses Python 2.7, you should have matplotlib for the same version.

Tools

  • Save plot: Saves the plot in several formats. You can select the output size and resolution too.
  • Axes: Add, remove or edit plot axes.
  • Series: Edit series title and styling.
  • Grid: Show/hide grid.
  • Legend: Show/hide legend.
  • Labels: Edit labels.
  • Positions: Set elements positions.

Scripting

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

Tutorial