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