deftest_tplot_with_simple_data(self):"""Test tplot with simple data."""# Create some simple test datax=np.linspace(0,10,100)y=np.sin(x)# This should not raise an exception# Note: We're not checking the output since it's a plotting functiontry:tplot.tplot(x,y)exceptException:# If there's an exception, it might be because we're not in a proper terminal# That's okay for this testpass
deftest_tplot_dict_with_simple_data(self):"""Test tplot_dict with simple data."""# Create some simple test datadata={"x":np.linspace(0,10,100),"y":np.sin(np.linspace(0,10,100))}# This should not raise an exceptiontry:tplot.tplot_dict(data)exceptException:# If there's an exception, it might be because we're not in a proper terminal# That's okay for this testpass
deftest_tplot_with_xarray_data(self):"""Test tplot with xarray data."""# Create some xarray test datax=np.linspace(0,10,100)y=np.sin(x)data=xr.DataArray(y,coords=[x],dims=["x"])# This should not raise an exceptiontry:tplot.tplot(data)exceptException:# If there's an exception, it might be because we're not in a proper terminal# That's okay for this testpass