dyngpt.pl.plot_hist_2d

dyngpt.pl.plot_hist_2d(ax, data, data_max, label_val, fig, face_color=True, latex_flag=True, cmap_val='Blues', cmap_limit=[0, 0.7], xy_lim=[], vmax=0.025, vmin=0.025, font_size=6, label_size=5)[source]

Plot a 2D histogram on the given axes with custom color mapping and labels.

Args:

ax (matplotlib.axes.Axes): The axes on which to plot the histogram. data (pandas.DataFrame): The data containing the values to be plotted. data_max (list): Maximum values for the data along the x and y axes. label_val (str): Label for the axis to be displayed. fig (matplotlib.figure.Figure): The figure object that holds the axes. face_color (bool, optional): Whether to show a color bar. Defaults to True. latex_flag (bool, optional): Whether to format labels in LaTeX. Defaults to True. cmap_val (str, optional): The colormap to use for the plot. Defaults to “Blues”. cmap_limit (list, optional): The lower and upper limits for the colormap. Defaults to [0, 0.7]. xy_lim (list, optional): The limits for the x and y axes. Defaults to an empty list, which uses data_max. vmax (float, optional): The maximum value for the color scale. Defaults to 0.025. vmin (float, optional): The minimum value for the color scale. Defaults to 0.025. font_size (int, optional): The font size for labels. Defaults to 6. label_size (int, optional): The font size for tick labels. Defaults to 5.