Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit60bb631

Browse files
author
minjk-bl
committed
Chart, plot page fix
1 parent0c26dd9 commit60bb631

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 asplt');
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
varfontName=$(this.wrapSelector('#vp_plFontName')).val();
11001100
varfontSize=$(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)

[8]ページ先頭

©2009-2025 Movatter.jp