INNER CODE UNIT · Python

create_svg

ermaozi/get_subscribe · get_projaec_info.py:56

def create_svg(project, datas, save_path, theme=""):

    fig, ax = plt.subplots(figsize=(12, 5))

    # 设置透明
    fig.patch.set_alpha(.0)
    ax.patch.set_alpha(.0)

    # 坐标
    ax.tick_params(color='darkgrey', labelcolor='darkgrey')

    # 坐标轴
    plt.gca().yaxis.set_major_locator(MaxNLocator(integer=True))
    ax.spines['top'].set_color('none')
    ax.spines['bottom'].set_color("darkgrey")
    ax.spines['left'].set_color("darkgrey")
    ax.spines['right'].set_color('none')

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…