Plot Workbench/es: Difference between revisions

From FreeCAD Documentation
m (FuzzyBot moved page Plot Module/es to Plot Workbench/es without leaving a redirect: Part of translatable page "Plot Module")
(Part of translatable page "Plot Module")
Line 33: Line 33:
You can find more complex examples in the [[Plot_Basic_tutorial|Plot Basic tutorial]] and the [[Plot_MultiAxes_tutorial|Plot MultiAxes tutorial]].
You can find more complex examples in the [[Plot_Basic_tutorial|Plot Basic tutorial]] and the [[Plot_MultiAxes_tutorial|Plot MultiAxes tutorial]].


<div class="mw-translate-fuzzy">
== Herramientas ==
== Herramientas ==
</div>


If you decide to install the [[Image:Workbench_Plot.svg|24px]] [[Plot_Workbench|Plot Workbench]] using the [[Std_AddonMgr|Add-on manager]], you will have the following tools available to manage the plots created with the module:
If you decide to install the [[Image:Workbench_Plot.svg|24px]] [[Plot_Workbench|Plot Workbench]] using the [[Std_AddonMgr|Add-on manager]], you will have the following tools available to manage the plots created with the module:


<div class="mw-translate-fuzzy">
* [[Image:Plot_Save.png|32px]] [[Plot_Save/es|Guardar gráfico]]: Guarda el gráfico en varios formatos, seleccionando el tamaño y resolución.
* [[Image:Plot_Save.png|32px]] [[Plot_Save/es|Guardar gráfico]]: Guarda el gráfico en varios formatos, seleccionando el tamaño y resolución.
* [[Image:Plot_Axes.png|32px]] [[Plot_Axes/es|Ejes]]: Añade, elimina o edita los ejes.
* [[Image:Plot_Axes.png|32px]] [[Plot_Axes/es|Ejes]]: Añade, elimina o edita los ejes.
Line 47: Line 44:
* [[Image:Plot_Labels.png|32px]] [[Plot_Labels/es|Títulos]]: Edita los títulos.
* [[Image:Plot_Labels.png|32px]] [[Plot_Labels/es|Títulos]]: Edita los títulos.
* [[Image:Plot_Positions.png|32px]] [[Plot_Positions/es|Posiciones]]: Posiciona los diferentes elementos, como títulos o legenda.
* [[Image:Plot_Positions.png|32px]] [[Plot_Positions/es|Posiciones]]: Posiciona los diferentes elementos, como títulos o legenda.
</div>


==Scripting==
==Scripting==


<div class="mw-translate-fuzzy">
==Scripting==
==Scripting==


Siendo el módulo de graficado una adaptación de {{incode|matplotlib}}, usted puede hacer uso libremente de todas las posibilidades del mismo. Acuda a la sección [[Scripting_examples/es|ejemplos de scripting]] para saber más.
Siendo el módulo de graficado una adaptación de {{incode|matplotlib}}, usted puede hacer uso libremente de todas las posibilidades del mismo. Acuda a la sección [[Scripting_examples/es|ejemplos de scripting]] para saber más.
</div>


==Tutorial==
==Tutorial==


<div class="mw-translate-fuzzy">
==Tutorial==
==Tutorial==
* [[Plot Basic tutorial/es]]
* [[Plot Basic tutorial/es]]
* [[Plot MultiAxes tutorial/es]]
* [[Plot MultiAxes tutorial/es]]
</div>





Revision as of 18:45, 2 October 2021

Plot workbench icon

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 by typing:

from freecad.plot import Plot

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

from FreeCAD.Plot import Plot

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

Plot.plot([0, 1], [0, 2])

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

Herramientas

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:

  • Guardar gráfico: Guarda el gráfico en varios formatos, seleccionando el tamaño y resolución.
  • Ejes: Añade, elimina o edita los ejes.
  • Series: Edita el estilo de las series y establece su título.
  • Malla: Muestra/oculat la malla.
  • Legenda: Muestra/oculta la leyenda.
  • Títulos: Edita los títulos.
  • Posiciones: Posiciona los diferentes elementos, como títulos o legenda.

Scripting

Scripting

Siendo el módulo de graficado una adaptación de matplotlib, usted puede hacer uso libremente de todas las posibilidades del mismo. Acuda a la sección ejemplos de scripting para saber más.

Tutorial

Tutorial