Browse Source

Use default matplotlib renderer

Peter Colberg 1 year ago
parent
commit
f258835c95
27 changed files with 27 additions and 135 deletions
  1. 1
    5
      examples/confined_dimer/tools/dimer_mean_square_displacement.py
  2. 1
    5
      examples/confined_dimer/tools/dimer_orientation_autocorrelation.py
  3. 1
    5
      examples/confined_dimer/tools/dimer_velocity_autocorrelation.py
  4. 1
    5
      examples/confined_dimer/tools/dimer_wall_position.py
  5. 1
    5
      examples/confined_dimer/tools/wall_density.py
  6. 1
    5
      examples/single_dimer/tools/cylindrical_density.py
  7. 1
    5
      examples/single_dimer/tools/cylindrical_velocity.py
  8. 1
    5
      examples/single_dimer/tools/dimer_force.py
  9. 1
    5
      examples/single_dimer/tools/dimer_force_distribution.py
  10. 1
    5
      examples/single_dimer/tools/dimer_mean_square_displacement.py
  11. 1
    5
      examples/single_dimer/tools/dimer_orientation_autocorrelation.py
  12. 1
    5
      examples/single_dimer/tools/dimer_velocity.py
  13. 1
    5
      examples/single_dimer/tools/dimer_velocity_autocorrelation.py
  14. 1
    5
      examples/single_dimer/tools/dimer_velocity_distribution.py
  15. 1
    5
      examples/single_dimer/tools/polar_density.py
  16. 1
    5
      examples/single_dimer/tools/radial_density.py
  17. 1
    5
      examples/single_dimer/tools/solvent_force_distribution.py
  18. 1
    5
      examples/single_dimer/tools/solvent_mean_square_displacement.py
  19. 1
    5
      examples/single_dimer/tools/solvent_velocity_autocorrelation.py
  20. 1
    5
      examples/single_dimer/tools/solvent_velocity_distribution.py
  21. 1
    5
      tools/center_of_mass_velocity.py
  22. 1
    5
      tools/kinetic_energy.py
  23. 1
    5
      tools/potential_energy.py
  24. 1
    5
      tools/pressure.py
  25. 1
    5
      tools/species.py
  26. 1
    5
      tools/temperature.py
  27. 1
    5
      tools/total_energy.py

+ 1
- 5
examples/confined_dimer/tools/dimer_mean_square_displacement.py View File

@@ -7,7 +7,7 @@
7 7
 #
8 8
 
9 9
 import matplotlib as mpl
10
-mpl.use("pgf")
10
+mpl.use("agg")
11 11
 import matplotlib.pyplot as plt
12 12
 import numpy as np
13 13
 import h5py as h5
@@ -19,10 +19,6 @@ parser.add_argument("input", nargs="+", help="input filenames")
19 19
 parser.add_argument("--figsize", type=float, nargs=2, default=(6., 4.), help="figure size")
20 20
 args = parser.parse_args()
21 21
 
22
-mpl.rc("pgf", texsystem="xelatex", preamble=(r"\usepackage{amsmath,bm,txfonts}",))
23
-mpl.rc("font", family="serif", serif=(), size=11)
24
-mpl.rc("legend", fontsize=11, numpoints=1)
25
-
26 22
 with h5.File(args.input[0], "r") as f:
27 23
   g = f["dynamics/dimer/mean_square_displacement"]
28 24
   time = g["time"][:]

+ 1
- 5
examples/confined_dimer/tools/dimer_orientation_autocorrelation.py View File

@@ -7,7 +7,7 @@
7 7
 #
8 8
 
9 9
 import matplotlib as mpl
10
-mpl.use("pgf")
10
+mpl.use("agg")
11 11
 import matplotlib.pyplot as plt
12 12
 import numpy as np
13 13
 import h5py as h5
@@ -20,10 +20,6 @@ parser.add_argument("--figsize", type=float, nargs=2, default=(6., 4.), help="fi
20 20
 parser.add_argument("--block", type=int, default=4, help="block level")
21 21
 args = parser.parse_args()
22 22
 
23
-mpl.rc("pgf", texsystem="xelatex", preamble=(r"\usepackage{amsmath,bm,txfonts}",))
24
-mpl.rc("font", family="serif", serif=(), size=11)
25
-mpl.rc("legend", fontsize=11, numpoints=1)
26
-
27 23
 with h5.File(args.input[0], "r") as f:
28 24
   g = f["dynamics/dimer/orientation_autocorrelation"]
29 25
   time = g["time"][:]

+ 1
- 5
examples/confined_dimer/tools/dimer_velocity_autocorrelation.py View File

@@ -7,7 +7,7 @@
7 7
 #
8 8
 
9 9
 import matplotlib as mpl
10
-mpl.use("pgf")
10
+mpl.use("agg")
11 11
 import matplotlib.pyplot as plt
12 12
 import numpy as np
13 13
 import h5py as h5
@@ -20,10 +20,6 @@ parser.add_argument("--figsize", type=float, nargs=2, default=(6., 4.), help="fi
20 20
 parser.add_argument("--block", type=int, default=1, help="block level")
21 21
 args = parser.parse_args()
22 22
 
23
-mpl.rc("pgf", texsystem="xelatex", preamble=(r"\usepackage{amsmath,bm,txfonts}",))
24
-mpl.rc("font", family="serif", serif=(), size=11)
25
-mpl.rc("legend", fontsize=11, numpoints=1)
26
-
27 23
 with h5.File(args.input[0], "r") as f:
28 24
   g = f["dynamics/dimer/velocity_autocorrelation"]
29 25
   time = g["time"][:]

+ 1
- 5
examples/confined_dimer/tools/dimer_wall_position.py View File

@@ -7,7 +7,7 @@
7 7
 #
8 8
 
9 9
 import matplotlib as mpl
10
-mpl.use("pgf")
10
+mpl.use("agg")
11 11
 import matplotlib.pyplot as plt
12 12
 import numpy as np
13 13
 import h5py as h5
@@ -20,10 +20,6 @@ parser.add_argument("--interval", type=int, default=1, help="sample interval")
20 20
 parser.add_argument("--figsize", type=float, nargs=2, default=(6., 4.), help="figure size")
21 21
 args = parser.parse_args()
22 22
 
23
-mpl.rc("pgf", texsystem="xelatex", preamble=(r"\usepackage{amsmath,bm,txfonts}",))
24
-mpl.rc("font", family="serif", serif=(), size=11)
25
-mpl.rc("legend", fontsize=11, numpoints=1)
26
-
27 23
 with h5.File(args.input, "r") as f:
28 24
   g = f["particles/dimer/position"]
29 25
   time = g["time"][::args.interval]

+ 1
- 5
examples/confined_dimer/tools/wall_density.py View File

@@ -7,7 +7,7 @@
7 7
 #
8 8
 
9 9
 import matplotlib as mpl
10
-mpl.use("pgf")
10
+mpl.use("agg")
11 11
 import matplotlib.pyplot as plt
12 12
 import numpy as np
13 13
 import h5py as h5
@@ -19,10 +19,6 @@ parser.add_argument("input", nargs="+", help="input filenames")
19 19
 parser.add_argument("--figsize", type=float, nargs=2, default=(6., 3.), help="figure size")
20 20
 args = parser.parse_args()
21 21
 
22
-mpl.rc("pgf", texsystem="xelatex", preamble=(r"\usepackage{amsmath,bm,txfonts}",))
23
-mpl.rc("font", family="serif", serif=(), size=11)
24
-mpl.rc("legend", fontsize=11, numpoints=1)
25
-
26 22
 with h5.File(args.input[0], "r") as f:
27 23
   g = f["structure/solvent/wall_density"]
28 24
   Z = g["distance"][:]

+ 1
- 5
examples/single_dimer/tools/cylindrical_density.py View File

@@ -7,7 +7,7 @@
7 7
 #
8 8
 
9 9
 import matplotlib as mpl
10
-mpl.use("pgf")
10
+mpl.use("agg")
11 11
 import matplotlib.pyplot as plt
12 12
 import matplotlib.patches as patches
13 13
 import numpy as np
@@ -24,10 +24,6 @@ parser.add_argument("--species", type=int, help="solvent species")
24 24
 parser.add_argument("--figsize", type=float, nargs=2, default=(6., 3.), help="figure size")
25 25
 args = parser.parse_args()
26 26
 
27
-mpl.rc("pgf", texsystem="xelatex", preamble=(r"\usepackage{amsmath,bm,txfonts}",))
28
-mpl.rc("font", family="serif", serif=(), size=11)
29
-mpl.rc("legend", fontsize=11, numpoints=1)
30
-
31 27
 with h5.File(args.input[0], "r") as f:
32 28
   g = f["structure/solvent/cylindrical_density"]
33 29
   radial = g["radial"][:]

+ 1
- 5
examples/single_dimer/tools/cylindrical_velocity.py View File

@@ -7,7 +7,7 @@
7 7
 #
8 8
 
9 9
 import matplotlib as mpl
10
-mpl.use("pgf")
10
+mpl.use("agg")
11 11
 import matplotlib.pyplot as plt
12 12
 import matplotlib.patches as patches
13 13
 import numpy as np
@@ -23,10 +23,6 @@ parser.add_argument("--samples", type=int, default=100, help="minimum number of
23 23
 parser.add_argument("--figsize", type=float, nargs=2, default=(6., 4.5), help="figure size")
24 24
 args = parser.parse_args()
25 25
 
26
-mpl.rc("pgf", texsystem="xelatex", preamble=(r"\usepackage{amsmath,bm,txfonts}",))
27
-mpl.rc("font", family="serif", serif=(), size=11)
28
-mpl.rc("legend", fontsize=10, numpoints=1)
29
-
30 26
 with h5.File(args.input[0], "r") as f:
31 27
   g = f["fields/solvent/cylindrical_velocity"]
32 28
   radial = np.zeros(shape=g["radial"].shape)

+ 1
- 5
examples/single_dimer/tools/dimer_force.py View File

@@ -7,7 +7,7 @@
7 7
 #
8 8
 
9 9
 import matplotlib as mpl
10
-mpl.use("pgf")
10
+mpl.use("agg")
11 11
 import matplotlib.pyplot as plt
12 12
 import numpy as np
13 13
 import h5py as h5
@@ -19,10 +19,6 @@ parser.add_argument("input", help="input filenames")
19 19
 parser.add_argument("--figsize", type=float, nargs=2, default=(6., 4.), help="figure size")
20 20
 args = parser.parse_args()
21 21
 
22
-mpl.rc("pgf", texsystem="xelatex", preamble=(r"\usepackage{amsmath,bm,txfonts}",))
23
-mpl.rc("font", family="serif", serif=[], size=11)
24
-mpl.rc("legend", fontsize=11, numpoints=1)
25
-
26 22
 with h5.File(args.input, "r") as f:
27 23
   g = f["particles/dimer"]
28 24
   r = g["position"]["value"]

+ 1
- 5
examples/single_dimer/tools/dimer_force_distribution.py View File

@@ -7,7 +7,7 @@
7 7
 #
8 8
 
9 9
 import matplotlib as mpl
10
-mpl.use("pgf")
10
+mpl.use("agg")
11 11
 import matplotlib.pyplot as plt
12 12
 import numpy as np
13 13
 import h5py as h5
@@ -21,10 +21,6 @@ parser.add_argument("--range", type=float, nargs=2, default=(-200., 200.), help=
21 21
 parser.add_argument("--figsize", type=float, nargs=2, default=(6., 4.), help="figure size")
22 22
 args = parser.parse_args()
23 23
 
24
-mpl.rc("pgf", texsystem="xelatex", preamble=(r"\usepackage{amsmath,bm,txfonts}",))
25
-mpl.rc("font", family="serif", serif=[], size=11)
26
-mpl.rc("legend", fontsize=11, numpoints=1)
27
-
28 24
 count = 0
29 25
 hist = np.zeros([args.nbin])
30 26
 mean = 0.

+ 1
- 5
examples/single_dimer/tools/dimer_mean_square_displacement.py View File

@@ -7,7 +7,7 @@
7 7
 #
8 8
 
9 9
 import matplotlib as mpl
10
-mpl.use("pgf")
10
+mpl.use("agg")
11 11
 import matplotlib.pyplot as plt
12 12
 import numpy as np
13 13
 import h5py as h5
@@ -19,10 +19,6 @@ parser.add_argument("input", nargs="+", help="input filenames")
19 19
 parser.add_argument("--figsize", type=float, nargs=2, default=(6., 4.), help="figure size")
20 20
 args = parser.parse_args()
21 21
 
22
-mpl.rc("pgf", texsystem="xelatex", preamble=(r"\usepackage{amsmath,bm,txfonts}",))
23
-mpl.rc("font", family="serif", serif=(), size=11)
24
-mpl.rc("legend", fontsize=11, numpoints=1)
25
-
26 22
 with h5.File(args.input[0], "r") as f:
27 23
   g = f["dynamics/dimer/mean_square_displacement"]
28 24
   time = g["time"][:]

+ 1
- 5
examples/single_dimer/tools/dimer_orientation_autocorrelation.py View File

@@ -7,7 +7,7 @@
7 7
 #
8 8
 
9 9
 import matplotlib as mpl
10
-mpl.use("pgf")
10
+mpl.use("agg")
11 11
 import matplotlib.pyplot as plt
12 12
 import numpy as np
13 13
 import h5py as h5
@@ -20,10 +20,6 @@ parser.add_argument("--figsize", type=float, nargs=2, default=(6., 4.), help="fi
20 20
 parser.add_argument("--block", type=int, default=4, help="block level")
21 21
 args = parser.parse_args()
22 22
 
23
-mpl.rc("pgf", texsystem="xelatex", preamble=(r"\usepackage{amsmath,bm,txfonts}",))
24
-mpl.rc("font", family="serif", serif=(), size=11)
25
-mpl.rc("legend", fontsize=11, numpoints=1)
26
-
27 23
 with h5.File(args.input[0], "r") as f:
28 24
   g = f["dynamics/dimer/orientation_autocorrelation"]
29 25
   time = g["time"][:]

+ 1
- 5
examples/single_dimer/tools/dimer_velocity.py View File

@@ -7,7 +7,7 @@
7 7
 #
8 8
 
9 9
 import matplotlib as mpl
10
-mpl.use("pgf")
10
+mpl.use("agg")
11 11
 import matplotlib.pyplot as plt
12 12
 import numpy as np
13 13
 import h5py as h5
@@ -19,10 +19,6 @@ parser.add_argument("input", help="input filename")
19 19
 parser.add_argument("--figsize", type=float, nargs=2, default=(6., 4.), help="figure size")
20 20
 args = parser.parse_args()
21 21
 
22
-mpl.rc("pgf", texsystem="xelatex", preamble=(r"\usepackage{amsmath,bm,txfonts}",))
23
-mpl.rc("font", family="serif", serif=(), size=11)
24
-mpl.rc("legend", fontsize=11, numpoints=1)
25
-
26 22
 with h5.File(args.input, "r") as f:
27 23
   g = f["particles/dimer"]
28 24
   r = g["position"]["value"]

+ 1
- 5
examples/single_dimer/tools/dimer_velocity_autocorrelation.py View File

@@ -7,7 +7,7 @@
7 7
 #
8 8
 
9 9
 import matplotlib as mpl
10
-mpl.use("pgf")
10
+mpl.use("agg")
11 11
 import matplotlib.pyplot as plt
12 12
 import numpy as np
13 13
 import h5py as h5
@@ -20,10 +20,6 @@ parser.add_argument("--figsize", type=float, nargs=2, default=(6., 4.), help="fi
20 20
 parser.add_argument("--block", type=int, default=1, help="block level")
21 21
 args = parser.parse_args()
22 22
 
23
-mpl.rc("pgf", texsystem="xelatex", preamble=(r"\usepackage{amsmath,bm,txfonts}",))
24
-mpl.rc("font", family="serif", serif=(), size=11)
25
-mpl.rc("legend", fontsize=11, numpoints=1)
26
-
27 23
 with h5.File(args.input[0], "r") as f:
28 24
   g = f["dynamics/dimer/velocity_autocorrelation"]
29 25
   time = g["time"][:]

+ 1
- 5
examples/single_dimer/tools/dimer_velocity_distribution.py View File

@@ -7,7 +7,7 @@
7 7
 #
8 8
 
9 9
 import matplotlib as mpl
10
-mpl.use("pgf")
10
+mpl.use("agg")
11 11
 import matplotlib.pyplot as plt
12 12
 import numpy as np
13 13
 import h5py as h5
@@ -21,10 +21,6 @@ parser.add_argument("--range", type=float, nargs=2, default=(-0.5, 0.5), help="r
21 21
 parser.add_argument("--figsize", type=float, nargs=2, default=(6., 4.), help="figure size")
22 22
 args = parser.parse_args()
23 23
 
24
-mpl.rc("pgf", texsystem="xelatex", preamble=(r"\usepackage{amsmath,bm,txfonts}",))
25
-mpl.rc("font", family="serif", serif=[], size=11)
26
-mpl.rc("legend", fontsize=11, numpoints=1)
27
-
28 24
 count = 0
29 25
 hist = np.zeros([args.nbin])
30 26
 mean = 0.

+ 1
- 5
examples/single_dimer/tools/polar_density.py View File

@@ -7,7 +7,7 @@
7 7
 #
8 8
 
9 9
 import matplotlib as mpl
10
-mpl.use("pgf")
10
+mpl.use("agg")
11 11
 import matplotlib.pyplot as plt
12 12
 import numpy as np
13 13
 import h5py as h5
@@ -20,10 +20,6 @@ parser.add_argument("--radius", type=float, required=True, help="radius")
20 20
 parser.add_argument("--figsize", type=float, nargs=2, default=(6., 6.), help="figure size")
21 21
 args = parser.parse_args()
22 22
 
23
-mpl.rc("pgf", texsystem="xelatex", preamble=(r"\usepackage{amsmath,bm,txfonts}",))
24
-mpl.rc("font", family="serif", serif=(), size=11)
25
-mpl.rc("legend", fontsize=11, numpoints=1)
26
-
27 23
 with h5.File(args.input[0], "r") as f:
28 24
   g = f["structure/solvent/polar_density"]
29 25
   polar = g["polar"][:]

+ 1
- 5
examples/single_dimer/tools/radial_density.py View File

@@ -7,7 +7,7 @@
7 7
 #
8 8
 
9 9
 import matplotlib as mpl
10
-mpl.use("pgf")
10
+mpl.use("agg")
11 11
 import matplotlib.pyplot as plt
12 12
 import numpy as np
13 13
 import h5py as h5
@@ -19,10 +19,6 @@ parser.add_argument("input", nargs="+", help="input filenames")
19 19
 parser.add_argument("--figsize", type=float, nargs=2, default=(6., 6.), help="figure size")
20 20
 args = parser.parse_args()
21 21
 
22
-mpl.rc("pgf", texsystem="xelatex", preamble=(r"\usepackage{amsmath,bm,txfonts}",))
23
-mpl.rc("font", family="serif", serif=(), size=11)
24
-mpl.rc("legend", fontsize=11, numpoints=1)
25
-
26 22
 with h5.File(args.input[0], "r") as f:
27 23
   g = f["structure/solvent/radial_density"]
28 24
   radial = g["radial"][:]

+ 1
- 5
examples/single_dimer/tools/solvent_force_distribution.py View File

@@ -7,7 +7,7 @@
7 7
 #
8 8
 
9 9
 import matplotlib as mpl
10
-mpl.use("pgf")
10
+mpl.use("agg")
11 11
 import matplotlib.pyplot as plt
12 12
 import numpy as np
13 13
 import h5py as h5
@@ -19,10 +19,6 @@ parser.add_argument("input", nargs="+", help="input filenames")
19 19
 parser.add_argument("--figsize", type=float, nargs=2, default=(6., 4.), help="figure size")
20 20
 args = parser.parse_args()
21 21
 
22
-mpl.rc("pgf", texsystem="xelatex", preamble=(r"\usepackage{amsmath,bm,txfonts}",))
23
-mpl.rc("font", family="serif", serif=[], size=11)
24
-mpl.rc("legend", fontsize=11, numpoints=1)
25
-
26 22
 with h5.File(args.input[0], "r") as f:
27 23
   g = f["observables/solvent/axial_force_density"]
28 24
   F = g["force"][:]

+ 1
- 5
examples/single_dimer/tools/solvent_mean_square_displacement.py View File

@@ -7,7 +7,7 @@
7 7
 #
8 8
 
9 9
 import matplotlib as mpl
10
-mpl.use("pgf")
10
+mpl.use("agg")
11 11
 import matplotlib.pyplot as plt
12 12
 import numpy as np
13 13
 import h5py as h5
@@ -19,10 +19,6 @@ parser.add_argument("input", nargs="+", help="input filenames")
19 19
 parser.add_argument("--figsize", type=float, nargs=2, default=(6., 4.), help="figure size")
20 20
 args = parser.parse_args()
21 21
 
22
-mpl.rc("pgf", texsystem="xelatex", preamble=(r"\usepackage{amsmath,bm,txfonts}",))
23
-mpl.rc("font", family="serif", serif=(), size=11)
24
-mpl.rc("legend", fontsize=11, numpoints=1)
25
-
26 22
 with h5.File(args.input[0], "r") as f:
27 23
   g = f["dynamics/solvent/mean_square_displacement"]
28 24
   index = g["count"][:, 1:] != 0

+ 1
- 5
examples/single_dimer/tools/solvent_velocity_autocorrelation.py View File

@@ -7,7 +7,7 @@
7 7
 #
8 8
 
9 9
 import matplotlib as mpl
10
-mpl.use("pgf")
10
+mpl.use("agg")
11 11
 import matplotlib.pyplot as plt
12 12
 import numpy as np
13 13
 import h5py as h5
@@ -19,10 +19,6 @@ parser.add_argument("input", nargs="+", help="input filenames")
19 19
 parser.add_argument("--figsize", type=float, nargs=2, default=(6., 4.), help="figure size")
20 20
 args = parser.parse_args()
21 21
 
22
-mpl.rc("pgf", texsystem="xelatex", preamble=(r"\usepackage{amsmath,bm,txfonts}",))
23
-mpl.rc("font", family="serif", serif=(), size=11)
24
-mpl.rc("legend", fontsize=11, numpoints=1)
25
-
26 22
 with h5.File(args.input[0], "r") as f:
27 23
   g = f["dynamics/solvent/velocity_autocorrelation"]
28 24
   index = g["count"][:, 1:] != 0

+ 1
- 5
examples/single_dimer/tools/solvent_velocity_distribution.py View File

@@ -7,7 +7,7 @@
7 7
 #
8 8
 
9 9
 import matplotlib as mpl
10
-mpl.use("pgf")
10
+mpl.use("agg")
11 11
 import matplotlib.pyplot as plt
12 12
 import numpy as np
13 13
 import h5py as h5
@@ -19,10 +19,6 @@ parser.add_argument("input", nargs="+", help="input filenames")
19 19
 parser.add_argument("--figsize", type=float, nargs=2, default=(6., 4.), help="figure size")
20 20
 args = parser.parse_args()
21 21
 
22
-mpl.rc("pgf", texsystem="xelatex", preamble=(r"\usepackage{amsmath,bm,txfonts}",))
23
-mpl.rc("font", family="serif", serif=[], size=11)
24
-mpl.rc("legend", fontsize=11, numpoints=1)
25
-
26 22
 with h5.File(args.input[0], "r") as f:
27 23
   g = f["observables/solvent/axial_velocity_density"]
28 24
   v = g["velocity"][:]

+ 1
- 5
tools/center_of_mass_velocity.py View File

@@ -7,7 +7,7 @@
7 7
 #
8 8
 
9 9
 import matplotlib as mpl
10
-mpl.use("pgf")
10
+mpl.use("agg")
11 11
 import matplotlib.pyplot as plt
12 12
 import numpy as np
13 13
 import h5py as h5
@@ -20,10 +20,6 @@ parser.add_argument("input", help="input filename")
20 20
 parser.add_argument("--figsize", type=float, nargs=2, default=(6., 4.), help="figure size")
21 21
 args = parser.parse_args()
22 22
 
23
-mpl.rc("pgf", preamble=(r"\usepackage{amsmath,amssymb,bm}",))
24
-mpl.rc("font", family="serif", serif=(), size=11)
25
-mpl.rc("legend", fontsize=11, numpoints=1)
26
-
27 23
 with h5.File(args.input, "r") as f:
28 24
   g = f["observables/center_of_mass_velocity"]
29 25
   time = g["time"][:]

+ 1
- 5
tools/kinetic_energy.py View File

@@ -7,7 +7,7 @@
7 7
 #
8 8
 
9 9
 import matplotlib as mpl
10
-mpl.use("pgf")
10
+mpl.use("agg")
11 11
 import matplotlib.pyplot as plt
12 12
 import numpy as np
13 13
 import h5py as h5
@@ -19,10 +19,6 @@ parser.add_argument("input", help="input filename")
19 19
 parser.add_argument("--figsize", type=float, nargs=2, default=(6., 4.), help="figure size")
20 20
 args = parser.parse_args()
21 21
 
22
-mpl.rc("pgf", preamble=(r"\usepackage{amsmath,amssymb,bm}",))
23
-mpl.rc("font", family="serif", serif=(), size=11)
24
-mpl.rc("legend", fontsize=11, numpoints=1)
25
-
26 22
 with h5.File(args.input, "r") as f:
27 23
   g = f["observables/kinetic_energy"]
28 24
   time = g["time"][:]

+ 1
- 5
tools/potential_energy.py View File

@@ -7,7 +7,7 @@
7 7
 #
8 8
 
9 9
 import matplotlib as mpl
10
-mpl.use("pgf")
10
+mpl.use("agg")
11 11
 import matplotlib.pyplot as plt
12 12
 import numpy as np
13 13
 import h5py as h5
@@ -19,10 +19,6 @@ parser.add_argument("input", help="input filename")
19 19
 parser.add_argument("--figsize", type=float, nargs=2, default=(6., 4.), help="figure size")
20 20
 args = parser.parse_args()
21 21
 
22
-mpl.rc("pgf", preamble=(r"\usepackage{amsmath,amssymb,bm}",))
23
-mpl.rc("font", family="serif", serif=(), size=11)
24
-mpl.rc("legend", fontsize=11, numpoints=1)
25
-
26 22
 with h5.File(args.input, "r") as f:
27 23
   g = f["observables/potential_energy"]
28 24
   time = g["time"][:]

+ 1
- 5
tools/pressure.py View File

@@ -7,7 +7,7 @@
7 7
 #
8 8
 
9 9
 import matplotlib as mpl
10
-mpl.use("pgf")
10
+mpl.use("agg")
11 11
 import matplotlib.pyplot as plt
12 12
 import numpy as np
13 13
 import h5py as h5
@@ -19,10 +19,6 @@ parser.add_argument("input", help="input filename")
19 19
 parser.add_argument("--figsize", type=float, nargs=2, default=(6., 4.), help="figure size")
20 20
 args = parser.parse_args()
21 21
 
22
-mpl.rc("pgf", preamble=(r"\usepackage{amsmath,amssymb,bm}",))
23
-mpl.rc("font", family="serif", serif=(), size=11)
24
-mpl.rc("legend", fontsize=11, numpoints=1)
25
-
26 22
 with h5.File(args.input, "r") as f:
27 23
   g = f["observables/pressure"]
28 24
   time = g["time"][:]

+ 1
- 5
tools/species.py View File

@@ -7,7 +7,7 @@
7 7
 #
8 8
 
9 9
 import matplotlib as mpl
10
-mpl.use("pgf")
10
+mpl.use("agg")
11 11
 import matplotlib.pyplot as plt
12 12
 import numpy as np
13 13
 import h5py as h5
@@ -19,10 +19,6 @@ parser.add_argument("input", help="input filename")
19 19
 parser.add_argument("--figsize", type=float, nargs=2, default=(6., 4.), help="figure size")
20 20
 args = parser.parse_args()
21 21
 
22
-mpl.rc("pgf", preamble=(r"\usepackage{amsmath,amssymb,bm}",))
23
-mpl.rc("font", family="serif", serif=(), size=11)
24
-mpl.rc("legend", fontsize=11, numpoints=1)
25
-
26 22
 with h5.File(args.input, "r") as f:
27 23
   g = f["observables/solvent/species"]
28 24
   time = g["time"][:]

+ 1
- 5
tools/temperature.py View File

@@ -7,7 +7,7 @@
7 7
 #
8 8
 
9 9
 import matplotlib as mpl
10
-mpl.use("pgf")
10
+mpl.use("agg")
11 11
 import matplotlib.pyplot as plt
12 12
 import numpy as np
13 13
 import h5py as h5
@@ -19,10 +19,6 @@ parser.add_argument("input", help="input filename")
19 19
 parser.add_argument("--figsize", type=float, nargs=2, default=(6., 4.), help="figure size")
20 20
 args = parser.parse_args()
21 21
 
22
-mpl.rc("pgf", preamble=(r"\usepackage{amsmath,amssymb,bm}",))
23
-mpl.rc("font", family="serif", serif=(), size=11)
24
-mpl.rc("legend", fontsize=11, numpoints=1)
25
-
26 22
 with h5.File(args.input, "r") as f:
27 23
   g = f["observables/temperature"]
28 24
   time = g["time"][:]

+ 1
- 5
tools/total_energy.py View File

@@ -7,7 +7,7 @@
7 7
 #
8 8
 
9 9
 import matplotlib as mpl
10
-mpl.use("pgf")
10
+mpl.use("agg")
11 11
 import matplotlib.pyplot as plt
12 12
 import numpy as np
13 13
 import h5py as h5
@@ -19,10 +19,6 @@ parser.add_argument("input", help="input filename")
19 19
 parser.add_argument("--figsize", type=float, nargs=2, default=(6., 4.), help="figure size")
20 20
 args = parser.parse_args()
21 21
 
22
-mpl.rc("pgf", preamble=(r"\usepackage{amsmath,amssymb,bm}",))
23
-mpl.rc("font", family="serif", serif=(), size=11)
24
-mpl.rc("legend", fontsize=11, numpoints=1)
25
-
26 22
 with h5.File(args.input, "r") as f:
27 23
   g = f["observables/total_energy"]
28 24
   time = g["time"][:]

Loading…
Cancel
Save