class_docstr: Test ResidualPlot visualizer
class_docstr_tok: ["Test","ResidualPlot","visualizer"]
docstr: Setting both hist=True and qqplot=True raises exception.
docstr_tok: ["Setting","both","hist=True","and","qqplot=True","raises","exception","."]
code: def test_either_hist_or_QQ_plot(self):
      """
      Setting both hist=True and qqplot=True raises exception.
      """
      with pytest.raises(
          YellowbrickValueError,
          match="Set either hist or qqplot to False",
      ):
          ResidualsPlot(LinearRegression(), hist=True, qqplot=True)
  
imports: import sys
  import pytest
  import matplotlib
  import matplotlib.pyplot
  from yellowbrick.datasets import load_energy
  from yellowbrick.exceptions import YellowbrickValueError
  from yellowbrick.regressor.residuals import ResidualsPlot, residuals_plot
  from unittest import mock
  from tests.fixtures import Dataset, Split
  from tests.base import IS_WINDOWS_OR_CONDA, VisualTestCase
  from sklearn.datasets import make_regression
  from sklearn.linear_model import Ridge, Lasso
  from sklearn.neural_network import MLPRegressor
  from sklearn.linear_model import LinearRegression
  from sklearn.model_selection import train_test_split
  from sklearn.pipeline import Pipeline
  from sklearn.preprocessing import MinMaxScaler
label_desc: Use image node_id 3 for calling the TestResidualsPlot obj's underlying member method code with example usage: obj.test_either_hist_or_QQ_plot() without return types