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

Add more fonts to avoid errors #216

Merged
merged 1 commit into from
Sep 23, 2024
Merged

Conversation

JohnAZoidberg
Copy link
Contributor

@JohnAZoidberg JohnAZoidberg commented Sep 23, 2024

Fixes #213

Describe your changes
I had the following errors on my system.

findfont: Generic family 'sans-serif' not found because none of the following families were found: Helvetica, Bitstream Vera Sans, Lucida Grande, Verdana, Geneva, Lucid, Arial, Avant Garde, sans-serif
findfont: Generic family 'monospace' not found because none of the following families were found: Decima Mono, Bitstream Vera Sans Mono, Andale Mono, Nimbus Mono L, Courier New, Courier, Fixed, Terminal, monospace

I tried to install the fonts but I couldn't make it find it. So I ran the following commands and added the fonts it showed to the configuration file.

>>> import matplotlib as plt
>>> ', '.join(plt.rcParams['font.sans-serif'])
>>> ', '.join(plt.rcParams['font.monospace'])

Checklist

  • Test cases have been modified/added to cover any code changes.
  • Docstrings have been modified/created for any code changes.
  • All linting and formatting checks pass (see the contributing guidelines for more information).

@github-actions github-actions bot added the plotting Work relating to plotting module label Sep 23, 2024
Copy link

codecov bot commented Sep 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.41%. Comparing base (51b8d26) to head (d2828a2).
Report is 19 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #216      +/-   ##
==========================================
- Coverage   98.42%   98.41%   -0.01%     
==========================================
  Files          43       43              
  Lines        1775     1766       -9     
  Branches      358      357       -1     
==========================================
- Hits         1747     1738       -9     
  Misses         25       25              
  Partials        3        3              

I had the following errors on my system.

```
findfont: Generic family 'sans-serif' not found because none of the following families were found: Helvetica, Bitstream Vera Sans, Lucida Grande, Verdana, Geneva, Lucid, Arial, Avant Garde, sans-serif
findfont: Generic family 'monospace' not found because none of the following families were found: Decima Mono, Bitstream Vera Sans Mono, Andale Mono, Nimbus Mono L, Courier New, Courier, Fixed, Terminal, monospace
```

I tried to install the fonts but I couldn't make it find it.
So I ran the following commands and added the fonts it showed to the configuration file.

```
>>> import matplotlib as plt
>>> ', '.join(plt.rcParams['font.sans-serif'])
>>> ', '.join(plt.rcParams['font.monospace'])
```

Signed-off-by: Daniel Schaefer <[email protected]>
@stefmolin stefmolin added this to the 0.3.0 milestone Sep 23, 2024
Copy link
Owner

@stefmolin stefmolin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @JohnAZoidberg!

@stefmolin stefmolin merged commit fcefd6c into stefmolin:main Sep 23, 2024
19 checks passed
@JohnAZoidberg JohnAZoidberg deleted the more-fonts branch September 23, 2024 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plotting Work relating to plotting module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Specify additional font options for Google colab
2 participants