Jimmyisme
V2EX  ›  OpenAI

ChatGPT 的 matplotlib 更新配色了😃

  •  
  •   Jimmyisme · May 10, 2024 · 2039 views
    This topic created in 745 days ago, the information mentioned may be changed or developed.

    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
    
    
    SiLenceControL
        1
    SiLenceControL  
       May 11, 2024
    孤陋寡闻了,作为一个 CFDer 都不知道可以用 GPT 运行 py
    Jimmyisme
        2
    Jimmyisme  
    OP
       May 11, 2024
    @SiLenceControL CFD“计算流体动力学( Computational Fluid Dynamics, CFD )”?
    SiLenceControL
        3
    SiLenceControL  
       May 11, 2024
    maymay5
        4
    maymay5  
       May 11, 2024

    去年用 API 做的一个小功能
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5900 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 466ea39e · 70ms · UTC 03:34 · PVG 11:34 · LAX 20:34 · JFK 23:34
    ♥ Do have faith in what you're doing.