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

Commit316eaa1

Browse files
author
minjk-bl
committed
Edit the order of import codes on Visualization settings to overwrite figure size after setting styles
1 parente0b9d28 commit316eaa1

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

‎js/m_visualize/Chart.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,10 +570,11 @@ define([
570570
varfontSize=$(this.wrapSelector('#vp_plFontSize')).val();
571571

572572
code.appendLine('import matplotlib.pyplot as plt');
573-
code.appendFormatLine("plt.rc('figure', figsize=({0}, {1}))",figWidth,figHeight);
573+
code.appendLine('%matplotlib inline');
574574
if(styleName&&styleName.length>0){
575575
code.appendFormatLine("plt.style.use('{0}')",styleName);
576576
}
577+
code.appendFormatLine("plt.rc('figure', figsize=({0}, {1}))",figWidth,figHeight);
577578
code.appendLine();
578579

579580
code.appendLine('from matplotlib import rcParams');

‎js/m_visualize/ChartSetting.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,10 @@ define([
144144
code.appendLine('import matplotlib.pyplot as plt');
145145
code.appendLine('%matplotlib inline');
146146
code.appendLine('import seaborn as sns');
147-
code.appendFormatLine("plt.rc('figure', figsize=({0}, {1}))",figureWidth,figureHeight);
148147
if(styleSheet&&styleSheet.length>0){
149148
code.appendFormatLine("plt.style.use('{0}')",styleSheet);
150149
}
150+
code.appendFormatLine("plt.rc('figure', figsize=({0}, {1}))",figureWidth,figureHeight);
151151
code.appendLine();
152152

153153
code.appendLine('from matplotlib import rcParams');

‎js/m_visualize/Seaborn.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,10 +796,10 @@ define([
796796
code.appendLine('import matplotlib.pyplot as plt');
797797
code.appendLine('%matplotlib inline');
798798
code.appendLine('import seaborn as sns');
799-
code.appendFormatLine("plt.rc('figure', figsize=({0}, {1}))",figWidth,figHeight);
800799
if(styleName&&styleName.length>0){
801800
code.appendFormatLine("plt.style.use('{0}')",styleName);
802801
}
802+
code.appendFormatLine("plt.rc('figure', figsize=({0}, {1}))",figWidth,figHeight);
803803
code.appendLine();
804804

805805
code.appendLine('from matplotlib import rcParams');

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp