def raster_plots(self, xlim=[<NUM_LIT:0>, <NUM_LIT:1000>], markersize=<NUM_LIT:1>, alpha=<NUM_LIT:1.>, marker='<STR_LIT:o>'):
x, y = self.get_xy(xlim)<EOL>fig = plt.figure()<EOL>fig.subplots_adjust(left=<NUM_LIT>, hspace=<NUM_LIT>)<EOL>ax0 = fig.add_subplot(<NUM_LIT>)<EOL>self.plot_raster(ax0, xlim, x, y, markersize=markersize, alpha=alpha,<EOL>marker=marker)<EOL>remove_axis_junk(ax0)<EOL>ax0.set_title('<STR_LIT>')<EOL>ax0.set_xlabel("<STR_LIT>")<EOL>nrows = len(self.X)<EOL>bottom = np.linspace(<NUM_LIT:0.1>, <NUM_LIT>, nrows+<NUM_LIT:1>)[::-<NUM_LIT:1>][<NUM_LIT:1>:]<EOL>thickn = np.abs(np.diff(bottom))[<NUM_LIT:0>]*<NUM_LIT><EOL>for i, layer in enumerate(self.X):<EOL><INDENT>ax1 = fig.add_axes([<NUM_LIT>, bottom[i], <NUM_LIT>, thickn])<EOL>self.plot_f_rate(ax1, layer, i, xlim, x, y, )<EOL>if i == nrows-<NUM_LIT:1>:<EOL><INDENT>ax1.set_xlabel('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>ax1.set_xticklabels([])<EOL><DEDENT>if i == <NUM_LIT:4>:<EOL><INDENT>ax1.set_ylabel(r'<STR_LIT>')<EOL><DEDENT>if i == <NUM_LIT:0>:<EOL><INDENT>ax1.set_title(r'<STR_LIT>')<EOL><DEDENT><DEDENT>return fig<EOL>
Pretty plot of the spiking output of each population as raster and rate.


Parameters
----------
xlim : list
    List of floats. Spike time interval, e.g., `[0., 1000.]`.
markersize : float
    marker size for plot, see `matplotlib.pyplot.plot`
alpha : float
    transparency for markers, see `matplotlib.pyplot.plot`
marker : :mod:`A valid marker style <matplotlib.markers>`


Returns
-------
fig : `matplotlib.figure.Figure` object