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
Usetex demo is slow on windows #15802
Comments
Since the figure in the documentation is produced via the exact code that gets shown, we are sure that the code itself is fine. More generally, I suspect you may have a problem with your latex installation. Are you sure latex is installed correctly, and that latex.exe is in your system PATH? |
Sorry, using Matplotlib=3.1.1. I edited my post to include the pip freeze list so everything I have installed is listed. |
In case it was downloading some package in the background, it should now be much faster when run a second time. Is that what you observe? |
yes, but still it takes 7 sec. on an Core i7 8th Gen, windows 10, with 16GB
memory and SSD drive, it feels like eternity, but ok. No problem. thanks a
lot.
E. J. Barbero (Personal)
…On Mon, Dec 2, 2019 at 7:01 AM Elan Ernest ***@***.***> wrote:
In case it was downloading some package in the background, it should now
be much faster when run a second time. Is that what you observe?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#15802?email_source=notifications&email_token=AB2OOOKLXQAK4U5ZLW6F2ODQWT2JBA5CNFSM4JTMNZSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFTIIYI#issuecomment-560366689>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB2OOOPTBLJBFAPPOQ4FX4DQWT2JBANCNFSM4JTMNZSA>
.
|
Just FYI, with the usetex commented
# matplotlib.rc('text', usetex=True)
the plot renders instantly, almost no delay, while with usetex it takes 7
or 8 sec.
E. J. Barbero (Personal)
…On Mon, Dec 2, 2019 at 7:55 AM Elan Ernest ***@***.***> wrote:
Closed #15802 <#15802>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#15802?email_source=notifications&email_token=AB2OOOKNB5PXT7MSRLTGCUTQWUAVLA5CNFSM4JTMNZSKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOVGN5GTA#event-2845561676>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB2OOOILM75EIQLQXV7VGHTQWUAVLANCNFSM4JTMNZSA>
.
|
We have had reports of very slow render times when calling out latex in both windows and osx. How long does it take you to compile a trivial (~1 equation + required boiler plate) tex document on your system? |
From the cmd line, say, > latex helloworld!, with 1 equation, it is
instantaneous
From TexStudio a bit more, say 1 sec.
E. J. Barbero (Personal)
…On Mon, Dec 2, 2019 at 9:42 AM Thomas A Caswell ***@***.***> wrote:
We have had reports of very slow render times when calling out latex in
both windows and osx.
How long does it take you to compile a trivial (~1 equation + required
boiler plate) tex document on your system?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#15802?email_source=notifications&email_token=AB2OOOJF7DWEDC2PK3WZ4ODQWUNE5A5CNFSM4JTMNZSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFTWT4A#issuecomment-560425456>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB2OOOMKJBYYLUFOX3BHYB3QWUNE5ANCNFSM4JTMNZSA>
.
|
Running the example takes ~6 seconds for me on Windows with MikTeX. I didn't specifically test, but I would think running latex 13 times takes at least the same amount of time, so I didn't ever consider this unusual. Still, if this is considered unexpected, we can also reopen this? |
It is "well-known" that subprocesses are slow on Windows. Another idea may be to use the mylatexformat package to try saving a bit of time on the preamble loading? |
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help! |
Bug report
Bug summary
I just downloaded usetex_demo.html
from
https://matplotlib.org/3.1.1/gallery/text_labels_and_annotations/usetex_demo.html
I did not modify it, nothing at all. I just try to run it.
Code for reproduction
exactly what I downloaded.
Actual outcome
The canvas/figure appears on a window as usual when invoking plt.show() but it has no content and it is unresponsive. I have to kill it, which reports the problem to Microsoft.
Expected outcome
A figure similar to that shown on the documentation.
Matplotlib version
print(matplotlib.get_backend())
): TkAggpip freeze:
altgraph==0.16.1
astroid==2.3.2
cffi==1.13.2
colorama==0.4.1
cryptography==2.8
cx-Freeze==6.0
cycler==0.10.0
future==0.18.2
isort==4.3.21
kiwisolver==1.1.0
lazy-object-proxy==1.4.3
matplotlib==3.1.1
mccabe==0.6.1
numpy==1.17.3
pefile==2019.4.18
plint==0.1
pycparser==2.19
pylint==2.4.3
pyparsing==2.4.2
PyQt5==5.13.2
PyQt5-sip==12.7.0
python-dateutil==2.8.1
pywin32-ctypes==0.2.0
scipy==1.3.1
six==1.12.0
typed-ast==1.4.0
wrapt==1.11.2
"""
Usetex Demo
Shows how to use latex in a plot.
Also, refer to the :doc:
/tutorials/text/usetex
guide.This code from: https://matplotlib.org/3.1.1/gallery/text_labels_and_annotations/usetex_demo.html
The text was updated successfully, but these errors were encountered: