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

Fix font family for svg #6423

Merged
merged 3 commits into from
Feb 2, 2024
Merged

Fix font family for svg #6423

merged 3 commits into from
Feb 2, 2024

Conversation

NoureldinYosri
Copy link
Collaborator

@NoureldinYosri NoureldinYosri commented Jan 24, 2024

As per https://matplotlib.org/3.5.0/api/font_manager_api.html#matplotlib.font_manager.FontProperties Arial is not a valid font family with the only options being 'sans-serif' (default), 'serif', 'cursive', 'fantasy', or 'monospace'

The invalid input doesn't raise an error and instead fails silently with a warning message which is visible in the notebooks
image

As per https://github.com/matplotlib/matplotlib/blob/f0c4c41d1a08bc3f53824cddc8fef7f88fc52a43/lib/matplotlib/mpl-data/stylelib/seaborn-v0_8.mplstyle#L18 Arial is part of the sans-serif family which is the default

@NoureldinYosri NoureldinYosri marked this pull request as ready for review January 24, 2024 21:41
@NoureldinYosri NoureldinYosri requested review from vtomole, cduck and a team as code owners January 24, 2024 21:41
Copy link

codecov bot commented Jan 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ee56c59) 97.81% compared to head (daed16f) 97.81%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6423      +/-   ##
==========================================
- Coverage   97.81%   97.81%   -0.01%     
==========================================
  Files        1111     1111              
  Lines       97121    97143      +22     
==========================================
+ Hits        95000    95018      +18     
- Misses       2121     2125       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@CirqBot CirqBot added the Size: XS <10 lines changed label Feb 1, 2024
@dabacon
Copy link
Collaborator

dabacon commented Feb 2, 2024

Did you verify some basic diagrams look basically correct? Assuming that, LGTM

@NoureldinYosri NoureldinYosri merged commit 9f07ce8 into main Feb 2, 2024
37 checks passed
@NoureldinYosri
Copy link
Collaborator Author

@dabacon
before
before
after
after

harry-phasecraft pushed a commit to PhaseCraft/Cirq that referenced this pull request Oct 31, 2024
* Fix font family for svg

* nit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Size: XS <10 lines changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants