Skip to content

Instantly share code, notes, and snippets.

@zhowzeng
zhowzeng / fix_matplotlib_chinese.md
Last active December 6, 2023 03:54
修理 matplotlib 中文顯示錯誤
  1. 取得字體 (e.g. Droid-Sans-Fallback.ttf) 放到 <venv>/lib/python3.8/site-packages/matplotlib/mpl-data/fonts/ttf/

  2. 編輯 <venv>/lib/python3.8/site-packages/matplotlib/mpl-data/matplotlibrc:257

    反註解兩行,把字體名稱加上去,注意到 Droid-Sans-Fallback- 要用 代替,並且放在最前面

    - #font.family:  sans-serif
    + font.family:  sans-serif
    #font.style:   normal
    #font.variant: normal

Your-Project-Title

Description

Provide a short description explaining the what, why, and how of your project. Use the following questions as a guide:

  • What was your motivation?
  • Why did you build this project? (Note: the answer is not "Because it was a homework assignment.")
  • What problem does it solve?
  • What did you learn?

[Strategy] Initiative Name

This is a generic doc for any directional discussion. You can mold it to your use case (e.g. major eng initiative, team strategy, partnership alignment, etc)

Problem Context

Where are we today? Explain relevant context for the reader to understand the problem or opportunity you’re going after.

North Star

PR 1-liner Title

Tl;dr:

[optional] 1-liner if the context of the change is long

Context:

Few sentences on the high level context for the change. Link to relevant design docs or discussion.

[Postmortem] 1-liner title of what broke

You might not have all the answers for how we can do better next time. You can use this doc to structure retrospective discussions with your team.

Overview:

  • What broke?
  • Why did it break? What was the root cause?
  • Who does the breakage affect? How severe was it?

[Design Doc] Your Project Name

Design docs are a way to propose future work and get detailed technical feedback.

Problem Context

Brief description of what the problem or opportunity is. Give an overview of the domain and pain points. What is the current solution? Give some details about what its shortcomings are.

Proposed Solution