(hist_data, plot_height, plot_width, x_range=None, epoch_axis=True)
return fig
Generate a figure with an image plot for hist_data, bins on the Y axis and
    time on the X axis.

    Arguments:
        hist_data (tuple): Hist data to plot
        plot_height (int): Plot height
        plot_width (int): Plot width
        x_range (tuple, optional): (start, end) range for x
        epoch_axis (boolm optional): If true, use Epoch, if false use Minibatch

    Returns:
        bokeh.plotting.figure: hist_data figure
Generate a figure with an image plot for hist_data, bins on the Y axis and
    time on the X axis.
Generate a figure with an image plot for hist_data bins on the Y axis and time on the X axis .
def hist_fig(hist_data, plot_height, plot_width, x_range=None, epoch_axis=True):
    """
    Generate a figure with an image plot for hist_data, bins on the Y axis and
    time on the X axis.

    Arguments:
        hist_data (tuple): Hist data to plot
        plot_height (int): Plot height
        plot_width (int): Plot width
        x_range (tuple, optional): (start, end) range for x
        epoch_axis (boolm optional): If true, use Epoch, if false use Minibatch

    Returns:
        bokeh.plotting.figure: hist_data figure
    """
    name, hdata, dh, dw, bins, offset = hist_data
    if x_range is None:
        x_range = (0, dw)
    fig = figure(plot_height=plot_height,
                 plot_width=plot_width,
                 title=name,
                 x_axis_label=x_label(epoch_axis),
                 x_range=x_range,
                 y_range=(offset, offset + bins))
    fig.image(image=[hdata], x=[0], y=[offset], dw=[dw], dh=[dh], palette="Spectral11")
    return fig
def hist_fig ( hist_data , plot_height , plot_width , x_range = None , epoch_axis = True ) : name , hdata , dh , dw , bins , offset = hist_data if x_range is None : x_range = ( 0 , dw ) fig = figure ( plot_height = plot_height , plot_width = plot_width , title = name , x_axis_label = x_label ( epoch_axis ) , x_range = x_range , y_range = ( offset , offset + bins ) ) fig . image ( image = [ hdata ] , x = [ 0 ] , y = [ offset ] , dw = [ dw ] , dh = [ dh ] , palette = "Spectral11" ) return fig