plot (method)

@package Methods.Machine.Magnet.plot Magnet plot method @date Created on Wed Dec 17 15:08:33 2014 @copyright (C) 2014-2015 EOMYS ENGINEERING. @author pierre_b

plot(self, fig=None, display_field=False)[source]

Plot the Magnet in a matplotlib fig

Parameters:
  • self (Magnet) – A Magnet object
  • fig – if None, open a new fig and plot, else add to the current one (Default value = None)
  • display_field (bool) – if true, will display magnetization field arrow (Default value = False)
Returns:

Return type:

None