Skip to content

Instantly share code, notes, and snippets.

View ForestRealms's full-sized avatar
🏠
Working from home

Glowberry ForestRealms

🏠
Working from home
  • Harbin Engineering University
  • 04:13 (UTC +08:00)
View GitHub Profile
package org.example;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
public class CollatzCalculator {
private static final BigInteger THREE = BigInteger.valueOf(3);
private static final BigInteger ONE = BigInteger.ONE;
@ForestRealms
ForestRealms / draw.py
Created November 10, 2025 02:14
Matplotlib使用自定义字体绘图
import matplotlib.font_manager as fm
import matplotlib
font_path="fonts/NotoSansSC-Regular.ttf"
fm.fontManager.addfont(font_path)
font_prop = fm.FontProperties(fname=font_path)
matplotlib.rcParams['font.family'] = "Noto Sans SC"
matplotlib.rcParams['font.weight'] = 'regular'
plt.rcParams["axes.unicode_minus"] = False