用ChatGPT 4o画漂亮的燃尽图代码

2024-06-13 13:12
文章标签 chatgpt 4o 燃尽 代码 漂亮 ai

本文主要是介绍用ChatGPT 4o画漂亮的燃尽图代码,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

把代码给ChatGPT,然后他就会帮我生成出来了。

而且图是动态的,可以调整颜色文字之类的内容

# Given data for Sprint 5 Progress
data_sprint_5 = {'User Story': ['BEAN-40', 'BEAN-42', 'BEAN-41', 'BEAN-22', 'BEAN-33', 'BEAN-44', 'BEAN-10', 'BEAN-26', 'BEAN-37', 'BEAN-36', 'BEAN-14', 'BEAN-39', 'BEAN-17', 'BEAN-38', 'BEAN-29', 'BEAN-9'],'Task': ['Build Test Framework Base on Python','Final Report','Summary Reports','As a staff member, I want to be able to send and receive messages so that I can communicate effectively with the customers and the managers','As a manager, I want to be able to send and receive messages so that I can communicate effectively with the customers and the managers','Design Test Cases','As a customer, I want to provide feedback on menu items so that I can contribute to improving the menu and share my experiences with the business','As a manager, I want to manage a points-based rewards system so that I can engage customers and drive sales','Should display the estimated preparation time, When selecting the option for immediate pickup','Add multiple quantities of the same item from the product page!','As a customer, I want to be able to send and receive messages so that I can communicate effectively with the staff members','Design Test Framework and Strategy','As a customer, I want to view and manage my points-based rewards section so that I can manage my points','Error info when click booking button','As a manager, I want to view management reports to gain insights into customer behaviour and preferences so that I can take informed business decisions','As a customer, I want to view my past orders so that I can easily reorder favourite items and track my purchase history'],'Developer': ['Cedar', 'Cedar', 'Cedar', 'Luke, Arjun', 'Luke, Arjun', 'Luke, Arjun', 'Luke, Arjun', 'Luke, Arjun', 'Luke, Arjun', 'Luke, Arjun', 'Luke, Arjun', 'Luke, Arjun', 'Luke, Arjun', 'Luke, Arjun', 'Luke, Arjun', 'Luke, Arjun'],'Estimated Hours': [10, 10, 10, 11, 9, 9, 12, 9, 12, 10, 5, 5, 5, 5, 5, 5]
}# Create a DataFrame from the given data
sprint_5_df = pd.DataFrame(data_sprint_5)# Dates for the sprint
dates_sprint_5 = pd.date_range(start="2024-06-05", end="2024-06-10")# Initialize remaining hours with total estimated hours at the start of the sprint
total_hours_sprint_5 = sprint_5_df['Estimated Hours'].sum()
remaining_hours_sprint_5 = total_hours_sprint_5
actual_burndown_sprint_5 = [remaining_hours_sprint_5]# Update remaining hours only when a task is completed
for i, row in sprint_5_df.iterrows():# For this example, assume all tasks are completedremaining_hours_sprint_5 -= row['Estimated Hours']actual_burndown_sprint_5.append(remaining_hours_sprint_5)# Extend the actual burndown to match the length of the dates if needed
while len(actual_burndown_sprint_5) < len(dates_sprint_5) + 1:actual_burndown_sprint_5.append(remaining_hours_sprint_5)# Ideal burndown calculation
ideal_burndown_sprint_5 = [total_hours_sprint_5 - (total_hours_sprint_5 / len(dates_sprint_5)) * i for i in range(len(dates_sprint_5))]# Ensure the lengths are the same for plotting
if len(actual_burndown_sprint_5) > len(dates_sprint_5) + 1:actual_burndown_sprint_5 = actual_burndown_sprint_5[:len(dates_sprint_5) + 1]# Plotting the Burndown Chart
plt.figure(figsize=(10, 6))
plt.plot(dates_sprint_5, ideal_burndown_sprint_5, label='Ideal Burn Down', linestyle='--')
plt.plot(dates_sprint_5.insert(0, dates_sprint_5[0] - pd.Timedelta(days=1)), actual_burndown_sprint_5, label='Remaining Effort', marker='o')
plt.xlabel('Date')
plt.ylabel('Hours Remaining')
plt.title('Sprint 5 Burndown Chart')
plt.legend()
plt.grid(True)
plt.xticks(dates_sprint_5, rotation=45)
plt.yticks(range(0, total_hours_sprint_5 + 1, 5))
plt.tight_layout()plt.show()

调整后的图

这篇关于用ChatGPT 4o画漂亮的燃尽图代码的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1057397

相关文章

揭秘未来艺术:AI绘画工具全面介绍

📑前言 随着科技的飞速发展,人工智能(AI)已经逐渐渗透到我们生活的方方面面。在艺术创作领域,AI技术同样展现出了其独特的魅力。今天,我们就来一起探索这个神秘而引人入胜的领域,深入了解AI绘画工具的奥秘及其为艺术创作带来的革命性变革。 一、AI绘画工具的崛起 1.1 颠覆传统绘画模式 在过去,绘画是艺术家们通过手中的画笔,蘸取颜料,在画布上自由挥洒的创造性过程。然而,随着AI绘画工

一份LLM资源清单围观技术大佬的日常;手把手教你在美国搭建「百万卡」AI数据中心;为啥大模型做不好简单的数学计算? | ShowMeAI日报

👀日报&周刊合集 | 🎡ShowMeAI官网 | 🧡 点赞关注评论拜托啦! 1. 为啥大模型做不好简单的数学计算?从大模型高考数学成绩不及格说起 司南评测体系 OpenCompass 选取 7 个大模型 (6 个开源模型+ GPT-4o),组织参与了 2024 年高考「新课标I卷」的语文、数学、英语考试,然后由经验丰富的判卷老师评判得分。 结果如上图所

uniapp接入微信小程序原生代码配置方案(优化版)

uniapp项目需要把微信小程序原生语法的功能代码嵌套过来,无需把原生代码转换为uniapp,可以配置拷贝的方式集成过来 1、拷贝代码包到src目录 2、vue.config.js中配置原生代码包直接拷贝到编译目录中 3、pages.json中配置分包目录,原生入口组件的路径 4、manifest.json中配置分包,使用原生组件 5、需要把原生代码包里的页面修改成组件的方

AI儿童绘本创作

之前分享过AI儿童绘画的项目,但是主要问题是角色一致要花费很长的时间! 今天发现了这款,非常奈斯! 只需输入故事主题、风格、模板,软件就会自动创作故事内容,自动生成插画配图,自动根据模板生成成品,测试效果如下图。 变现方式:生成儿童绘本发布到各平台,吸引宝妈群体进私域。  百度网盘 请输入提取码百度网盘为您提供文件的网络备份、同步和分享服务。空间大、速度快、安全

公共筛选组件(二次封装antd)支持代码提示

如果项目是基于antd组件库为基础搭建,可使用此公共筛选组件 使用到的库 npm i antdnpm i lodash-esnpm i @types/lodash-es -D /components/CommonSearch index.tsx import React from 'react';import { Button, Card, Form } from 'antd'

17.用300行代码手写初体验Spring V1.0版本

1.1.课程目标 1、了解看源码最有效的方式,先猜测后验证,不要一开始就去调试代码。 2、浓缩就是精华,用 300行最简洁的代码 提炼Spring的基本设计思想。 3、掌握Spring框架的基本脉络。 1.2.内容定位 1、 具有1年以上的SpringMVC使用经验。 2、 希望深入了解Spring源码的人群,对 Spring有一个整体的宏观感受。 3、 全程手写实现SpringM

代码随想录算法训练营:12/60

非科班学习算法day12 | LeetCode150:逆波兰表达式 ,Leetcode239: 滑动窗口最大值  目录 介绍 一、基础概念补充: 1.c++字符串转为数字 1. std::stoi, std::stol, std::stoll, std::stoul, std::stoull(最常用) 2. std::stringstream 3. std::atoi, std

记录AS混淆代码模板

开启混淆得先在build.gradle文件中把 minifyEnabled false改成true,以及shrinkResources true//去除无用的resource文件 这些是写在proguard-rules.pro文件内的 指定代码的压缩级别 -optimizationpasses 5 包明不混合大小写 -dontusemixedcaseclassnames 不去忽略非公共

人工和AI大语言模型成本对比 ai语音模型

这里既有AI,又有生活大道理,无数渺小的思考填满了一生。 上一专题搭建了一套GMM-HMM系统,来识别连续0123456789的英文语音。 但若不是仅针对数字,而是所有普通词汇,可能达到十几万个词,解码过程将非常复杂,识别结果组合太多,识别结果不会理想。因此只有声学模型是完全不够的,需要引入语言模型来约束识别结果。让“今天天气很好”的概率高于“今天天汽很好”的概率,得到声学模型概率高,又符合表达

智能客服到个人助理,国内AI大模型如何改变我们的生活?

引言 随着人工智能(AI)技术的高速发展,AI大模型越来越多地出现在我们的日常生活和工作中。国内的AI大模型在过去几年里取得了显著的进展,不少独创的技术点和实际应用令人瞩目。 那么,国内的AI大模型有哪些独创的技术点?它们在实际应用中又有哪些出色表现呢?此外,普通人又该如何利用这些大模型提升工作和生活的质量和效率呢?本文将为你一一解析。 一、国内AI大模型的独创技术点 多模态学习 多