(dpar=None, dmer=None, coord=None, local=None, **kwds)
Draw a graticule on the current Axes.

    Parameters
    ----------
    dpar, dmer : float, scalars
      Interval in degrees between meridians and between parallels
    coord : {'E', 'G', 'C'}
      The coordinate system of the graticule (make rotation if needed,
      using coordinate system of the map if it is defined).
    local : bool
      If True, draw a local graticule (no rotation is performed, useful for
      a gnomonic view, for example)

    Notes
    -----
    Other keyword parameters will be transmitted to the projplot function.

    See Also
    --------
    delgraticules
Draw a graticule on the current Axes.
Draw a graticule on the current Axes .
def graticule(dpar=None, dmer=None, coord=None, local=None, **kwds):
    """Draw a graticule on the current Axes.

    Parameters
    ----------
    dpar, dmer : float, scalars
      Interval in degrees between meridians and between parallels
    coord : {'E', 'G', 'C'}
      The coordinate system of the graticule (make rotation if needed,
      using coordinate system of the map if it is defined).
    local : bool
      If True, draw a local graticule (no rotation is performed, useful for
      a gnomonic view, for example)

    Notes
    -----
    Other keyword parameters will be transmitted to the projplot function.

    See Also
    --------
    delgraticules
    """
    import pylab

    f = pylab.gcf()
    wasinteractive = pylab.isinteractive()
    pylab.ioff()
    try:
        if len(f.get_axes()) == 0:
            ax = PA.HpxMollweideAxes(f, (0.02, 0.05, 0.96, 0.9), coord=coord)
            f.add_axes(ax)
            ax.text(
                0.86,
                0.05,
                ax.proj.coordsysstr,
                fontsize=14,
                fontweight="bold",
                transform=ax.transAxes,
            )
        for ax in f.get_axes():
            if isinstance(ax, PA.SphericalProjAxes):
                ax.graticule(dpar=dpar, dmer=dmer, coord=coord, local=local, **kwds)
    finally:
        pylab.draw()
        if wasinteractive:
            pylab.ion()
def graticule ( dpar = None , dmer = None , coord = None , local = None , * * kwds ) : import pylab f = pylab . gcf ( ) wasinteractive = pylab . isinteractive ( ) pylab . ioff ( ) try : if len ( f . get_axes ( ) ) == 0 : ax = PA . HpxMollweideAxes ( f , ( 0.02 , 0.05 , 0.96 , 0.9 ) , coord = coord ) f . add_axes ( ax ) ax . text ( 0.86 , 0.05 , ax . proj . coordsysstr , fontsize = 14 , fontweight = "bold" , transform = ax . transAxes , ) for ax in f . get_axes ( ) : if isinstance ( ax , PA . SphericalProjAxes ) : ax . graticule ( dpar = dpar , dmer = dmer , coord = coord , local = local , * * kwds ) finally : pylab . draw ( ) if wasinteractive : pylab . ion ( )