File tree Expand file tree Collapse file tree
lib/matplotlib/backends/web_static Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 onkeydown ="key_event(event, 'key_press') "
88 onkeyup ="key_event(event, 'key_release') ">
99 < div id ="mpl-div ">
10+ < div id ="mpl-warnings " class ="mpl-warnings "> </ div >
11+
1012 < canvas id ="mpl-canvas "
1113 class ="mpl-canvas "
1214 width ="800 " height ="600 "
Original file line number Diff line number Diff line change 1+ body {
2+ font-family : sans;
3+ }
4+
5+ .mpl-warnings {
6+ display : none;
7+ background : # ffdddd ;
8+ color : # 880000 ;
9+ border : 1 # 880000 ;
10+ }
11+
112.mpl-message {
213 float : right;
314 vertical-align : middle;
Original file line number Diff line number Diff line change @@ -30,6 +30,14 @@ window.onload = function() {
3030
3131 var supports_binary = ( ws . binaryType != undefined ) ;
3232
33+ if ( ! supports_binary ) {
34+ var warnings = document . getElementById ( "mpl-warnings" ) ;
35+ warnings . style . display = 'block' ;
36+ warnings . textContent = (
37+ "This browser does not support binary websocket messages. " +
38+ "Performance may be slow." ) ;
39+ }
40+
3341 ws . onopen = function ( ) {
3442 ws . send ( JSON . stringify (
3543 { type : 'supports_binary' ,
You can’t perform that action at this time.
0 commit comments