用于从学术交流中提取图表的小型库。
项目描述
关于
用于从学术交流中提取图表的小型库。
安装
$ pip install plotextractor
用法
从tar包中提取图表
>>> from plotextractor import process_tarball
>>> plots = process_tarball('./1503.07589.tar.gz')
>>> print(plots[0])
{
'captions': [
u'Scans of twice the negative log-likelihood ratio $-2\\ln\\Lambda(\\mH)$ as functions of the Higgs boson mass \\mH\\ for the ATLAS and CMS combination of the \\hgg\\ (red), \\hZZllll\\ (blue), and combined (black) channels. The dashed curves show the results accounting for statistical uncertainties only, with all nuisance parameters associated with systematic uncertainties fixed to their best-fit values. The 1 and 2 standard deviation limits are indicated by the intersections of the horizontal lines at 1 and 4, respectively, with the log-likelihood scan curves.',
],
'label': u'figure_LHC_combined_obs',
'name': 'LHC_combined_obs_unblind_final',
'original_url': './1503.07589.tar.gz_files/LHC_combined_obs_unblind_final.pdf',
'url': './1503.07589.tar.gz_files/LHC_combined_obs_unblind_final.png',
}
备注
如果您经常遇到DelegateError错误,您可能需要更新您的GhostScript版本。
许可协议
GPLv2
变更
版本 0.2.2 (2019-10-24)
尝试保留图形的顺序。
版本 0.2.1 (2018-09-07)
处理tar包内部路径中的utf-8。
版本 0.2.0 (2018-02-07)
忽略tar包中的隐藏/元数据文件。
处理tar包中的相对路径。
版本 0.1.6 (2016-12-01)
在解包前将tar包所有成员的mtime设置为当前时间。
版本 0.1.5 (2016-05-25)
当在存档中找不到TeX文件时,正确抛出异常。
对图像路径提取进行更多修复,并对图像处理更稳健。
版本 0.1.4 (2016-03-22)
修复了在图像未指定完整相对文件夹路径时从TeX引用中链接图像的问题。
版本 0.1.3 (2016-03-17)
正确支持图像位于提取tar包根文件夹内部嵌套文件夹中的情况。
版本 0.1.2 (2015-12-08)
添加wrapfigure支持。
捕获图像转换中的问题。
在TeX源中对图像旋转进行更稳健的处理。
移除unicode_literals的使用。
版本 0.1.1 (2015-12-04)
通过读取带有编码的文件,改进了从TeX文件中提取的功能。
版本 0.1.0 (2015-10-19)
最初由Invenio Software导出 <https://github.com/inveniosoftware/invenio>
重构为精简的独立版本
项目详情
下载文件
下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。
源代码发行版
plotextractor-1.0.9.tar.gz (58.6 MB 查看哈希值)
构建发行版
plotextractor-1.0.9-py3-none-any.whl (48.1 kB 查看哈希值)
关闭
plotextractor-1.0.9.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 4a1034d599232e4f78b624cccecd780b2fb197521fd2b415f2c08e2fdb0428c3 |
|
MD5 | 34ba100d8d2803e8252e9c35e8239144 |
|
BLAKE2b-256 | a88a7c9200e90d415bb03360a46047534e54cb9bf9022a2eeee51e1210d7c51a |
关闭
plotextractor-1.0.9-py3-none-any.whl的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 2557ec967146ec8d9cb8b090cada110c9be33aad0a74895dfe50b43519c12290 |
|
MD5 | 552d93b554f3b2554d0d6fa86f936a46 |
|
BLAKE2b-256 | 0786bd718fdc3f8d1a7cacf9a0aad5d65413a9fd23627bb441ed702d62c3ca02 |