Skip to content

Commit 60bb631

Browse files
author
minjk-bl
committed
Chart, plot page fix
1 parent 0c26dd9 commit 60bb631

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/matplotlib/import.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ define([
294294

295295
// 코드 생성
296296
// 필수 입력 항목
297-
sbCode.appendFormatLine('import matplotlib.pyplot as {0}', $(this.wrapSelector('#i0')).val());
297+
sbCode.appendLine('import matplotlib.pyplot as plt');
298298
sbCode.appendFormatLine('%matplotlib {0}', $(this.wrapSelector('#magic')).val());
299299

300300
// style range, sheet

src/matplotlib/plot.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,6 +1099,7 @@ define([
10991099
var fontName = $(this.wrapSelector('#vp_plFontName')).val();
11001100
var fontSize = $(this.wrapSelector('#vp_plFontSize')).val();
11011101

1102+
code.appendLine('import matplotlib.pyplot as plt');
11021103
code.appendFormatLine("plt.rc('figure', figsize=({0}, {1}))", figWidth, figHeight);
11031104
if (styleName && styleName.length > 0) {
11041105
code.appendFormatLine("plt.style.use('{0}')", styleName);

0 commit comments

Comments
 (0)