def test_data_plot(self, basic_pointisotherm): pygaps.plot_iso(basic_pointisotherm, x_data='pressure', y1_data='loading', y2_data='enthalpy') pygaps.plot_iso(basic_pointisotherm, x_data='loading', y1_data='enthalpy')
def test_branch_plot(self, basic_pointisotherm): pygaps.plot_iso(basic_pointisotherm, branch='ads', fig_title='ads') pygaps.plot_iso(basic_pointisotherm, branch='des', fig_title='des') pygaps.plot_iso(basic_pointisotherm, branch='all', fig_title='all') pygaps.plot_iso(basic_pointisotherm, branch='all-nol', fig_title='all-nol')
def test_legend_plot(self, basic_pointisotherm): pygaps.plot_iso( basic_pointisotherm, lgd_keys=['material_name', 'material_batch', 'adsorbate', 't_iso'])
def test_style_plot(self, basic_pointisotherm): pygaps.plot_iso(basic_pointisotherm, line_style=dict(linewidth=5))
def test_title_plot(self, basic_pointisotherm): pygaps.plot_iso(basic_pointisotherm, fig_title='Testing figure title')
def test_color_plot(self, basic_pointisotherm): pygaps.plot_iso(basic_pointisotherm, color=False) pygaps.plot_iso(basic_pointisotherm, color=3) pygaps.plot_iso(basic_pointisotherm, color=['red'])
def test_log_plot(self, basic_pointisotherm): pygaps.plot_iso(basic_pointisotherm, logx=True)
def test_range_plot(self, basic_pointisotherm): pygaps.plot_iso(basic_pointisotherm, x_range=(0, 4)) pygaps.plot_iso(basic_pointisotherm, x_range=(0, None)) pygaps.plot_iso(basic_pointisotherm, y1_range=(3, None)) pygaps.plot_iso(basic_pointisotherm, y1_range=(3, None))
def test_convert_plot(self, basic_pointisotherm, basic_adsorbate): pygaps.ADSORBATE_LIST.append(basic_adsorbate) pygaps.plot_iso(basic_pointisotherm, pressure_unit='Pa') pygaps.plot_iso(basic_pointisotherm, loading_unit='mol') pygaps.plot_iso(basic_pointisotherm, pressure_mode='relative')
def test_multi_plot(self, basic_pointisotherm): pygaps.plot_iso( [basic_pointisotherm, basic_pointisotherm, basic_pointisotherm])
def test_basic_plot(self, basic_pointisotherm): pygaps.plot_iso(basic_pointisotherm)
def test_legend_plot(self, basic_pointisotherm): pygaps.plot_iso( basic_pointisotherm, lgd_keys=['material', 'adsorbate', 'temperature'] )
def plot(self, sel_index=None, **kwargs): self._static_ax.clear() selection = self.model.get_iso_checked() if any(selection): pygaps.plot_iso(selection, ax=self._static_ax) self._static_ax.figure.canvas.draw()
def plot_iso(self): # Generate plot of the isotherm pygaps.plot_iso(self._isotherm, ax=self.view.isoGraph.ax) # Draw figure self.view.isoGraph.ax.figure.canvas.draw()