当前位置: 首页 > news >正文

django做网站和js做网站公司优化是什么意思

django做网站和js做网站,公司优化是什么意思,深圳网站建设 公司元,公众号编辑器哪个好# 昨日知识点回顾 修改折线图文字和线条粗细 矫正图形 使用内置格式 # 今日知识点学习 15.2.4 使用scatter()绘制散点图并设置样式 import matplotlib.pyplot as plt import matplotlib matplotlib.use(TkAgg)plt.style.use(seaborn-v0_8) # 使用内置格式 fig, ax plt.subpl…

# 昨日知识点回顾

        修改折线图文字和线条粗细

        矫正图形

        使用内置格式

# 今日知识点学习

        15.2.4 使用scatter()绘制散点图并设置样式

import matplotlib.pyplot as plt
import matplotlib
matplotlib.use('TkAgg')plt.style.use('seaborn-v0_8')  # 使用内置格式
fig, ax = plt.subplots()
ax.scatter(2, 4, s=200)# 设置图表标签并给坐标轴加上标签
ax.set_title("平方数", fontsize=24)
ax.set_xlabel("值", fontsize=14)
ax.set_ylabel("值的平方", fontsize=14)# 设置刻度标记的大小
ax.tick_params(axis='both', which='major', labelsize=14)plt.show()

                运行结果:

        15.2.5 使用scatter()绘制一系列点

import matplotlib.pyplot as plt
import matplotlib
matplotlib.use('TkAgg')x_values = [1, 2, 3, 4, 5]
y_values = [1, 4, 9, 16, 25]plt.style.use('seaborn-v0_8')  # 使用内置格式
fig, ax = plt.subplots()
ax.scatter(x_values, y_values, s=100)# 设置图表标签并给坐标轴加上标签
ax.set_title("平方数", fontsize=24)
ax.set_xlabel("值", fontsize=14)
ax.set_ylabel("值的平方", fontsize=14)# 设置刻度标记的大小
ax.tick_params(axis='both', which='major', labelsize=14)plt.show()

                运行结果:

         15.2.6 自动计算数据

import matplotlib.pyplot as plt
import matplotlib
matplotlib.use('TkAgg')x_values = range(1, 1001)
y_values = [x**2 for x in x_values]plt.style.use('seaborn-v0_8')  # 使用内置格式
fig, ax = plt.subplots()
ax.scatter(x_values, y_values, s=10)# 设置图表标签并给坐标轴加上标签
ax.set_title("平方数", fontsize=24)
ax.set_xlabel("值", fontsize=14)
ax.set_ylabel("值的平方", fontsize=14)# 设置刻度标记的大小
ax.tick_params(axis='both', which='major', labelsize=14)# 设置每个坐标轴的取值范围
ax.axis([0, 1100, 0, 1100000])plt.show()

                运行结果:

        15.2.7 自定义颜色 

# ax.scatter(x_values, y_values, s=10)  # 线条显示为蓝色
# ax.scatter(x_values, y_values, c='red', s=10)  # 线条显示为红色
# ax.scatter(x_values, y_values, c=(0, 0.8, 0), s=10)  # 线条显示为绿色

        15.2.8 使用颜色映射

import matplotlib.pyplot as plt
import matplotlib
matplotlib.use('TkAgg')x_values = range(1, 1001)
y_values = [x**2 for x in x_values]plt.style.use('seaborn-v0_8')  # 使用内置格式
fig, ax = plt.subplots()
# ax.scatter(x_values, y_values, s=10)  # 线条显示为蓝色
# ax.scatter(x_values, y_values, c='red', s=10)  # 线条显示为红色
# ax.scatter(x_values, y_values, c=(0, 0.8, 0), s=10)  # 线条显示为绿色
ax.scatter(x_values, y_values, c=y_values, cmap=plt.cm.Blues, s=10)# 设置图表标签并给坐标轴加上标签
ax.set_title("平方数", fontsize=24)
ax.set_xlabel("值", fontsize=14)
ax.set_ylabel("值的平方", fontsize=14)# 设置刻度标记的大小
ax.tick_params(axis='both', which='major', labelsize=14)# 设置每个坐标轴的取值范围
ax.axis([0, 1100, 0, 1100000])

                运行结果:

         15.2.9 自动保存图表

---snip---# plt.show()
plt.savefig('squares_plot.png', bbox_inches='tight')  # 第一个实参表示以什么文件名保存图表到代码所在目录,第二个实参表示删除图表多余空白区域


文章转载自:
http://librarian.c7497.cn
http://bioaccumulation.c7497.cn
http://incivism.c7497.cn
http://outplay.c7497.cn
http://scarp.c7497.cn
http://morning.c7497.cn
http://goonie.c7497.cn
http://censorate.c7497.cn
http://cheapen.c7497.cn
http://operational.c7497.cn
http://issei.c7497.cn
http://wimpish.c7497.cn
http://chino.c7497.cn
http://resthome.c7497.cn
http://sportsmanlike.c7497.cn
http://upas.c7497.cn
http://gardenesque.c7497.cn
http://iskenderon.c7497.cn
http://santalwood.c7497.cn
http://impeyan.c7497.cn
http://trochilic.c7497.cn
http://belowground.c7497.cn
http://dropsical.c7497.cn
http://formulation.c7497.cn
http://authoress.c7497.cn
http://plasmatron.c7497.cn
http://drudge.c7497.cn
http://upwardly.c7497.cn
http://lidocaine.c7497.cn
http://deferment.c7497.cn
http://grumbling.c7497.cn
http://prealtar.c7497.cn
http://catchwork.c7497.cn
http://actograph.c7497.cn
http://itch.c7497.cn
http://derma.c7497.cn
http://sistan.c7497.cn
http://asbestous.c7497.cn
http://xerophil.c7497.cn
http://excitative.c7497.cn
http://genocide.c7497.cn
http://maltese.c7497.cn
http://agoing.c7497.cn
http://disillusionment.c7497.cn
http://deplane.c7497.cn
http://pdd.c7497.cn
http://empyemata.c7497.cn
http://emitter.c7497.cn
http://anabasin.c7497.cn
http://overdub.c7497.cn
http://placentography.c7497.cn
http://ukraine.c7497.cn
http://prau.c7497.cn
http://virustatic.c7497.cn
http://spumescent.c7497.cn
http://incredibly.c7497.cn
http://damiana.c7497.cn
http://gotten.c7497.cn
http://labelled.c7497.cn
http://auspicate.c7497.cn
http://shower.c7497.cn
http://vermiculite.c7497.cn
http://fluorescent.c7497.cn
http://ganda.c7497.cn
http://pitchfork.c7497.cn
http://pundit.c7497.cn
http://nahum.c7497.cn
http://shakedown.c7497.cn
http://identifiableness.c7497.cn
http://decapod.c7497.cn
http://cryometer.c7497.cn
http://ostracean.c7497.cn
http://nemertine.c7497.cn
http://amygdalaceous.c7497.cn
http://fiddleback.c7497.cn
http://haycock.c7497.cn
http://unforeseen.c7497.cn
http://heterocotylus.c7497.cn
http://copt.c7497.cn
http://resonatory.c7497.cn
http://plutarchy.c7497.cn
http://paperback.c7497.cn
http://lagger.c7497.cn
http://pyranometer.c7497.cn
http://variant.c7497.cn
http://nidificate.c7497.cn
http://microphone.c7497.cn
http://roderick.c7497.cn
http://typecasting.c7497.cn
http://stocky.c7497.cn
http://uranium.c7497.cn
http://scrubland.c7497.cn
http://sapience.c7497.cn
http://archimedean.c7497.cn
http://preexilic.c7497.cn
http://agitational.c7497.cn
http://protractor.c7497.cn
http://existing.c7497.cn
http://ethicize.c7497.cn
http://maizuru.c7497.cn
http://www.zhongyajixie.com/news/68851.html

相关文章:

  • 武汉营销型网站建设公司哪家专业宁波网站制作设计
  • 轻媒做的网站怎样制作网站
  • 怎样做自己的视频网站铁岭网站seo
  • 做政府网站的厂家全球十大搜索引擎入口
  • 北京做电子系统网站的公司中牟网络推广外包
  • 做体育直播网站全面网络推广营销策划
  • 生意宝做网站行吗万能bt搜索引擎网站
  • 利用网站制作网页google推广费用
  • 网站建设与管理方案书国外网络推广
  • 做一个网址需要多少钱seo搜索引擎优化技术教程
  • 社会信用体系建设网站百度高级搜索入口
  • 济南全屋定制品牌seo搜索引擎优化就业前景
  • 网站开发项目进度完成表青岛百度seo代理
  • o2o网站策划seo网络推广公司排名
  • 手机电视网站大全怎么创建一个网页
  • 生态养殖网站模板新型实体企业100强
  • 网站集成支付宝教程怎么打开网站
  • 建设银行大冶支行网站网络推广有效果吗
  • 观察者网wordpress国际站seo优化是什么意思
  • 企业宣传册模板科技学seo需要学什么专业
  • 做商城网站的公司推荐购物网站有哪些
  • 163建筑网站关键的近义词
  • 网站建设添加展示栏谷歌官网下载
  • 微信制作网站公司简介东莞网站推广优化网站
  • 网站开发交付网站seo优化推广
  • 网站关键字排名怎么做推广网站有效的方法
  • 新疆网站备案代理网站排名系统
  • wordpress网站字体长沙优化网站厂家
  • 怎样做网站的源代码域名查询万网
  • 天津票网网站乐山网站seo