Subject | Hash | Author | Date (UTC) |
---|---|---|---|
mplot: apply recommened tex settings | 48b0ce9931157494afd340d9bf02a763c75b65ec | I am | 2021-12-05 13:23:15 |
qt_gui.qt_plot: rework cubature selection | 17691c7770acdef9e862e21d62b4abbd4fee391c | Aleksei Gerasimov | 2021-11-30 13:36:34 |
qt_plot: import cubature schemes (regression fix) | e9fe073ebd2da613e834cda1fc154d8ed7455cad | Aleksei Gerasimov | 2021-11-30 12:30:48 |
qt_gui: show tree space instead of just (unclear even for me) "potential space" | 98b485ab34d7c47e3d4bcbb827589b86d0356538 | Aleksei Gerasimov | 2021-11-30 12:27:32 |
dicebox: print P coordinates of orphan candidates | ac5ea313e0e542436cb8685a2cff3e241bd57e59 | Aleksei Gerasimov | 2021-11-30 12:26:36 |
simplex: check cubatures for non finite values (nan) | e41838b1350e256e32ab2e6014c594bec873c973 | Aleksei Gerasimov | 2021-11-30 12:24:29 |
ghull: fix orth estimator for non-Gaussian distributions | ceae4981fa46cc770cdedb84bc59f4802a657364 | Aleksei Gerasimov | 2021-11-30 09:25:02 |
mplot.misc: enable latex | 633721276f8f61aa7f82b37443f5a304a85c2f84 | Aleksei Gerasimov | 2021-11-29 13:45:58 |
ghull: limit memory consuption to 1/10 of RAM | f5c173be56dff7811f799551d2261aac0f719c72 | I am | 2021-11-28 08:53:55 |
qt_gui: add missing comma | d56fa172be68d963105dd36c1cf0b1536fe6f080 | I am | 2021-11-28 08:14:29 |
mplot.mgraph: add outside line to tri_estimation_plot | de5fb9d7d6fe6fd930ec7541c82fd4cf2e7d5794 | Aleksei Gerasimov | 2021-11-25 14:13:35 |
mplot.mgraph: add tri_estimation_plot | eaaf410b48988c53ca31dee1203654dfef1adb06 | Aleksei Gerasimov | 2021-11-23 09:36:19 |
mplot.mgraph: do not use ax.sample_box | 94cee6efca47351093d49b5c801e410e1375a5c7 | Aleksei Gerasimov | 2021-11-16 17:12:08 |
testcases: sball testcase fix | 7878752fffa54bda772a5a6768bddbf05357ae73 | Aleksei Gerasimov | 2021-11-10 14:06:14 |
dicebox: replace tabs | afe3b91d0b1ee621f0e605a28b12405e15ce9a22 | I am | 2021-11-07 16:44:44 |
dicebox: prepare KickPointVoronoi | 9543e93d56d9724a91f1e2d443fdb8f4cbaf60e6 | Aleksei Gerasimov | 2021-11-04 14:13:23 |
dicebox: remove old FullSimpleX class. | d7e21f9fcaa3d037c35169695713a7bdc0f39cc3 | Aleksei Gerasimov | 2021-11-03 13:41:40 |
testcases: add testcases_nD module | f48a46042f77bcaa070cca367c5d93ba8d2d779d | I am | 2021-10-31 02:24:54 |
qt_gui: add add_random_points() method | 1c1819745a854889b6d3ae9e62e9735441523ec9 | I am | 2021-10-31 02:23:14 |
qt_gui: rearrange functions within qt_gui, add file menu | d267357cdbfe805db5ef358e6e1acb24c88b5638 | I am | 2021-10-30 21:02:17 |
File | Lines added | Lines deleted |
---|---|---|
mplot/misc.py | 22 | 4 |
File mplot/misc.py changed (mode: 100644) (index 8c875fc..b418857) | |||
1 | 1 | #!/usr/bin/env python | #!/usr/bin/env python |
2 | 2 | # coding: utf-8 | # coding: utf-8 |
3 | 3 | ||
4 | |||
4 | import matplotlib | ||
5 | 5 | import matplotlib.pyplot as plt | import matplotlib.pyplot as plt |
6 | 6 | ||
7 | |||
7 | 8 | __all__ = ['grid3d_patch', 'enable_tex'] | __all__ = ['grid3d_patch', 'enable_tex'] |
8 | 9 | ||
9 | 10 | def grid3d_patch(*args, **kwargs): | def grid3d_patch(*args, **kwargs): |
... | ... | def grid3d_patch(*args, **kwargs): | |
11 | 12 | ||
12 | 13 | ||
13 | 14 | def enable_tex(*args, **kwargs): | def enable_tex(*args, **kwargs): |
15 | plt.rcParams['axes.linewidth'] = 1 | ||
14 | 16 | plt.rcParams['text.usetex'] = True | plt.rcParams['text.usetex'] = True |
17 | plt.rcParams['font.size'] = 8 | ||
18 | |||
15 | 19 | # Times, Palatino, New Century Schoolbook, Bookman, Computer Modern Roman | # Times, Palatino, New Century Schoolbook, Bookman, Computer Modern Roman |
16 | #plt.rc('font',**{'family':'serif','serif':['Computer Modern Roman']}) | ||
20 | plt.rc('font',**{'family':'serif','serif':['Computer Modern Roman']}) | ||
21 | #matplotlib.use('pgf') | ||
22 | #plt.rcParams["pgf.texsystem"] = "xelatex" | ||
23 | #plt.rcParams["pgf.rcfonts"] = False | ||
24 | |||
25 | preamble = r'''\usepackage[utf8]{inputenc} %unicode support | ||
26 | \usepackage[T1]{fontenc} | ||
27 | \DeclareMathAlphabet{\pazocal}{OMS}{zplm}{m}{n} | ||
28 | \usepackage{calrsfs} | ||
29 | \usepackage{amsmath} | ||
30 | \usepackage{bm} | ||
31 | \usepackage[bitstream-charter]{mathdesign} | ||
32 | ''' | ||
33 | |||
17 | 34 | ||
18 | with open("preamble.tex", "r") as file: | ||
19 | preamble = file.read() | ||
35 | #with open("preamble.tex", "r") as file: | ||
36 | # preamble = file.read() | ||
20 | 37 | ||
21 | 38 | plt.rc('text.latex', preamble=preamble) | plt.rc('text.latex', preamble=preamble) |
39 | #plt.rcParams["pgf.preamble"] = preamble |