Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 68ca1a5

Browse files
committed
Make figure larger. Print address to console.
1 parent d7c08fb commit 68ca1a5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/user_interfaces/embedding_webagg.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def create_figure():
3333
"""
3434
Creates a simple example figure.
3535
"""
36-
fig = Figure(figsize=(5, 4))
36+
fig = Figure()
3737
a = fig.add_subplot(111)
3838
t = np.arange(0.0, 3.0, 0.01)
3939
s = np.sin(2 * np.pi * t)
@@ -236,4 +236,8 @@ def __init__(self, figure):
236236

237237
http_server = tornado.httpserver.HTTPServer(application)
238238
http_server.listen(8080)
239+
240+
print("http://localhost:8080/")
241+
print("Press Ctrl+C to quit")
242+
239243
tornado.ioloop.IOLoop.instance().start()

0 commit comments

Comments
 (0)