sarkas.tools.transport.Viscosity.plot#

Viscosity.plot(observable, display_plot=False)[source]#

Make a dual plot comparing the ACF and the Transport Coefficient by using the plot_tc() method.

Parameters
  • observable (sarkas.tools.observables.PressureTensor) – Observable object containing the ACF whose time integral leads to the self diffusion coefficient.

  • display_plot (bool, optional) – Flag for displaying the plot if using the IPython. Default = False.

Returns

  • figs (list, matplotlib.pyplot.Figure) – List of matplotlib figure handles for the bulk and shear viscosity respectively.

  • axes (list,) – List of tuples containing the axes handles for each element of figs. Each element of axes is a tuple of four axes handles. ‘ax1` and ax2 are the handles for the left and right plots respectively. ax3 and ax4 are the handles for the “Index” axes, created from ax1.twiny() and ax2.twiny() respectively.