File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828
2929def connection_info ():
3030 """
31- Return a string showing the figure and connection status for
32- the backend. This is intended as a diagnostic tool, and not for general
33- use.
31+ Return a string showing the figure and connection status for the backend.
3432
33+ This is intended as a diagnostic tool, and not for general use.
3534 """
36- result = []
37- for manager in Gcf .get_all_fig_managers ():
38- fig = manager .canvas .figure
39- result .append ('{0} - {0}' .format ((fig .get_label () or
40- "Figure {0}" .format (manager .num )),
41- manager .web_sockets ))
35+ result = [
36+ '{fig} - {socket}' .format (
37+ fig = (manager .canvas .figure .get_label ()
38+ or "Figure {}" .format (manager .num )),
39+ socket = manager .web_sockets )
40+ for manager in Gcf .get_all_fig_managers ()
41+ ]
4242 if not is_interactive ():
43- result .append ('Figures pending show: {0 }' .format (len (Gcf ._activeQue )))
43+ result .append ('Figures pending show: {}' .format (len (Gcf ._activeQue )))
4444 return '\n ' .join (result )
4545
4646
You can’t perform that action at this time.
0 commit comments