pyleecan.Methods.Slot.SlotCirc.plot_schematics module

plot_schematics(self, is_default=False, is_add_point_label=False, is_add_schematics=True, is_add_main_line=True, type_add_active=0, save_path=None, is_show_fig=True, fig=None, ax=None)[source]

Plot the schematics of the slot

Parameters:
  • self (SlotCirc) – A SlotCirc object

  • is_default (int) – 0: current slot values, 1: default internal rotor schematics, 2: default external stator schematics

  • is_add_point_label (bool) – True to display the name of the points (Z1, Z2….)

  • is_add_schematics (bool) – True to display the schematics information (W0, H0…)

  • is_add_main_line (bool) – True to display “main lines” (slot opening and 0x axis)

  • type_add_active (int) – 0: No active surface, 1: active surface as winding, 2: active surface as magnet

  • save_path (str) – full path including folder, name and extension of the file to save if save_path is not None

  • 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 schematics

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