#NEWLINE# def magic_gpc( self , parameter_s = '' ) : #NEWLINE# #INDENT# "Execute a gnuplot command or open a gnuplot shell.\n\n    Usage (omit the % if automagic is on). There are two ways to use it:\n\n      1) %gpc 'command' -> passes 'command' directly to the gnuplot instance.\n\n      2) %gpc -> will open up a prompt (gnuplot>>>) which takes input like the\n      standard gnuplot interactive prompt. If you need to type a multi-line\n      command, use \\ at the end of each intermediate line.\n\n      Upon exiting of the gnuplot sub-shell, you return to your IPython\n      session (the gnuplot sub-shell can be invoked as many times as needed).\n      " #NEWLINE# if parameter_s . strip ( ) : #NEWLINE# #INDENT# self . shell . gnuplot ( self ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . shell . gnuplot . interact ( )