"""Init Module for the Plotter Code"""


import pandas as pd
from LinePlot import LinePlot

"""Init Module for the Plotter Code"""


import pandas as pd
from LinePlot import LinePlot
import AttrConf


def register_forwarding_arg(arg_name):
    """Allows the user to register args to
       be forwarded to matplotlib
    """
    if arg_name not in AttrConf.ARGS_TO_FORWARD:
        AttrConf.ARGS_TO_FORWARD.append(arg_name)

def unregister_forwarding_arg(arg_name):
    """Unregisters arg_name from being passed to
       plotter matplotlib calls
    """
    try:
        AttrConf.ARGS_TO_FORWARD.remove(arg_name)
    except ValueError:
        pass

Enable user specified arg forwarding to matplotlib
plotter: Enable user specified arg forwarding to matplotlib

This change allows the user to register args for forwarding to
matplotlib and also unregister the same.

Change-Id: If53dab43dd4a2f530b3d1faf35582206ac925740
Signed-off-by: Kapileshwar Singh <d373e2b6407ea84be359ce4a11e8631121819e79@arm.com>

  """Init Module for the Plotter Code"""
  
  
  import pandas as pd
  from LinePlot import LinePlot
+ import AttrConf
  
+ 
+ def register_forwarding_arg(arg_name):
+     """Allows the user to register args to
+        be forwarded to matplotlib
+     """
+     if arg_name not in AttrConf.ARGS_TO_FORWARD:
+         AttrConf.ARGS_TO_FORWARD.append(arg_name)
+ 
+ def unregister_forwarding_arg(arg_name):
+     """Unregisters arg_name from being passed to
+        plotter matplotlib calls
+     """
+     try:
+         AttrConf.ARGS_TO_FORWARD.remove(arg_name)
+     except ValueError:
+         pass
+ 
Enable user specified arg forwarding to matplotlib
## Code Before:
"""Init Module for the Plotter Code"""


import pandas as pd
from LinePlot import LinePlot

## Instruction:
Enable user specified arg forwarding to matplotlib
## Code After:
"""Init Module for the Plotter Code"""


import pandas as pd
from LinePlot import LinePlot
import AttrConf


def register_forwarding_arg(arg_name):
    """Allows the user to register args to
       be forwarded to matplotlib
    """
    if arg_name not in AttrConf.ARGS_TO_FORWARD:
        AttrConf.ARGS_TO_FORWARD.append(arg_name)

def unregister_forwarding_arg(arg_name):
    """Unregisters arg_name from being passed to
       plotter matplotlib calls
    """
    try:
        AttrConf.ARGS_TO_FORWARD.remove(arg_name)
    except ValueError:
        pass
