class_docstr: Test plotting.py.
class_docstr_tok: ["Test","plotting.py","."]
docstr: Test plot_blandaltman()
docstr_tok: ["Test","plot_blandaltman","(",")"]
code: def test_plot_blandaltman(self):
      """Test plot_blandaltman()"""
      # With random data
      np.random.seed(123)
      mean, cov = [10, 11], [[1, 0.8], [0.8, 1]]
      x, y = np.random.multivariate_normal(mean, cov, 30).T
      ax = plot_blandaltman(x, y)
      assert isinstance(ax, matplotlib.axes.Axes)
      _, (ax1, ax2) = plt.subplots(1, 2, figsize=(9, 4))
      plot_blandaltman(x, y, agreement=2, confidence=None, ax=ax1)
      plot_blandaltman(x, y, agreement=2, confidence=0.68, ax=ax2)
      plt.close("all")
      # With Pingouin's dataset
      df_ba = read_dataset("blandaltman")
      x, y = df_ba["A"], df_ba["B"]
      plot_blandaltman(x, y)
      plot_blandaltman(x, y, annotate=False)
      plot_blandaltman(x, y, xaxis="x", confidence=None)
      plot_blandaltman(x, y, xaxis="y", color="green", s=10)
      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 1 for calling the TestPlotting obj's underlying member method code with example usage: obj.test_plot_blandaltman() without return types