def _get_mantid_specific_plot_kwargs(artist): ax = get_ax_from_curve(artist) if artist not in ax.get_tracked_artists(): return dict() return { 'specNum': ax.get_artists_workspace_and_spec_num(artist)[1], 'distribution': not ax.get_artist_normalization_state(artist) }
def _get_mantid_specific_plot_kwargs(artist): ax = get_ax_from_curve(artist) if artist not in ax.get_tracked_artists(): return dict() sample_log_plot_details = ax.get_artists_sample_log_plot_details(artist) if sample_log_plot_details is None: return { 'specNum': ax.get_artists_workspace_and_spec_num(artist)[1], 'distribution': not ax.get_artist_normalization_state(artist) } else: sample_log_details_map = {'LogName': sample_log_plot_details[0]} if sample_log_plot_details[1] is not None: sample_log_details_map['Filtered'] = sample_log_plot_details[1] if sample_log_plot_details[2] is not None: sample_log_details_map['ExperimentInfo'] = sample_log_plot_details[2] return sample_log_details_map
def _get_mantid_specific_plot_kwargs(artist): ax = get_ax_from_curve(artist) if artist not in ax.get_tracked_artists(): return dict() sample_log_plot_details = ax.get_artists_sample_log_plot_details(artist) if sample_log_plot_details is None: plot_kwargs = { "wkspIndex": ax.get_artists_workspace_and_workspace_index(artist)[1], "distribution": not ax.get_artist_normalization_state(artist) } ax_type = ax.creation_args[0].get('axis', None) if ax_type: plot_kwargs["axis"] = ax_type return plot_kwargs else: sample_log_details_map = {'LogName': sample_log_plot_details[0]} if sample_log_plot_details[1] is not None: sample_log_details_map['Filtered'] = sample_log_plot_details[1] if sample_log_plot_details[2] is not None: sample_log_details_map['ExperimentInfo'] = sample_log_plot_details[ 2] return sample_log_details_map
def get_plot_command_pos_args(artist): ax = get_ax_from_curve(artist) ws_name = ax.get_artists_workspace_and_spec_num(artist)[0].name() return [clean_variable_name(ws_name)]