@@ -228,7 +228,7 @@ define([
228
228
code . appendLine ( 'import matplotlib.pyplot as plt' ) ;
229
229
code . appendLine ( 'import json' ) ;
230
230
// code.append(`print(json.dumps(plt.style.available))`);
231
- code . append ( `print(json.dumps([{ 'label': s, 'value': "'"+s+"'" } for s in plt.style.available]))` ) ;
231
+ code . append ( `print(json.dumps([{ 'label': s, 'value': s } for s in plt.style.available]))` ) ;
232
232
this . kernelExecute ( code . toString ( ) , function ( result ) {
233
233
// 사용가능한 스타일 시트 목록
234
234
var varList = JSON . parse ( result ) ;
@@ -261,7 +261,7 @@ define([
261
261
code . appendLine ( 'import json' ) ;
262
262
code . appendLine ( "import matplotlib.font_manager as fm" ) ;
263
263
code . appendLine ( "_ttflist = fm.fontManager.ttflist" ) ;
264
- code . append ( `print(json.dumps([{"label": f.name, "value":("'" + f.name + "'") } for f in _ttflist]))` ) ;
264
+ code . append ( `print(json.dumps([{"label": f.name, "value": f.name} for f in _ttflist]))` ) ;
265
265
this . kernelExecute ( code . toString ( ) , function ( result ) {
266
266
// 사용가능한 폰트 목록
267
267
var varList = JSON . parse ( result ) ;
@@ -273,7 +273,7 @@ define([
273
273
if ( mdvalue != undefined && mdvalue != '' ) {
274
274
suggestInput . setValue ( mdvalue ) ;
275
275
} else {
276
- suggestInput . setValue ( "' Gulim' " ) ;
276
+ suggestInput . setValue ( "Gulim" ) ;
277
277
}
278
278
suggestInput . setSuggestList ( function ( ) { return varList ; } ) ;
279
279
// suggestInput.setNormalFilter(false);
@@ -317,7 +317,7 @@ define([
317
317
sbCode . appendLine ( '' ) ;
318
318
sbCode . appendLine ( "from matplotlib.pylab import rcParams" ) ;
319
319
if ( fontfamily != '' ) {
320
- sbCode . appendFormatLine ( "rcParams['font.family'] = {0}" , fontfamily ) ;
320
+ sbCode . appendFormatLine ( "rcParams['font.family'] = ' {0}' " , fontfamily ) ;
321
321
}
322
322
if ( fontsize != '' ) {
323
323
sbCode . appendFormatLine ( "rcParams['font.size'] = {0}" , fontsize ) ;
0 commit comments