def _plot_init(self):
    if (self.codim == 2):
        self.p = self.ax[0].tripcolor(self.coordinates[:, 0], self.coordinates[:, 1], self.subentities, np.zeros(len(self.coordinates)), vmin=self.vmin, vmax=self.vmax, shading='gouraud')
    else:
        self.p = self.ax[0].tripcolor(self.coordinates[:, 0], self.coordinates[:, 1], self.subentities, facecolors=np.zeros(len(self.subentities)), vmin=self.vmin, vmax=self.vmax, shading='flat')
    if self.colorbar:
        if (self.aspect_ratio < 0.75):
            orientation = 'horizontal'
        else:
            orientation = 'vertical'
        self.figure.colorbar(self.p, ax=self.ax[0], orientation=orientation)
def _plot_init(self):
    if (self.codim == 2):
        self.p = self.ax[0].tripcolor(self.coordinates[:, 0], self.coordinates[:, 1], self.subentities, np.zeros(len(self.coordinates)), vmin=self.vmin, vmax=self.vmax, shading='gouraud')
    else:
        self.p = self.ax[0].tripcolor(self.coordinates[:, 0], self.coordinates[:, 1], self.subentities, facecolors=np.zeros(len(self.subentities)), vmin=self.vmin, vmax=self.vmax, shading='flat')
    if self.colorbar:
        if (self.aspect_ratio < 0.75):
            orientation = 'horizontal'
        else:
            orientation = 'vertical'
        self.figure.colorbar(self.p, ax=self.ax[0], orientation=orientation)