code: def test_inject_coordinates(self):
      tdm = build_hamlet_jz_term_doc_mat()
      freq_df = tdm.get_term_freq_df()
      scatter_chart = ScatterChart(
          term_doc_matrix=tdm, minimum_term_frequency=0
      )
      with self.assertRaises(CoordinatesNotRightException):
          scatter_chart.inject_coordinates([], [])
      with self.assertRaises(CoordinatesNotRightException):
          scatter_chart.inject_coordinates(
              freq_df[freq_df.columns[0]], []
          )
      with self.assertRaises(CoordinatesNotRightException):
          scatter_chart.inject_coordinates(
              [], freq_df[freq_df.columns[0]]
          )
      x = freq_df[freq_df.columns[1]].astype(np.float64)
      y = freq_df[freq_df.columns[0]].astype(np.float64)
      with self.assertRaises(CoordinatesNotRightException):
          scatter_chart.inject_coordinates(x, y)
      with self.assertRaises(CoordinatesNotRightException):
          scatter_chart.inject_coordinates(x, y / y.max())
      with self.assertRaises(CoordinatesNotRightException):
          scatter_chart.inject_coordinates(x / x.max(), y)
      with self.assertRaises(CoordinatesNotRightException):
          scatter_chart.inject_coordinates(-x / x.max(), -y / y.max())
      with self.assertRaises(CoordinatesNotRightException):
          scatter_chart.inject_coordinates(-x / x.max(), y / y.max())
      with self.assertRaises(CoordinatesNotRightException):
          scatter_chart.inject_coordinates(x / x.max(), -y / y.max())
      scatter_chart.inject_coordinates(x / x.max(), y / y.max())
  
imports: import sys
  from unittest import TestCase
  import numpy
  import pandas
  from scattertext import LogOddsRatioUninformativeDirichletPrior, scale
  from scattertext import ScatterChart
  from scattertext.ScatterChart import CoordinatesNotRightException, TermDocMatrixHasNoMetadataException, NeedToInjectCoordinatesException
  from scattertext.test.test_corpusFromPandasWithoutCategories import get_term_doc_matrix_without_categories
  from scattertext.test.test_semioticSquare import get_test_corpus
  from scattertext.test.test_termDocMatrixFactory import build_hamlet_jz_term_doc_mat, build_hamlet_jz_corpus_with_meta
label_desc: Use image node_id 10 for calling the TestScatterChart obj's underlying member method code with example usage: obj.test_inject_coordinates() without return types