def set_g_clim(vmin, vmax):
    """Set min/max value of the gnomview part of a mollzoom.
    """
    import pylab
    f = pylab.gcf()
    if not hasattr(f, 'zoomtool'):
        raise TypeError('The current figure has no zoomtool')
    f.zoomtool.save_min = vmin
    f.zoomtool.save_max = vmax
    f.zoomtool._range_status = 2
    f.zoomtool.draw_gnom()
