[statistics] imporved code style

This commit is contained in:
Jan Benda 2020-12-07 19:53:13 +01:00
parent 08382f94d4
commit e1c6c32db0
11 changed files with 61 additions and 61 deletions

View File

@ -304,7 +304,7 @@
% %
\newboolean{showexercisesolutions} \newboolean{showexercisesolutions}
\setboolean{showexercisesolutions}{true} \setboolean{showexercisesolutions}{true}
\newcommand{\exercisesolutions}{end} % 0: here, 1: chapter, 2: end \newcommand{\exercisesolutions}{here} % 0: here, 1: chapter, 2: end
% we need this also as numbers: % we need this also as numbers:
\ifthenelse{\equal{\exercisesolutions}{end}}{\newcommand{\exercisesolutionsnum}{2}}{% \ifthenelse{\equal{\exercisesolutions}{end}}{\newcommand{\exercisesolutionsnum}{2}}{%
\ifthenelse{\equal{\exercisesolutions}{chapter}}{\newcommand{\exercisesolutionsnum}{1}}{% \ifthenelse{\equal{\exercisesolutions}{chapter}}{\newcommand{\exercisesolutionsnum}{1}}{%

View File

@ -43,7 +43,7 @@ filllw = 1.0
fillec = colors['white'] fillec = colors['white']
fillalpha = 0.4 fillalpha = 0.4
filledge = {'linewidth': filllw, 'joinstyle': 'round'} filledge = {'linewidth': filllw, 'joinstyle': 'round'}
if int(mpl.__version__.split('.')[0]) < 2: if mpl_major < 2:
del filledge['joinstyle'] del filledge['joinstyle']
# helper lines: # helper lines: