예제 #1
0
 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')
예제 #2
0
 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')
예제 #3
0
 def test_legend_plot(self, basic_pointisotherm):
     pygaps.plot_iso(
         basic_pointisotherm,
         lgd_keys=['material_name', 'material_batch', 'adsorbate', 't_iso'])
예제 #4
0
 def test_style_plot(self, basic_pointisotherm):
     pygaps.plot_iso(basic_pointisotherm, line_style=dict(linewidth=5))
예제 #5
0
 def test_title_plot(self, basic_pointisotherm):
     pygaps.plot_iso(basic_pointisotherm, fig_title='Testing figure title')
예제 #6
0
 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'])
예제 #7
0
 def test_log_plot(self, basic_pointisotherm):
     pygaps.plot_iso(basic_pointisotherm, logx=True)
예제 #8
0
 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))
예제 #9
0
 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')
예제 #10
0
 def test_multi_plot(self, basic_pointisotherm):
     pygaps.plot_iso(
         [basic_pointisotherm, basic_pointisotherm, basic_pointisotherm])
예제 #11
0
 def test_basic_plot(self, basic_pointisotherm):
     pygaps.plot_iso(basic_pointisotherm)
예제 #12
0
 def test_legend_plot(self, basic_pointisotherm):
     pygaps.plot_iso(
         basic_pointisotherm,
         lgd_keys=['material', 'adsorbate', 'temperature']
     )
예제 #13
0
 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()
예제 #14
0
 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()