Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

绘图出现错误 #24

Open
momo-github-1984 opened this issue Sep 24, 2020 · 3 comments
Open

绘图出现错误 #24

momo-github-1984 opened this issue Sep 24, 2020 · 3 comments

Comments

@momo-github-1984
Copy link

已经安装了latex,但还是报错了,请问是什么原因造成的呢?

以下是部分错误报告:
Here is the full report generated by latex:
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian) (preloaded format=latex)
restricted \write18 enabled.
entering extended mode
(/home/mo/.cache/matplotlib/tex.cache/605ab5cb88e476a4ef8fa458b494e5ef.tex
LaTeX2e <2017-04-15>
Babel <3.18> and hyphenation patterns for 84 language(s) loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texlive/texmf-dist/tex/latex/type1cm/type1cm.sty)
(/usr/share/texmf/tex/latex/cm-super/type1ec.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/t1cmr.fd))
(/usr/share/texlive/texmf-dist/tex/latex/psnfss/helvet.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty))
(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/utf8.def
(/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.dfu)
(/usr/share/texlive/texmf-dist/tex/latex/base/ot1enc.dfu)
(/usr/share/texlive/texmf-dist/tex/latex/base/omsenc.dfu)))
(/usr/share/texlive/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty)

Package geometry Warning: Over-specification in h'-direction. width' (5058.9pt) is ignored.

Package geometry Warning: Over-specification in v'-direction. height' (5058.9pt) is ignored.

) (/usr/share/texlive/texmf-dist/tex/latex/base/textcomp.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/ts1enc.def
(/usr/share/texlive/texmf-dist/tex/latex/base/ts1enc.dfu)))
(./605ab5cb88e476a4ef8fa458b494e5ef.aux)
(/usr/share/texlive/texmf-dist/tex/latex/base/ts1cmr.fd)
geometry driver: auto-detecting
geometry detected driver: dvips
(/usr/share/texlive/texmf-dist/tex/latex/psnfss/ot1phv.fd)
! Missing $ inserted.

$
l.19 {\sffamily [0.475] DCF_
HOG}
No pages of output.
Transcript written on 605ab5cb88e476a4ef8fa458b494e5ef.log.

@huang299
Copy link

卸了再安装

@franktpmvu
Copy link

franktpmvu commented Aug 23, 2022

這是因為你的l.19 {\sffamily [0.475] DCF_
HOG}使用了對lasot來說非法的字元"_"

可以在draw_success_precision.py 裡面把所有的
label = r"\textbf{[%.3f] %s}" % (pre, tracker_name)
label = "[%.3f] " % (pre) + tracker_name

update to :

label = r"\textbf{[%.3f] %s}" % (pre, tracker_name.replace("底線","-"))
label = "[%.3f] " % (pre) + tracker_name.replace("底線","-")

不知道為什麼這裡的編輯器顯示異常,麻煩把雙引號裡面的"底線"改為 "_"

@huang299
Copy link

huang299 commented Aug 23, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants