File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -187,9 +187,9 @@ def signal_handler (*args):
187
187
prompt = '>> '
188
188
interpreter = GtkInterpreter ()
189
189
interpreter .start ()
190
- interpreter .feed ( "from matplotlib import matlab " )
191
- interpreter .feed ( "from matplotlib.matlab import * " )
192
- interpreter .feed ( "sys.path.append('.') " )
190
+ interpreter .feed ( " import matplotlib " )
191
+ interpreter .feed ( " matplotlib.interactive(1) " )
192
+ interpreter .feed ( "from matplotlib.matlab import * " )
193
193
194
194
# turn off rendering until end of script
195
195
matplotlib .matlab .interactive = 0
@@ -203,8 +203,6 @@ def signal_handler (*args):
203
203
print '>>' , line .rstrip ()
204
204
interpreter .feed (line )
205
205
#gcf().draw()
206
- interpreter .feed ("from matplotlib.backends.backend_gtk import ShowOn" )
207
- interpreter .feed ("ShowOn().set(1)" )
208
206
print """Welcome to matplotlib.
209
207
210
208
help(matlab) -- shows a list of all matlab compatible commands provided
Original file line number Diff line number Diff line change @@ -361,9 +361,8 @@ def key_event(widget,event):
361
361
w .show_all ()
362
362
363
363
console .execute_line ('import matplotlib' )
364
+ console .execute_line ('matplotlib.interactive(1)' )
364
365
console .execute_line ('from matplotlib.matlab import *' )
365
- console .execute_line ('from matplotlib.backends.backend_gtk import ShowOn' )
366
- console .execute_line ('ShowOn().set(1) # turning on interactive mode' )
367
366
368
367
gtk .main ()
369
368
You can’t perform that action at this time.
0 commit comments