class_docstr: Visual tests for the high-level drawing utilities
class_docstr_tok: ["Visual","tests","for","the","high-level","drawing","utilities"]
docstr: Check that the manual legend is drawn without axes artists
docstr_tok: ["Check","that","the","manual","legend","is","drawn","without","axes","artists"]
code: def test_manual_legend(self):
      """
      Check that the manual legend is drawn without axes artists
      """
      # Draw a random scatter plot
      random = np.random.RandomState(42)
  
      Ax, Ay = random.normal(50, 2, 100), random.normal(50, 3, 100)
      Bx, By = random.normal(42, 3, 100), random.normal(44, 1, 100)
      Cx, Cy = random.normal(20, 10, 100), random.normal(30, 1, 100)
  
      _, ax = plt.subplots()
      ax.scatter(Ax, Ay, c="r", alpha=0.35, label="a")
      ax.scatter(Bx, By, c="g", alpha=0.35, label="b")
      ax.scatter(Cx, Cy, c="b", alpha=0.35, label="c")
  
      # Add the manual legend
      manual_legend(
          ax,
          ("a", "b", "c"),
          ("r", "g", "b"),
          frameon=True,
          loc="upper left",
      )
  
      # Assert image similarity
      self.assert_images_similar(ax=ax, tol=0.5)
  
file_path: yellowbrick/tests/test_draw.py
imports: import pytest
  import numpy
  import matplotlib.pyplot
  from yellowbrick.draw import *
  from .base import VisualTestCase
label_desc: Use image node_id 1 for calling the TestDraw obj's underlying member method code with example usage: obj.test_manual_legend() without return types