Skip to content

Commit 26aa0b1

Browse files
committed
cosmetic changes.
1 parent d698dac commit 26aa0b1

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

src/pyplot_module.f90

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -131,18 +131,17 @@ subroutine initialize(me, grid, xlabel, ylabel, zlabel, title, legend, use_numpy
131131
character(len=*), intent(in), optional :: real_fmt !! format string for real numbers (examples: '(E30.16)' [default], '*')
132132
logical, intent(in), optional :: use_oo_api !! avoid matplotlib's GUI by using the OO interface (cannot use with showfig)
133133

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
142143

143144
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
146145

147146
call me%destroy()
148147

@@ -217,7 +216,7 @@ subroutine initialize(me, grid, xlabel, ylabel, zlabel, title, legend, use_numpy
217216
call me%add_str('matplotlib.rcParams["legend.fontsize"] = '//trim(legend_fontsize_str))
218217

219218
call me%add_str('')
220-
219+
221220
if (me%use_oo_api) then
222221
python_fig_func = 'Figure'
223222
else
@@ -1168,14 +1167,17 @@ subroutine showfig(me, pyfile, istat)
11681167
integer, intent (out) :: istat !! status output (0 means no problems)
11691168

11701169
if (.not. allocated(me%str)) then
1170+
11711171
istat = -1
11721172
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+
11751176
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+
11781179
else
1180+
11791181
istat = 0
11801182

11811183
!finish up the string:

0 commit comments

Comments
 (0)