V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Jimmyisme
V2EX  ›  OpenAI

ChatGPT 的 matplotlib 更新配色了😃

  •  
  •   Jimmyisme · 10 天前 · 878 次点击

    https://chat.openai.com/share/ec394255-a84f-4414-9f8b-48d36db29e3c

    比之前的颜色多了不少

    Before:

    image

    After:

    image

    
    text.color : (0.2,0.2,0.2)
    
    # AXES
    axes.titlesize : 16
    axes.labelsize : 12
    axes.edgecolor : (0.1,0.1,0.1) #Normalized RGB colours (from 0 to 1 instead of 0 to 255)
    axes.labelcolor : (0.1,0.1,0.1)
    axes.linewidth : 1
    axes.spines.top : False
    axes.spines.right : False
    axes.spines.bottom : True
    axes.spines.left : True
    
    # GRID
    axes.grid : True
    grid.alpha : 0.7
    grid.linestyle : --
    grid.linewidth : 0.6
    
    # LINES
    axes.prop_cycle : cycler('color', ['FFAF00', 'F46920','F53255', 'F857C1', '29BDFD','00CBBF', '01C159', '9DCA1C',]) #hex colours
    lines.linewidth : 1.5
    lines.markeredgewidth : 0.0
    
    # SCATTER PLOT
    scatter.marker : x
    
    # TICKS
    xtick.labelsize : 12
    xtick.color : (0.1,0.1,0.1)
    xtick.direction : in
    ytick.labelsize : 12
    ytick.color : (0.1,0.1,0.1)
    ytick.direction : in
    
    # FIGURE OUTPUT 
    figure.figsize  : 10, 6
    figure.dpi : 200
    savefig.dpi : 200
    
    
    4 条回复
    SiLenceControL
        1
    SiLenceControL  
       10 天前
    孤陋寡闻了,作为一个 CFDer 都不知道可以用 GPT 运行 py
    Jimmyisme
        2
    Jimmyisme  
    OP
       9 天前
    @SiLenceControL CFD“计算流体动力学( Computational Fluid Dynamics, CFD )”?
    SiLenceControL
        3
    SiLenceControL  
       9 天前
    maymay5
        4
    maymay5  
       9 天前

    去年用 API 做的一个小功能
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1009 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 19:49 · PVG 03:49 · LAX 12:49 · JFK 15:49
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.