@@ -131,18 +131,17 @@ subroutine initialize(me, grid, xlabel, ylabel, zlabel, title, legend, use_numpy
131
131
character (len=* ), intent (in ), optional :: real_fmt ! ! format string for real numbers (examples: '(E30.16)' [default], '*')
132
132
logical , intent (in ), optional :: use_oo_api ! ! avoid matplotlib's GUI by using the OO interface (cannot use with showfig)
133
133
134
- character (len= max_int_len) :: width_str ! ! figure width dummy string
135
- character (len= max_int_len) :: height_str ! ! figure height dummy string
136
- character (len= max_int_len) :: font_size_str ! ! font size dummy string
137
- character (len= max_int_len) :: axes_labelsize_str ! ! size of axis labels dummy string
138
- character (len= max_int_len) :: xtick_labelsize_str ! ! size of x axis tick labels dummy string
139
- character (len= max_int_len) :: ytick_labelsize_str ! ! size of x axis tick labels dummy string
140
- character (len= max_int_len) :: ztick_labelsize_str ! ! size of z axis tick labels dummy string
141
- character (len= max_int_len) :: legend_fontsize_str ! ! size of legend font dummy string
134
+ character (len= max_int_len) :: width_str ! ! figure width dummy string
135
+ character (len= max_int_len) :: height_str ! ! figure height dummy string
136
+ character (len= max_int_len) :: font_size_str ! ! font size dummy string
137
+ character (len= max_int_len) :: axes_labelsize_str ! ! size of axis labels dummy string
138
+ character (len= max_int_len) :: xtick_labelsize_str ! ! size of x axis tick labels dummy string
139
+ character (len= max_int_len) :: ytick_labelsize_str ! ! size of x axis tick labels dummy string
140
+ character (len= max_int_len) :: ztick_labelsize_str ! ! size of z axis tick labels dummy string
141
+ character (len= max_int_len) :: legend_fontsize_str ! ! size of legend font dummy string
142
+ character (len= :),allocatable :: python_fig_func ! ! Python's function for creating a new Figure instance
142
143
143
144
character (len=* ), parameter :: default_font_size_str = ' 10' ! ! the default font size for plots
144
-
145
- character (:), allocatable :: python_fig_func ! ! Python's function for creating a new Figure instance
146
145
147
146
call me% destroy()
148
147
@@ -217,7 +216,7 @@ subroutine initialize(me, grid, xlabel, ylabel, zlabel, title, legend, use_numpy
217
216
call me% add_str(' matplotlib.rcParams["legend.fontsize"] = ' // trim (legend_fontsize_str))
218
217
219
218
call me% add_str(' ' )
220
-
219
+
221
220
if (me% use_oo_api) then
222
221
python_fig_func = ' Figure'
223
222
else
@@ -1168,14 +1167,17 @@ subroutine showfig(me, pyfile, istat)
1168
1167
integer , intent (out ) :: istat ! ! status output (0 means no problems)
1169
1168
1170
1169
if (.not. allocated (me% str)) then
1170
+
1171
1171
istat = - 1
1172
1172
write (error_unit,' (A)' ) ' error in showfig: pyplot class not properly initialized.'
1173
-
1174
- elseif (me% use_oo_api) then
1173
+
1174
+ else if (me% use_oo_api) then
1175
+
1175
1176
istat = - 2
1176
- write (error_unit,' (A)' ) " error in showfig: not compatible with ' use_oo_api' option"
1177
-
1177
+ write (error_unit,' (A)' ) ' error in showfig: not compatible with " use_oo_api" option'
1178
+
1178
1179
else
1180
+
1179
1181
istat = 0
1180
1182
1181
1183
! finish up the string:
0 commit comments