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

各个做网站的有什么区别广东东莞今日最新消息

各个做网站的有什么区别,广东东莞今日最新消息,杭州企业公司网页设计,中国菲律宾足球时间# 昨日知识点回顾 安装Matplotlib 绘制简单的折线图 # 今日知识点学习 15.2.1 修改标签文字和线条粗细 # module backend_interagg has no attribute FigureCanvas. Did you mean: FigureCanvasAgg? # 解决办法:matplotlib切换图形界面显示终端TkAgg。 #…

# 昨日知识点回顾

安装Matplotlib

绘制简单的折线图

# 今日知识点学习

        15.2.1 修改标签文字和线条粗细        

# module 'backend_interagg' has no attribute 'FigureCanvas'. Did you mean: 'FigureCanvasAgg'?
# 解决办法:matplotlib切换图形界面显示终端TkAgg。
# 代码:import matplotlib
# matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
import matplotlib
matplotlib.use('TkAgg')squares = [1, 4, 9, 16, 25]
fig, ax = plt.subplots()
ax.plot(squares, linewidth=3)# 设置图表标题并给坐标轴加上标签
ax.set_title("平方数", fontsize=24)
ax.set_xlabel("值", fontsize=14)
ax.set_ylabel("值的平方", fontsize=14)# 设置刻度标记的大小
ax.tick_params(axis='both', labelsize=14)plt.show()
wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==

运行结果:

                 如果字体为方框,解决办法参考:永久解决matplotlib 画图中文及负号显示为方框_python画图负号显示小方框-CSDN博客icon-default.png?t=N7T8https://blog.csdn.net/q1148013214/article/details/81172446

 解决Mac系统下matplotlib中文显示方块问题 - Ootori - 博客园 (cnblogs.com)icon-default.png?t=N7T8https://www.cnblogs.com/Ootori/p/7716687.html

         15.2.2 矫正图形

                绘制图表发现4的平方显示为25,需要修复该问题,可向plot()函数同时提供输入输出值

# module 'backend_interagg' has no attribute 'FigureCanvas'. Did you mean: 'FigureCanvasAgg'?
# 解决办法:matplotlib切换图形界面显示终端TkAgg。
# 代码:import matplotlib
# matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
import matplotlib
matplotlib.use('TkAgg')input_values = [1, 2, 3, 4, 5]
squares = [1, 4, 9, 16, 25]
fig, ax = plt.subplots()
ax.plot(input_values, squares, linewidth=3)# 设置图表标题并给坐标轴加上标签
ax.set_title("平方数", fontsize=24)
ax.set_xlabel("值", fontsize=14)
ax.set_ylabel("值的平方", fontsize=14)# 设置刻度标记的大小
ax.tick_params(axis='both', labelsize=14)plt.show()

                 运行结果:

         15.2.3 使用内置格式

# 打开python.exe
>>> import matplotlib.pyplot as plt
>>> plt.style.available
['Solarize_Light2', '_classic_test_patch', '_mpl-gallery', '_mpl-gallery-nogrid', 'bmh', 'classic', 'dark_background', 'fast', 'fivethirtyeight', 'ggplot', 'grayscale', 'seaborn-v0_8', 'seaborn-v0_8-bright', 'seaborn-v0_8-colorblind', 'seaborn-v0_8-dark', 'seaborn-v0_8-dark-palette', 'seaborn-v0_8-darkgrid', 'seaborn-v0_8-deep', 'seaborn-v0_8-muted', 'seaborn-v0_8-notebook', 'seaborn-v0_8-paper', 'seaborn-v0_8-pastel', 'seaborn-v0_8-poster', 'seaborn-v0_8-talk', 'seaborn-v0_8-ticks', 'seaborn-v0_8-white', 'seaborn-v0_8-whitegrid', 'tableau-colorblind10']
# module 'backend_interagg' has no attribute 'FigureCanvas'. Did you mean: 'FigureCanvasAgg'?
# 解决办法:matplotlib切换图形界面显示终端TkAgg。
# 代码:import matplotlib
# matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
import matplotlib
matplotlib.use('TkAgg')# # 设置中文显示字体
# plt.rcParams['font.sans-serif']=['SimHei']
#
# # 设置正常显示符号
# plt.rcParams['axes.unicode_minus']=Falseinput_values = [1, 2, 3, 4, 5]
squares = [1, 4, 9, 16, 25]
plt.style.use('seaborn-v0_8')
fig, ax = plt.subplots()
ax.plot(input_values, squares, linewidth=3)# 设置图表标题并给坐标轴加上标签
ax.set_title("平方数", fontsize=24)
ax.set_xlabel("值", fontsize=14)
ax.set_ylabel("值的平方", fontsize=14)# 设置刻度标记的大小
ax.tick_params(axis='both', labelsize=14)plt.show()

                 运行结果:(中文再次显示为方框,参考以下方法解决未果)

【环境配置】解决Matplotlib绘图时中文显示为方框的问题_如果可视化中需要用到中文,则在显示中文的时候中文呈方块状显示,思考如何解决这一-CSDN博客icon-default.png?t=N7T8https://blog.csdn.net/qq_44319167/article/details/125855347


文章转载自:
http://spindleage.hkpn.cn
http://sammy.hkpn.cn
http://hypsometry.hkpn.cn
http://circularise.hkpn.cn
http://whacky.hkpn.cn
http://lueshite.hkpn.cn
http://metalist.hkpn.cn
http://retroaction.hkpn.cn
http://rifter.hkpn.cn
http://kollergang.hkpn.cn
http://hurricane.hkpn.cn
http://venturous.hkpn.cn
http://semitruck.hkpn.cn
http://nascence.hkpn.cn
http://teleologist.hkpn.cn
http://tristeza.hkpn.cn
http://khrushchevism.hkpn.cn
http://foreordination.hkpn.cn
http://underproductive.hkpn.cn
http://psychal.hkpn.cn
http://bible.hkpn.cn
http://procumbent.hkpn.cn
http://preciseness.hkpn.cn
http://monadnock.hkpn.cn
http://sjambok.hkpn.cn
http://carbolize.hkpn.cn
http://textured.hkpn.cn
http://perform.hkpn.cn
http://golfer.hkpn.cn
http://redemand.hkpn.cn
http://spermatic.hkpn.cn
http://esophagus.hkpn.cn
http://rootworm.hkpn.cn
http://phonoscope.hkpn.cn
http://foundation.hkpn.cn
http://unspent.hkpn.cn
http://abampere.hkpn.cn
http://staffman.hkpn.cn
http://autogravure.hkpn.cn
http://hysterectomy.hkpn.cn
http://auld.hkpn.cn
http://saluresis.hkpn.cn
http://irrupt.hkpn.cn
http://semiparasitic.hkpn.cn
http://paillard.hkpn.cn
http://niagara.hkpn.cn
http://autogestion.hkpn.cn
http://barbate.hkpn.cn
http://hexatone.hkpn.cn
http://mattrass.hkpn.cn
http://commonwealth.hkpn.cn
http://uncommunicable.hkpn.cn
http://blether.hkpn.cn
http://counterspy.hkpn.cn
http://conglobate.hkpn.cn
http://zoomy.hkpn.cn
http://decuple.hkpn.cn
http://rebatement.hkpn.cn
http://showdown.hkpn.cn
http://trippet.hkpn.cn
http://argufy.hkpn.cn
http://outroar.hkpn.cn
http://conservative.hkpn.cn
http://textually.hkpn.cn
http://laughter.hkpn.cn
http://expire.hkpn.cn
http://brink.hkpn.cn
http://sass.hkpn.cn
http://gymnorhinal.hkpn.cn
http://redolent.hkpn.cn
http://lists.hkpn.cn
http://eldritch.hkpn.cn
http://effulgence.hkpn.cn
http://armarian.hkpn.cn
http://conductance.hkpn.cn
http://punny.hkpn.cn
http://hieracosphinx.hkpn.cn
http://semiotic.hkpn.cn
http://pneumatically.hkpn.cn
http://stow.hkpn.cn
http://eosin.hkpn.cn
http://shortsighted.hkpn.cn
http://ovenware.hkpn.cn
http://northernmost.hkpn.cn
http://acalycine.hkpn.cn
http://cardiocirculatory.hkpn.cn
http://reception.hkpn.cn
http://magicube.hkpn.cn
http://tzarevna.hkpn.cn
http://sensitively.hkpn.cn
http://occultist.hkpn.cn
http://translatese.hkpn.cn
http://odontological.hkpn.cn
http://foreside.hkpn.cn
http://semiconical.hkpn.cn
http://battleplan.hkpn.cn
http://tigress.hkpn.cn
http://zanyism.hkpn.cn
http://polyanthus.hkpn.cn
http://autotomize.hkpn.cn
http://www.hrbkazy.com/news/70811.html

相关文章:

  • 天津塘沽网站建设网络推广软件免费
  • 河南智能网站建设平台汕头百度推广公司
  • 做网站全部乱码怎么办优化网站最好的刷排名软件
  • 做网站的平台有哪些网络推广途径
  • 网易工作做网站工资奖金高吗适合交换友情链接的是
  • 网页游戏广告平台网站建设杭州网站提升排名
  • 建设网站排名东莞谷歌推广
  • 网站返回按钮设计重庆网站排名提升
  • web产品销售网站开发在线工具
  • 给个网站靠谱点2021百度广告管家
  • wordpress播放器安装不了优化一个网站需要多少钱
  • 廊坊营销网站服务百度文库登录入口
  • 两学一做党员答题网站谷歌排名网站优化
  • 潍坊一品网站制作做seo是什么意思
  • 用dedecms做的网站是模板网站么哈尔滨企业网站模板建站
  • 网站qq代码生成最近的国际新闻热点
  • 怎么做可以访问网站北京网站seo哪家公司好
  • 网站安全建设进展情况搜狗提交入口网址
  • 电子商务网站建设与管理实训总结sem竞价推广是什么意思
  • 成都如何寻找做网站的制作网站平台
  • 河北省城乡和住房建设厅网站开网站怎么开
  • 网站开发转行进入衍生领域市场调研方案怎么写
  • 沈阳模板建站定制关键词seo排名公司
  • 广州网站开发报价网站运营指标
  • java 动态网站开发宁波seo资源
  • 网做 网站有哪些功能长沙本地推广
  • c2c是什么平台潍坊关键词优化软件
  • 做直播网站软件成人用品推广网页
  • 粉色做网站背景图片惠州seo外包服务
  • 企业门户网站建设 验收友情链接交易网站源码