Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Warning message prior to fc-list command#5640

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
tacaswell merged 2 commits intomatplotlib:masterfromnotmatthancock:master
Dec 23, 2015

Conversation

notmatthancock
Copy link
Contributor

When the font cache is first created,fc-list may take up to several minutes on some machines. No indication is given that this is being done. This adds a warning so the user is aware.

#2919

@mdboommdboom added this to theCritical bugfix release (1.5.1) milestoneDec 9, 2015
@mdboom
Copy link
Member

👍

@mdboom
Copy link
Member

Eventually#5414 will fix this altogether, but this is fine for now.

@jenshnielsen
Copy link
Member

👍

I would change the text to something like

"Building Matplotlib font cache by running fc-list. This could take a few minutes."

@WeatherGod
Copy link
Member

Maybe "Matplotlib is building {cachename} using fc-list. This may take a moment".

I prefer "moment" over "minutes" because it is ambiguous and thus a bit future-proof. Each person's perception of a moment is shaped by the computer they are using, so it is a bit more flexible, too.

tacaswell added a commit that referenced this pull requestDec 23, 2015
Warning message prior to fc-list command
@tacaswelltacaswell merged commit6e684d1 intomatplotlib:masterDec 23, 2015
tacaswell added a commit that referenced this pull requestDec 23, 2015
Warning message prior to fc-list command
tacaswell added a commit that referenced this pull requestDec 23, 2015
Warning message prior to fc-list command
@tacaswell
Copy link
Member

backported to 2.x asc4a94e5 and v1.5.x as0823022 (because I did not read the milestone carefully enough).

@pelegm
Copy link

One thing I don't understand: why is it giving this warning every time I load matplotlib? Does it build the font cache every time?

@mdboom
Copy link
Member

It should only be rebuilding each time if it doesn't have write permissions to~/.matplotlib (or~/.cache/matplotlib on Linux).

@pelegm
Copy link

@mdboom, thanks for your quick reply. I am using Ubuntu, my user owns~/.cache and~/.cache/matplotlib, and there's indeedfontList.cache file there, but it dates to April last year. Importing matplotlib.pyplot does not seem to touch that file.

@jenshnielsen
Copy link
Member

Do you own that file too and have user write access to it?

@pelegm
Copy link

Sure:

peleg@lati::~/.cache/matplotlib$ ls -latotal 308drwxrwxr-x  3 peleg peleg   4096 Jan 11 18:43 .drwx------ 50 peleg peleg   4096 Jan 11 11:08 ..-rw-rw-r--  1 peleg peleg 161444 Apr  6  2015 fontList.cache-rw-rw-r--  1 peleg peleg 138010 Apr 24  2015 fontList.py3k.cachedrwxrwxr-x  2 peleg peleg   4096 Apr  6  2015 tex.cache

(owner write access...)

@jenshnielsen
Copy link
Member

Which version are you using 1.5.x and 2.x uses a binary font cache but
on master it is changed to using a json fine see#5021

I would suggest moving those files out of the way and try again if you are using 1.5.1 or on the 2.x branch.

@pelegm
Copy link

I am using matplotlib 1.5.1, just downloaded via pip.

I have removed the files as you suggested, and after they were created again (during the first time I've importedmatplotlib.pyplot), the warning does not appear any more. Thanks for your help!

@ryanfreckleton
Copy link

I run into similar behavior when opening both my system matplotlib of 1.3.1 and my installed version of 1.5.1. Apparently the older file format with matplotlib 1.3.1 always causes matplotlib 1.5.1 to rescan, but not update the file.

dunneff reacted with thumbs up emoji

@RichardoC
Copy link

I'm glad this warning is here as it means I know to wait for it to run.@pelegm I found that if I deleted everything in ~/.matplotlib (I'm on OSX) it generated once and I've not had the message since.

MountainRider reacted with thumbs up emoji

joslloand added a commit to ambisonictoolkit/atk-sc3 that referenced this pull requestJul 15, 2016
commit for the figures for#11Will need to follow with an update to SCHelp describing the scales[gain, r, theta]NOTE: Fonts and scaling have changed as a result of an issue withanaconda/matplotlib. Some relevant issues can be found here:fonnesbeck/ScipySuperpack#39matplotlib/matplotlib#5836matplotlib/matplotlib#5640matplotlib/matplotlib#6721matplotlib/matplotlib#3590
joslloand added a commit to supercollider/sc3-plugins that referenced this pull requestJul 16, 2016
More verbose Intro-to-the-ATK. Describe in more detail how to readtransform figures with description of sound field quality measure, rE.Transform plots now illustrate rE rather than rV, which is more closelytied to perception.NOTE: Fonts and scaling have changed as a result of an issue withanaconda/matplotlib. Some relevant issues can be found here:fonnesbeck/ScipySuperpack#39matplotlib/matplotlib#5836matplotlib/matplotlib#5640matplotlib/matplotlib#6721matplotlib/matplotlib#3590
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v1.5.1
Development

Successfully merging this pull request may close these issues.

8 participants
@notmatthancock@mdboom@jenshnielsen@WeatherGod@tacaswell@pelegm@ryanfreckleton@RichardoC

[8]ページ先頭

©2009-2025 Movatter.jp