def plot_f_rate(self, ax, X, i, xlim, x, y, binsize=<NUM_LIT:1>, yscale='<STR_LIT>',<EOL>plottype='<STR_LIT>', show_label=False, rasterized=False):
bins = np.arange(xlim[<NUM_LIT:0>], xlim[<NUM_LIT:1>]+binsize, binsize)<EOL>(hist, bins) = np.histogram(x[X], bins=bins)<EOL>if plottype == '<STR_LIT>':<EOL><INDENT>ax.fill_between(bins[:-<NUM_LIT:1>], hist * <NUM_LIT> / self.N_X[i],<EOL>color=self.colors[i], lw=<NUM_LIT:0.5>, label=X, rasterized=rasterized,<EOL>clip_on=False)<EOL>ax.plot(bins[:-<NUM_LIT:1>], hist * <NUM_LIT> / self.N_X[i],<EOL>color='<STR_LIT:k>', lw=<NUM_LIT:0.5>, label=X, rasterized=rasterized,<EOL>clip_on=False)<EOL><DEDENT>elif plottype == '<STR_LIT:bar>':<EOL><INDENT>ax.bar(bins[:-<NUM_LIT:1>], hist * <NUM_LIT> / self.N_X[i],<EOL>color=self.colors[i], label=X, rasterized=rasterized ,<EOL>linewidth=<NUM_LIT>, width=<NUM_LIT>, clip_on=False)<EOL><DEDENT>else:<EOL><INDENT>mssg = "<STR_LIT>".format(plottype)<EOL>raise Exception(mssg)<EOL><DEDENT>remove_axis_junk(ax)<EOL>ax.axis(ax.axis('<STR_LIT>'))<EOL>ax.set_yscale(yscale)<EOL>ax.set_xlim(xlim[<NUM_LIT:0>], xlim[<NUM_LIT:1>])<EOL>if show_label:<EOL><INDENT>ax.text(xlim[<NUM_LIT:0>] + <NUM_LIT>*(xlim[<NUM_LIT:1>]-xlim[<NUM_LIT:0>]), ax.axis()[<NUM_LIT:3>]*<NUM_LIT>, X,<EOL>va='<STR_LIT>', ha='<STR_LIT:left>')<EOL><DEDENT>
Plot network firing rate plot in subplot object.


Parameters
----------
ax : `matplotlib.axes.AxesSubplot` object.
X : str
    Population name.
i : int
    Population index in class attribute `X`.
xlim : list of floats
    Spike time interval, e.g., [0., 1000.].
x : dict
    Key-value entries are population name and neuron spike times.
y : dict
    Key-value entries are population name and neuron gid number.
yscale : 'str'
    Linear, log, or symlog y-axes in rate plot.
plottype : str
    plot type string in `['fill_between', 'bar']`
show_label : bool
    whether or not to show labels


Returns
-------
None