Subject | Hash | Author | Date (UTC) |
---|---|---|---|
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 |
whitebox: implement run_sample() | 576ca55be17e6f14500e70d97536e0b53a57f029 | I am | 2021-10-30 21:01:07 |
qt_gui: implement dicebox setup | 09a7074b12e46d0554b2c4f73b6a8b672d0b4428 | I am | 2021-10-30 15:12:33 |
schemes: small fix | 934b2269e5b08930e23fd67df07234251b123153 | I am | 2021-10-30 15:11:39 |
qt_gui: prepare setup Goal setup dialog | e53197a0b5d5a994dddbcbfb02042c5383f79ec7 | Aleksei Gerasimov | 2021-10-29 16:47:09 |
schemes: add conventional functions for tn schemes | 9a32048dc342604291f1b7d17efc71be755d3810 | Aleksei Gerasimov | 2021-10-29 16:45:24 |
reader: make Reader callable | 5cdd55d11ff846f9116fb0e00f54a7830ef3c276 | Aleksei Gerasimov | 2021-10-27 16:30:05 |
make WellMet standalone runnable | 1fe983d633d7194a64cf6928044082936790ce4d | Aleksei Gerasimov | 2021-10-27 16:21:51 |
File | Lines added | Lines deleted |
---|---|---|
mplot/misc.py | 12 | 3 |
File mplot/misc.py changed (mode: 100644) (index 647e2cb..8c875fc) | |||
2 | 2 | # coding: utf-8 | # coding: utf-8 |
3 | 3 | ||
4 | 4 | ||
5 | # nazvy proměnných jsou v angličtině | ||
6 | # Ale komenty teda ne) | ||
5 | import matplotlib.pyplot as plt | ||
7 | 6 | ||
8 | __all__ = ['grid3d_patch'] | ||
7 | __all__ = ['grid3d_patch', 'enable_tex'] | ||
9 | 8 | ||
10 | 9 | def grid3d_patch(*args, **kwargs): | def grid3d_patch(*args, **kwargs): |
11 | 10 | from . import _axis3d_margins_patch, _axes3d | from . import _axis3d_margins_patch, _axes3d |
12 | 11 | ||
12 | |||
13 | def enable_tex(*args, **kwargs): | ||
14 | plt.rcParams['text.usetex'] = True | ||
15 | # Times, Palatino, New Century Schoolbook, Bookman, Computer Modern Roman | ||
16 | #plt.rc('font',**{'family':'serif','serif':['Computer Modern Roman']}) | ||
17 | |||
18 | with open("preamble.tex", "r") as file: | ||
19 | preamble = file.read() | ||
20 | |||
21 | plt.rc('text.latex', preamble=preamble) |