pyleecan.Methods.Machine.CondType12.plot module

plot(self, is_show_fig=True, fig=None, ax=None)[source]

Plot a Conductor in a matplotlib fig

Parameters:
  • self (CondType12) – A CondType12 object

  • is_show_fig (bool) – To call show at the end of the method

  • fig (Matplotlib.figure.Figure) – existing figure to use if None create a new one

  • ax (Matplotlib.axes.Axes object) – Axis on which to plot the data

Returns:

  • fig (Matplotlib.figure.Figure) – Figure containing the plot

  • ax (Matplotlib.axes.Axes object) – Axis containing the plot

Raises:

NotPlotableError – You can’t plot a coil with Nwppc>4

exception NotPlotableError[source]

Bases: Exception