class_docstr: Test plotting.py.
class_docstr_tok: ["Test","plotting.py","."]
docstr: Test qqplot()
docstr_tok: ["Test","qqplot","(",")"]
code: def test_qqplot(self):
      """Test qqplot()"""
      np.random.seed(123)
      x = np.random.normal(size=50)
      x_ln = np.random.lognormal(size=50)
      x_exp = np.random.exponential(size=50)
      ax = qqplot(x, dist="norm")
      assert isinstance(ax, matplotlib.axes.Axes)
      _, (ax1, ax2) = plt.subplots(1, 2, figsize=(9, 4))
      qqplot(x_exp, dist="expon", ax=ax2, color="black", marker="+")
      mean, std = 0, 0.8
      qqplot(x, dist=stats.norm, sparams=(mean, std), confidence=False)
      # For lognormal distribution, the shape parameter must be specified
      ax = qqplot(x_ln, dist="lognorm", sparams=(1))
      assert isinstance(ax, matplotlib.axes.Axes)
      # Error: required parameters are not specified
      with pytest.raises(ValueError):
          qqplot(x_ln, dist="lognorm", sparams=())
      plt.close("all")
  
file_path: pingouin/pingouin/tests/test_plotting.py
imports: import pytest
  import matplotlib
  import numpy
  from scipy import stats
  import seaborn
  import matplotlib.pyplot
  from unittest import TestCase
  from pingouin import read_dataset
  from pingouin.plotting import plot_blandaltman, _ppoints, qqplot, plot_paired, plot_shift, plot_rm_corr, plot_circmean
label_desc: Use image node_id 3 for calling the TestPlotting obj's underlying member method code with example usage: obj.test_qqplot() without return types