code: def textplot(expr, a, b, W=55, H=21):
      r"""
      Print a crude ASCII art plot of the SymPy expression 'expr' (which
      should contain a single symbol, e.g. x or something else) over the
      interval [a, b].
  
      Examples
      ========
  
      >>> from sympy import Symbol, sin
      >>> from sympy.plotting import textplot
      >>> t = Symbol('t')
      >>> textplot(sin(t)*t, 0, 15)
       14 |                                                  ...
          |                                                     .
          |                                                 .
          |                                                      .
          |                                                .
          |                            ...
          |                           /   .               .
          |                          /
          |                         /      .
          |                        .        .            .
      1.5 |----.......--------------------------------------------
          |....       \           .          .
          |            \         /                      .
          |             ..      /             .
          |               \    /                       .
          |                ....
          |                                    .
          |                                     .     .
          |
          |                                      .   .
      -11 |_______________________________________________________
           0                          7.5                        15
      """
      for line in textplot_str(expr, a, b, W, H):
          print(line)
  
file_path: sympy/sympy/plotting/textplot.py
imports: from sympy.core.numbers import Float
  from sympy.core.symbol import Dummy
  from sympy.utilities.lambdify import lambdify
  import math
label_desc: Use image node_id 5 for calling a global function with example usage: textplot(expr, a, b, W, H) without return types