def _plot_init(self):
    centers = self.grid.centers(1)
    if self.grid.identify_left_right:
        centers = np.concatenate((centers, [[self.grid.domain[1]]]), axis=0)
        self.periodic = True
    else:
        self.periodic = False
    if (self.codim == 1):
        xs = centers
    else:
        xs = np.repeat(centers, 2)[1:(- 1)]
    if self.separate_axes:
        self.lines = [ax.plot(xs, np.zeros_like(xs))[0] for ax in self.ax]
    else:
        self.lines = [self.ax[0].plot(xs, np.zeros_like(xs))[0] for _ in range(self.count)]
    pad = ((self.vmax - self.vmin) * 0.1)
    for ax in self.ax:
        ax.set_ylim((self.vmin - pad), (self.vmax + pad))
def _plot_init(self):
    centers = self.grid.centers(1)
    if self.grid.identify_left_right:
        centers = np.concatenate((centers, [[self.grid.domain[1]]]), axis=0)
        self.periodic = True
    else:
        self.periodic = False
    if (self.codim == 1):
        xs = centers
    else:
        xs = np.repeat(centers, 2)[1:(- 1)]
    if self.separate_axes:
        self.lines = [ax.plot(xs, np.zeros_like(xs))[0] for ax in self.ax]
    else:
        self.lines = [self.ax[0].plot(xs, np.zeros_like(xs))[0] for _ in range(self.count)]
    pad = ((self.vmax - self.vmin) * 0.1)
    for ax in self.ax:
        ax.set_ylim((self.vmin - pad), (self.vmax + pad))