def ConvertToGDOS(figure_number): """ Converts to symmetrised S(Q,E) (w.r.t. energy using temperature Boltzmann factor) on Slice Plot :param figure_number: The slice plot figure number returned when the plot was made. :return: """ from mslice.plotting.plot_window.slice_plot import SlicePlot plot_handler = GlobalFigureManager.get_figure_by_number(figure_number).plot_handler if isinstance(plot_handler, SlicePlot): plot_handler.plot_window.action_gdos.trigger() else: print('This function cannot be used on a Cut')
def SymmetriseSQE(figure_number): """ Converts to the double differential cross-section d2sigma/dOmega.dE on Slice Plot :param figure_number: The slice plot figure number returned when the plot was made. :return: """ from mslice.plotting.plot_window.slice_plot import SlicePlot plot_handler = GlobalFigureManager.get_figure_by_number(figure_number).plot_handler if isinstance(plot_handler, SlicePlot): plot_handler.plot_window.action_symmetrised_sqe.trigger() else: print('This function cannot be used on a Cut')
def ConvertToChiMag(figure_number): """ Converts to the magnetic dynamical susceptibility Chi''(Q,E magnetic on Slice Plot :param figure_number: The slice plot figure number returned when the plot was made. :return: """ from mslice.plotting.plot_window.slice_plot import SlicePlot plot_handler = GlobalFigureManager.get_figure_by_number(figure_number).plot_handler if isinstance(plot_handler, SlicePlot): plot_handler.plot_window.action_chi_qe_magnetic.trigger() else: print('This function cannot be used on a Cut')
def ConvertToGDOS(figure_number): """ Converts to symmetrised S(Q,E) (w.r.t. energy using temperature Boltzmann factor) on Slice Plot :param figure_number: The slice plot figure number returned when the plot was made. :return: """ plot_handler = GlobalFigureManager.get_figure_by_number( figure_number)._plot_handler if isinstance(plot_handler, SlicePlot): plot_handler.plot_window.action_gdos.trigger() else: print('This function cannot be used on a Cut')
def SymmetriseSQE(figure_number): """ Converts to the double differential cross-section d2sigma/dOmega.dE on Slice Plot :param figure_number: The slice plot figure number returned when the plot was made. :return: """ plot_handler = GlobalFigureManager.get_figure_by_number( figure_number)._plot_handler if isinstance(plot_handler, SlicePlot): plot_handler.plot_window.action_symmetrised_sqe.trigger() else: print('This function cannot be used on a Cut')
def ConvertToChiMag(figure_number): """ Converts to the magnetic dynamical susceptibility Chi''(Q,E magnetic on Slice Plot :param figure_number: The slice plot figure number returned when the plot was made. :return: """ plot_handler = GlobalFigureManager.get_figure_by_number( figure_number)._plot_handler if isinstance(plot_handler, SlicePlot): plot_handler.plot_window.action_chi_qe_magnetic.trigger() else: print('This function cannot be used on a Cut')