plotting

Functions for plotting contours from PISA fits.

graphnet.pisa.plotting.read_entry(entry)[source]

Parse the contents of entry.

Return type:

Tuple[Any, ...]

Parameters:

entry (Dict) –

graphnet.pisa.plotting.plot_2D_contour(contour_data, xlim=(0.4, 0.6), ylim=(0.0023799999999999997, 0.0025499999999999997), chi2_critical_value, width, height)[source]

Plot 2D contours from GraphNeT PISA fits.

Parameters:
  • contour_data (List[Dict]) –

    List of dictionaries with plotting information. Format is for each dictionary is:

    {‘path’: path_to_pisa_fit_result,

    ’model’: ‘name_of_my_model_in_fit’}.

    One can specify optional fields in the dictionary: “label” - the legend label, “color” - the color of the contour, “linestyle” - the style of the contour line.

  • xlim (Tuple[float, float], default: (0.4, 0.6)) – Lower and upper bound of x-axis.

  • ylim (Tuple[float, float], default: (0.0023799999999999997, 0.0025499999999999997)) – Lower and upper bound of y-axis.

  • chi2_critical_value (float, default: 4.605) – The critical value of the chi2 fits. Defaults to 4.605 (90% CL). @NOTE: This, and the below, can’t both be right.

  • width (float, default: 3.176) – width of figure in inches.

  • height (float, default: 2.388) – height of figure in inches.

Return type:

Figure

Returns:

The figure with contours.

graphnet.pisa.plotting.plot_1D_contour(contour_data, chi2_critical_value, width, height)[source]

Plot 1D contours from GraphNeT PISA fits.

Parameters:
  • contour_data (List[Dict]) –

    List of dictionaries with plotting information. Format is for each dictionary is:

    {‘path’: path_to_pisa_fit_result,

    ’model’: ‘name_of_my_model_in_fit’}.

    One can specify optional fields in the dictionary: “label” - the legend label, “color” - the color of the contour, “linestyle” - the style of the contour line.

  • chi2_critical_value (float, default: 2.706) – The critical value of the chi2 fits. Defaults to 2.706 (90% CL). @NOTE: This, and the above, can’t both be right.

  • width (float, default: 6.352) – width of figure in inches.

  • height (float, default: 2.388) – height of figure in inches.

Return type:

Figure

Returns:

The figure with contours.