Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Kwan的解忧杂货铺@新空间代码工作室
python-demo
提交
60e30dc4
P
python-demo
项目概览
Kwan的解忧杂货铺@新空间代码工作室
/
python-demo
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
python-demo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
60e30dc4
编写于
8月 14, 2024
作者:
秦
秦英杰
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:图形相关
上级
5507acaa
变更
5
展开全部
隐藏空白更改
内联
并排
Showing
5 changed file
with
37 addition
and
35 deletion
+37
-35
.idea/workspace.xml
.idea/workspace.xml
+30
-22
09_可视化案例/11_GDP动态柱状图开发.py
09_可视化案例/11_GDP动态柱状图开发.py
+3
-9
09_可视化案例/12_测试颜色.py
09_可视化案例/12_测试颜色.py
+4
-4
09_可视化案例/1960-2019全球GDP前8国家.html
09_可视化案例/1960-2019全球GDP前8国家.html
+0
-0
09_可视化案例/颜色测试.html
09_可视化案例/颜色测试.html
+0
-0
未找到文件。
.idea/workspace.xml
浏览文件 @
60e30dc4
...
...
@@ -4,13 +4,11 @@
<option
name=
"autoReloadType"
value=
"SELECTIVE"
/>
</component>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"a58667c7-f41c-4f13-881e-dc86f57d3cdc"
name=
"Changes"
comment=
"fix:python扩展模块"
>
<change
afterPath=
"$PROJECT_DIR$/09_可视化案例/11_GDP动态柱状图开发.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/09_可视化案例/02_pyecharts基础入门.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/09_可视化案例/02_pyecharts基础入门.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/09_可视化案例/11_csdn红包累计金额排名.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/09_可视化案例/13_csdn红包累计金额排名.py"
afterDir=
"false"
/>
<list
default=
"true"
id=
"a58667c7-f41c-4f13-881e-dc86f57d3cdc"
name=
"Changes"
comment=
"fix:图形处理"
>
<change
beforePath=
"$PROJECT_DIR$/09_可视化案例/11_GDP动态柱状图开发.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/09_可视化案例/11_GDP动态柱状图开发.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/09_可视化案例/12_测试颜色.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/09_可视化案例/12_测试颜色.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/09_可视化案例/1960-2019全球GDP前8国家.html"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/09_可视化案例/1960-2019全球GDP前8国家.html"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/09_可视化案例/
GDP展示.html"
before
Dir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/09_可视化案例/
颜色测试.html"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/09_可视化案例/颜色测试.html"
after
Dir=
"false"
/>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
...
@@ -85,6 +83,7 @@
"Python.12_二维表格.executor": "Debug",
"Python.12_字典.executor": "Debug",
"Python.12_循环中断.executor": "Debug",
"Python.12_测试颜色.executor": "Debug",
"Python.12_集合课后练习.executor": "Debug",
"Python.13_全局修改.executor": "Debug",
"Python.13_字典的常用操作.executor": "Debug",
...
...
@@ -126,7 +125,7 @@
<recent
name=
"$PROJECT_DIR$/06_数据容器/02-元组"
/>
</key>
</component>
<component
name=
"RunManager"
selected=
"Python.1
1_GDP动态柱状图开发
"
>
<component
name=
"RunManager"
selected=
"Python.1
2_测试颜色
"
>
<configuration
name=
"01_json数据格式"
type=
"PythonConfigurationType"
factoryName=
"Python"
temporary=
"true"
nameIsGenerated=
"true"
>
<module
name=
"python-demo"
/>
<option
name=
"ENV_FILES"
value=
""
/>
...
...
@@ -173,7 +172,7 @@
<option
name=
"INPUT_FILE"
value=
""
/>
<method
v=
"2"
/>
</configuration>
<configuration
name=
"1
0_扩展_os
"
type=
"PythonConfigurationType"
factoryName=
"Python"
temporary=
"true"
nameIsGenerated=
"true"
>
<configuration
name=
"1
1_GDP动态柱状图开发
"
type=
"PythonConfigurationType"
factoryName=
"Python"
temporary=
"true"
nameIsGenerated=
"true"
>
<module
name=
"python-demo"
/>
<option
name=
"ENV_FILES"
value=
""
/>
<option
name=
"INTERPRETER_OPTIONS"
value=
""
/>
...
...
@@ -182,12 +181,12 @@
<env
name=
"PYTHONUNBUFFERED"
value=
"1"
/>
</envs>
<option
name=
"SDK_HOME"
value=
""
/>
<option
name=
"WORKING_DIRECTORY"
value=
"$PROJECT_DIR$/0
8_异常_模块_包
"
/>
<option
name=
"WORKING_DIRECTORY"
value=
"$PROJECT_DIR$/0
9_可视化案例
"
/>
<option
name=
"IS_MODULE_SDK"
value=
"true"
/>
<option
name=
"ADD_CONTENT_ROOTS"
value=
"true"
/>
<option
name=
"ADD_SOURCE_ROOTS"
value=
"true"
/>
<EXTENSION
ID=
"PythonCoverageRunConfigurationExtension"
runner=
"coverage.py"
/>
<option
name=
"SCRIPT_NAME"
value=
"$PROJECT_DIR$/0
8_异常_模块_包/10_扩展_os
.py"
/>
<option
name=
"SCRIPT_NAME"
value=
"$PROJECT_DIR$/0
9_可视化案例/11_GDP动态柱状图开发
.py"
/>
<option
name=
"PARAMETERS"
value=
""
/>
<option
name=
"SHOW_COMMAND_LINE"
value=
"false"
/>
<option
name=
"EMULATE_TERMINAL"
value=
"false"
/>
...
...
@@ -196,7 +195,7 @@
<option
name=
"INPUT_FILE"
value=
""
/>
<method
v=
"2"
/>
</configuration>
<configuration
name=
"11_
GDP动态柱状图开发
"
type=
"PythonConfigurationType"
factoryName=
"Python"
temporary=
"true"
nameIsGenerated=
"true"
>
<configuration
name=
"11_
扩展_sys
"
type=
"PythonConfigurationType"
factoryName=
"Python"
temporary=
"true"
nameIsGenerated=
"true"
>
<module
name=
"python-demo"
/>
<option
name=
"ENV_FILES"
value=
""
/>
<option
name=
"INTERPRETER_OPTIONS"
value=
""
/>
...
...
@@ -205,12 +204,12 @@
<env
name=
"PYTHONUNBUFFERED"
value=
"1"
/>
</envs>
<option
name=
"SDK_HOME"
value=
""
/>
<option
name=
"WORKING_DIRECTORY"
value=
"$PROJECT_DIR$/0
9_可视化案例
"
/>
<option
name=
"WORKING_DIRECTORY"
value=
"$PROJECT_DIR$/0
8_异常_模块_包
"
/>
<option
name=
"IS_MODULE_SDK"
value=
"true"
/>
<option
name=
"ADD_CONTENT_ROOTS"
value=
"true"
/>
<option
name=
"ADD_SOURCE_ROOTS"
value=
"true"
/>
<EXTENSION
ID=
"PythonCoverageRunConfigurationExtension"
runner=
"coverage.py"
/>
<option
name=
"SCRIPT_NAME"
value=
"$PROJECT_DIR$/0
9_可视化案例/11_GDP动态柱状图开发
.py"
/>
<option
name=
"SCRIPT_NAME"
value=
"$PROJECT_DIR$/0
8_异常_模块_包/11_扩展_sys
.py"
/>
<option
name=
"PARAMETERS"
value=
""
/>
<option
name=
"SHOW_COMMAND_LINE"
value=
"false"
/>
<option
name=
"EMULATE_TERMINAL"
value=
"false"
/>
...
...
@@ -219,7 +218,7 @@
<option
name=
"INPUT_FILE"
value=
""
/>
<method
v=
"2"
/>
</configuration>
<configuration
name=
"1
1_扩展_sys
"
type=
"PythonConfigurationType"
factoryName=
"Python"
temporary=
"true"
nameIsGenerated=
"true"
>
<configuration
name=
"1
2_测试颜色
"
type=
"PythonConfigurationType"
factoryName=
"Python"
temporary=
"true"
nameIsGenerated=
"true"
>
<module
name=
"python-demo"
/>
<option
name=
"ENV_FILES"
value=
""
/>
<option
name=
"INTERPRETER_OPTIONS"
value=
""
/>
...
...
@@ -228,12 +227,12 @@
<env
name=
"PYTHONUNBUFFERED"
value=
"1"
/>
</envs>
<option
name=
"SDK_HOME"
value=
""
/>
<option
name=
"WORKING_DIRECTORY"
value=
"$PROJECT_DIR$/0
8_异常_模块_包
"
/>
<option
name=
"WORKING_DIRECTORY"
value=
"$PROJECT_DIR$/0
9_可视化案例
"
/>
<option
name=
"IS_MODULE_SDK"
value=
"true"
/>
<option
name=
"ADD_CONTENT_ROOTS"
value=
"true"
/>
<option
name=
"ADD_SOURCE_ROOTS"
value=
"true"
/>
<EXTENSION
ID=
"PythonCoverageRunConfigurationExtension"
runner=
"coverage.py"
/>
<option
name=
"SCRIPT_NAME"
value=
"$PROJECT_DIR$/0
8_异常_模块_包/11_扩展_sys
.py"
/>
<option
name=
"SCRIPT_NAME"
value=
"$PROJECT_DIR$/0
9_可视化案例/12_测试颜色
.py"
/>
<option
name=
"PARAMETERS"
value=
""
/>
<option
name=
"SHOW_COMMAND_LINE"
value=
"false"
/>
<option
name=
"EMULATE_TERMINAL"
value=
"false"
/>
...
...
@@ -244,11 +243,11 @@
</configuration>
<recent_temporary>
<list>
<item
itemvalue=
"Python.12_测试颜色"
/>
<item
itemvalue=
"Python.11_GDP动态柱状图开发"
/>
<item
itemvalue=
"Python.02_pyecharts基础入门"
/>
<item
itemvalue=
"Python.01_json数据格式"
/>
<item
itemvalue=
"Python.11_扩展_sys"
/>
<item
itemvalue=
"Python.10_扩展_os"
/>
</list>
</recent_temporary>
</component>
...
...
@@ -285,7 +284,7 @@
<workItem
from=
"1723172814421"
duration=
"597000"
/>
<workItem
from=
"1723384402969"
duration=
"2627000"
/>
<workItem
from=
"1723515969381"
duration=
"2539000"
/>
<workItem
from=
"1723604005437"
duration=
"
2829
000"
/>
<workItem
from=
"1723604005437"
duration=
"
4042
000"
/>
</task>
<task
id=
"LOCAL-00001"
summary=
"fix:基础语法"
>
<option
name=
"closed"
value=
"true"
/>
...
...
@@ -399,7 +398,15 @@
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1723518447733
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"15"
/>
<task
id=
"LOCAL-00015"
summary=
"fix:图形处理"
>
<option
name=
"closed"
value=
"true"
/>
<created>
1723606844887
</created>
<option
name=
"number"
value=
"00015"
/>
<option
name=
"presentableId"
value=
"LOCAL-00015"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1723606844887
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"16"
/>
<servers
/>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
...
...
@@ -417,7 +424,8 @@
<MESSAGE
value=
"fix:数据容器"
/>
<MESSAGE
value=
"fix:切片"
/>
<MESSAGE
value=
"fix:python扩展模块"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"fix:python扩展模块"
/>
<MESSAGE
value=
"fix:图形处理"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"fix:图形处理"
/>
</component>
<component
name=
"XDebuggerManager"
>
<breakpoint-manager>
...
...
@@ -445,7 +453,7 @@
<SUITE
FILE_PATH=
"coverage/python_demo$test.coverage"
NAME=
"test Coverage Results"
MODIFIED=
"1722357540717"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"coverage.py"
COVERAGE_BY_TEST_ENABLED=
"false"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$/06_数据容器/01-列表"
/>
<SUITE
FILE_PATH=
"coverage/python_demo$09__random_07.coverage"
NAME=
"09_扩展_random_07 Coverage Results"
MODIFIED=
"1723518352125"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"coverage.py"
COVERAGE_BY_TEST_ENABLED=
"false"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$/08_异常_模块_包"
/>
<SUITE
FILE_PATH=
"coverage/python_demo$08_range.coverage"
NAME=
"08_range语句 Coverage Results"
MODIFIED=
"1721556367543"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"coverage.py"
COVERAGE_BY_TEST_ENABLED=
"false"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$/03_Python循环语句"
/>
<SUITE
FILE_PATH=
"coverage/python_demo$12_.coverage"
NAME=
"12_
字典 Coverage Results"
MODIFIED=
"1722349111768"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"coverage.py"
COVERAGE_BY_TEST_ENABLED=
"false"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$/06_数据容器/05-字典
"
/>
<SUITE
FILE_PATH=
"coverage/python_demo$12_.coverage"
NAME=
"12_
测试颜色 Coverage Results"
MODIFIED=
"1723613583898"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"coverage.py"
COVERAGE_BY_TEST_ENABLED=
"false"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$/09_可视化案例
"
/>
<SUITE
FILE_PATH=
"coverage/python_demo$03_while_.coverage"
NAME=
"03_while循环的基础案例-猜数字 Coverage Results"
MODIFIED=
"1721555570203"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"coverage.py"
COVERAGE_BY_TEST_ENABLED=
"false"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$/03_Python循环语句"
/>
<SUITE
FILE_PATH=
"coverage/python_demo$09__random_04.coverage"
NAME=
"09_扩展_random_04 Coverage Results"
MODIFIED=
"1723517116141"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"coverage.py"
COVERAGE_BY_TEST_ENABLED=
"false"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$/08_异常_模块_包"
/>
<SUITE
FILE_PATH=
"coverage/python_demo$02_pyecharts.coverage"
NAME=
"02_pyecharts基础入门 Coverage Results"
MODIFIED=
"1723604423923"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"coverage.py"
COVERAGE_BY_TEST_ENABLED=
"false"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$/09_可视化案例"
/>
...
...
@@ -472,7 +480,7 @@
<SUITE
FILE_PATH=
"coverage/python_demo$16_.coverage"
NAME=
"16_字符串大小比较 Coverage Results"
MODIFIED=
"1722347348048"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"coverage.py"
COVERAGE_BY_TEST_ENABLED=
"false"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$/06_数据容器/02-字符串"
/>
<SUITE
FILE_PATH=
"coverage/python_demo$test_03.coverage"
NAME=
"test_03 Coverage Results"
MODIFIED=
"1722331784529"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"coverage.py"
COVERAGE_BY_TEST_ENABLED=
"false"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$/05_函数进阶"
/>
<SUITE
FILE_PATH=
"coverage/python_demo$11__sys.coverage"
NAME=
"11_扩展_sys Coverage Results"
MODIFIED=
"1723518427522"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"coverage.py"
COVERAGE_BY_TEST_ENABLED=
"false"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$/08_异常_模块_包"
/>
<SUITE
FILE_PATH=
"coverage/python_demo$11_GDP.coverage"
NAME=
"11_GDP动态柱状图开发 Coverage Results"
MODIFIED=
"172360
6785514
"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"coverage.py"
COVERAGE_BY_TEST_ENABLED=
"false"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$/09_可视化案例"
/>
<SUITE
FILE_PATH=
"coverage/python_demo$11_GDP.coverage"
NAME=
"11_GDP动态柱状图开发 Coverage Results"
MODIFIED=
"172360
7065005
"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"coverage.py"
COVERAGE_BY_TEST_ENABLED=
"false"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$/09_可视化案例"
/>
<SUITE
FILE_PATH=
"coverage/python_demo$11_.coverage"
NAME=
"11_集合课后练习 Coverage Results"
MODIFIED=
"1722348874600"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"coverage.py"
COVERAGE_BY_TEST_ENABLED=
"false"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$/06_数据容器/04-集合"
/>
</component>
</project>
\ No newline at end of file
09_可视化案例/11_GDP动态柱状图开发.py
浏览文件 @
60e30dc4
...
...
@@ -51,20 +51,14 @@ for year in sorted_year_list:
label_opts
=
opts
.
LabelOpts
(
position
=
"right"
,
font_size
=
"15px"
),
# itemstyle_opts=opts.ItemStyleOpts(color=colors[:len(y_data)]),
)
# for i in range(len(x_data)):
# bar.add_xaxis([x_data[i]])
# bar.add_yaxis(
# "GDP(亿)",
# [y_data[i]],
# label_opts=opts.LabelOpts(position="right"),
# itemstyle_opts=opts.ItemStyleOpts(color=colors[i % len(colors)])
# )
# 反转x轴和y轴
bar
.
reversal_axis
()
# 设置每一年的图表的标题
bar
.
set_global_opts
(
title_opts
=
opts
.
TitleOpts
(
title
=
f
"
{
year
}
年全球前8GDP数据"
)
title_opts
=
opts
.
TitleOpts
(
title
=
f
"
{
year
}
年全球前8GDP数据"
),
xaxis_opts
=
opts
.
AxisOpts
(
axislabel_opts
=
opts
.
LabelOpts
(
font_size
=
12
)),
yaxis_opts
=
opts
.
AxisOpts
(
axislabel_opts
=
opts
.
LabelOpts
(
font_size
=
12
)),
)
timeline
.
add
(
bar
,
str
(
year
))
...
...
09_可视化案例/12_测试颜色.py
浏览文件 @
60e30dc4
...
...
@@ -45,13 +45,13 @@ for year in sorted_year_list:
x_data
.
reverse
()
y_data
.
reverse
()
bar
.
add_xaxis
(
x_data
)
colors
=
[
'rgba(128, 128, 128, 0.5)'
]
colors
=
[
'rgba(128, 128, 128, 0.5)'
]
# colors=['rgba(128, 128, 128, 0.5)','red','red','red','red','red','red','red']
bar
.
add_yaxis
(
"红包数据"
,
y_data
,
itemstyle_opts
=
opts
.
ItemStyleOpts
(
# color="red"
color
=
"blue"
)
# color="red"
color
=
"blue"
)
,
label_opts
=
LabelOpts
(
position
=
"right"
))
bar
.
reversal_axis
()
...
...
09_可视化案例/1960-2019全球GDP前8国家.html
浏览文件 @
60e30dc4
此差异已折叠。
点击以展开。
09_可视化案例/颜色测试.html
浏览文件 @
60e30dc4
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录