@@ -130,11 +130,6 @@ define([
130130 // accBoxImport.setOpenBox(true);
131131 sbTagString . clear ( ) ;
132132 sbTagString . appendFormatLine ( '<div class="{0}">' , 'vp-import-box' ) ;
133- // import
134- sbTagString . appendLine ( '<div>' ) ;
135- sbTagString . appendFormatLine ( '<label for="{0}" class="{1}">{2}</label>' , 'vp_plImport' , '' , 'Matplot.pyplot as' ) ;
136- sbTagString . appendFormatLine ( '<input type="text" id="{0}" placeholder="{1}" value="{2}" disabled>' , 'vp_plImport' , 'alias' , 'plt' ) ;
137- sbTagString . appendLine ( '</div>' ) ;
138133 // figure size
139134 sbTagString . appendLine ( '<div>' ) ;
140135 sbTagString . appendFormatLine ( '<label for="{0}" class="{1}">{2}</label>' , 'vp_plFigureWidth' , '' , 'Figure size' ) ;
@@ -160,7 +155,7 @@ define([
160155 sbTagString . appendLine ( '</div>' ) ;
161156 // import button
162157 sbTagString . appendLine ( '<div>' ) ;
163- sbTagString . appendFormatLine ( '<input type="button" id="{0}" class="{1}" value="{2}">' , 'vp_plImportRun' , 'vp-button activated vp-pl-import-run' , 'Import ' ) ;
158+ sbTagString . appendFormatLine ( '<input type="button" id="{0}" class="{1}" value="{2}">' , 'vp_plImportRun' , 'vp-button activated vp-pl-import-run' , 'Apply ' ) ;
164159 sbTagString . appendLine ( '</div>' ) ;
165160
166161 sbTagString . appendLine ( '</div>' ) ;
@@ -468,7 +463,7 @@ define([
468463 // run cell
469464 $ ( vpCommon . wrapSelector ( '#vp_appsCode' ) ) . trigger ( {
470465 type : 'popup_run' ,
471- title : 'Snippets ' ,
466+ title : 'Background ' ,
472467 code : code ,
473468 addCell : true ,
474469 runCell : true
@@ -1098,14 +1093,12 @@ define([
10981093 var code = new sb . StringBuilder ( ) ;
10991094
11001095 // get parameters
1101- var alias = $ ( this . wrapSelector ( '#vp_plImport' ) ) . val ( ) ;
11021096 var figWidth = $ ( this . wrapSelector ( '#vp_plFigureWidth' ) ) . val ( ) ;
11031097 var figHeight = $ ( this . wrapSelector ( '#vp_plFigureHeight' ) ) . val ( ) ;
11041098 var styleName = $ ( this . wrapSelector ( '#vp_plStyle' ) ) . val ( ) ;
11051099 var fontName = $ ( this . wrapSelector ( '#vp_plFontName' ) ) . val ( ) ;
11061100 var fontSize = $ ( this . wrapSelector ( '#vp_plFontSize' ) ) . val ( ) ;
11071101
1108- code . appendLine ( 'import matplotlib.pyplot as plt' ) ;
11091102 code . appendFormatLine ( "plt.rc('figure', figsize=({0}, {1}))" , figWidth , figHeight ) ;
11101103 if ( styleName && styleName . length > 0 ) {
11111104 code . appendFormatLine ( "plt.style.use('{0}')" , styleName ) ;
0 commit comments