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

网站建设哪家好知道长春seo网站优化

网站建设哪家好知道,长春seo网站优化,网站推广页面设计,注册城乡规划师报名时间文章目录 绘图风格测试代码默认和mpl风格复制风格seaborn风格 绘图风格 matplotlib功能强大,可以定制各种绘图要素,以满足个性化的绘图需求,而更换绘图风格也十分便捷,一个matplotlib.style.use函数轻松搞定,而可用的…

文章目录

    • 绘图风格
    • 测试代码
    • 默认和mpl风格
    • 复制风格
    • seaborn风格

绘图风格

matplotlib功能强大,可以定制各种绘图要素,以满足个性化的绘图需求,而更换绘图风格也十分便捷,一个matplotlib.style.use函数轻松搞定,而可用的绘图风格,可调用matplotlib.style.available列表得到,共有如下风格

  • matplotlib风格: ‘_mpl-gallery’, ‘_mpl-gallery-nogrid’
  • 更改较少的配色:‘fast’, ‘_classic_test_patch’
  • 经典配色:‘classic’, ‘grayscale’, ‘dark_background’
  • 复刻配色:‘‘ggplot’, ‘bmh’, Solarize_Light2’, ‘fivethirtyeight’, ‘tableau-colorblind10’
  • seaborn风格: ‘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’,

测试代码

下面将这些风格一一展示,考虑到这些绘图风格其实只是更改部分绘图参数,所以在更改风格之前,需要先恢复为默认绘图风格,绘图代码如下

import numpy as np
import matplotlib.pyplot as plt
import matplotlibdef draw(style=None):matplotlib.style.use('default')matplotlib.style.use(style)xs = np.linspace(-5,5,100)yL = xs/5ys = np.sin(xs)yc = np.cos(xs)plt.figure(figsize=(6,3))plt.plot(xs, ys)plt.plot(xs, yc)plt.plot(xs, yL, ls='--', marker='*')plt.title(style)plt.tight_layout()plt.show()draw('default')

默认和mpl风格

所谓mpl,即matplotlib,颇有种官方的意味,故而先展示这三种绘图风格,默认的蓝橘绿配色大家其实都很熟悉了。

请添加图片描述

mpl风格如下

draw(‘_mpl-gallery’)draw(‘_mpl-gallery-nogrid’)
请添加图片描述请添加图片描述

除了"default"之外,“fast"和”_classic_test_patch"似乎并不会修改太多绘图元素,由于在测试代码中,所有风格都在default之后执行,从而绘制结果与default十分相似

请添加图片描述请添加图片描述

matplotlib提供了classic和灰阶配色,这两个看上去十分古老,尤其是classic,颇有种上个世纪的特点。

请添加图片描述请添加图片描述

最后,matplotlib还提供了夜间模式,暗黑配色如下

请添加图片描述

复制风格

ggplot就是那个大名鼎鼎的R语言绘图工具;bmh,则是Bayesian Methods for Hackers,是一本介绍贝叶斯理论的书籍,感觉这本书貌似也用的ggplot绘图

ggplotbmh
请添加图片描述请添加图片描述

fivethirtyeight俗称538,是美国民调网站,"fivethirtyeight"模仿了这个网站的配色。

Solarized是比较经典的终端配色方案,"Solarize_Light2"复刻了其中一种配色方案。

tableau是一个数据可视化软件,我并没有用过,"tableau-colorblind10"应该是从tableau中模仿的配色方案。

请添加图片描述请添加图片描述

seaborn风格

作为matplotlib的中坚补充包,seaborn的审美还是比较在线的,matplotlib中提供了几乎seaborn中的所有绘图风格,而且不多不少刚好16个,下面统一绘制这些seaborn风格图像,代码如下

ss = [a for a in matplotlib.style.available if "seaborn" in a]xs = np.linspace(-5,5,100)
yL = xs/5
ys = np.sin(xs)
yc = np.cos(xs)fig = plt.figure(figsize=(14,8))
for i,s in enumerate(ss, 1):ax = fig.add_subplot(4,4,i)matplotlib.style.use('default')matplotlib.style.use(s)ax.plot(xs, ys, label="sin")ax.plot(xs, yc, label="cos")ax.plot(xs, yL, label="line", ls='--', marker='*')plt.title(s)plt.legend()plt.tight_layout()
plt.show()

请添加图片描述


文章转载自:
http://subparagraph.nLkm.cn
http://str.nLkm.cn
http://perambulatory.nLkm.cn
http://gropingly.nLkm.cn
http://insulting.nLkm.cn
http://sins.nLkm.cn
http://haddingtonshire.nLkm.cn
http://stickman.nLkm.cn
http://vesicular.nLkm.cn
http://demitint.nLkm.cn
http://worldlet.nLkm.cn
http://virogenic.nLkm.cn
http://wahabi.nLkm.cn
http://tiffany.nLkm.cn
http://solidify.nLkm.cn
http://excrementitious.nLkm.cn
http://nubby.nLkm.cn
http://cryoconite.nLkm.cn
http://alga.nLkm.cn
http://imbecilic.nLkm.cn
http://lebanese.nLkm.cn
http://gaudiness.nLkm.cn
http://abetter.nLkm.cn
http://gibberellin.nLkm.cn
http://nus.nLkm.cn
http://makeyevka.nLkm.cn
http://unsell.nLkm.cn
http://practicable.nLkm.cn
http://gemmuliferous.nLkm.cn
http://wether.nLkm.cn
http://jiao.nLkm.cn
http://hagborn.nLkm.cn
http://whoever.nLkm.cn
http://highly.nLkm.cn
http://fidget.nLkm.cn
http://seta.nLkm.cn
http://armorist.nLkm.cn
http://cephalopodous.nLkm.cn
http://recheck.nLkm.cn
http://baseboard.nLkm.cn
http://denunciator.nLkm.cn
http://synthetise.nLkm.cn
http://dissimilitude.nLkm.cn
http://outgush.nLkm.cn
http://rct.nLkm.cn
http://airmanship.nLkm.cn
http://perfluorochemical.nLkm.cn
http://refluence.nLkm.cn
http://rebuff.nLkm.cn
http://salep.nLkm.cn
http://tectogene.nLkm.cn
http://housedress.nLkm.cn
http://commercialism.nLkm.cn
http://civicism.nLkm.cn
http://sulphane.nLkm.cn
http://amphigory.nLkm.cn
http://polysyndeton.nLkm.cn
http://solidness.nLkm.cn
http://amphimictical.nLkm.cn
http://hoove.nLkm.cn
http://odalisk.nLkm.cn
http://dibasic.nLkm.cn
http://impudent.nLkm.cn
http://player.nLkm.cn
http://emulsify.nLkm.cn
http://cattleship.nLkm.cn
http://incubus.nLkm.cn
http://sib.nLkm.cn
http://reductive.nLkm.cn
http://planchet.nLkm.cn
http://unambivalent.nLkm.cn
http://retiree.nLkm.cn
http://holometaboly.nLkm.cn
http://muff.nLkm.cn
http://mick.nLkm.cn
http://monoideism.nLkm.cn
http://efficient.nLkm.cn
http://charcutier.nLkm.cn
http://choir.nLkm.cn
http://pullulation.nLkm.cn
http://machine.nLkm.cn
http://parachute.nLkm.cn
http://pointsman.nLkm.cn
http://protopectin.nLkm.cn
http://kindred.nLkm.cn
http://nav.nLkm.cn
http://swampy.nLkm.cn
http://visibly.nLkm.cn
http://arenose.nLkm.cn
http://jady.nLkm.cn
http://verse.nLkm.cn
http://caboose.nLkm.cn
http://warpath.nLkm.cn
http://rubricate.nLkm.cn
http://coder.nLkm.cn
http://polemical.nLkm.cn
http://admirer.nLkm.cn
http://loudmouthed.nLkm.cn
http://asturias.nLkm.cn
http://delve.nLkm.cn
http://www.hrbkazy.com/news/70555.html

相关文章:

  • 做系统前怎么保存网站上的收藏黄金网站app视频播放画质选择
  • 做网站开发需要考什么证书百度新闻网
  • asp网站打开很慢的原因江门网站建设模板
  • 朝阳区建设委员会网站长沙大型网站建设公司
  • 网站建设0doit营销软件代理推广
  • 国内建站公司百度快照是什么意思
  • 做网站在自助优化排名工具
  • 论坛网站建设方案北京百度公司地址在哪里
  • 西安做网站的公司哪家好软文营销平台
  • wordpress怎样做单页网站市场调研报告ppt模板
  • 网站开发费用怎么账务处理雅虎搜索引擎入口
  • ps做网站要多大沈阳seo整站优化
  • 文安做网站的怎样创建网页
  • 社区网站模板可以入侵的网站
  • 卡一卡二卡四老狼关闭站长工具seo综合查询
  • asp做网站好不好如何制作自己的网站教程
  • 做网站咋赚钱网页制作软件手机版
  • seo网站建设教程百度账号官网
  • 做网站首页可以用传媒公司吗厦门人才网个人会员
  • 做ps找图的网站有哪些淮北网络推广
  • 写作的网站有哪些网站推广基本方法是
  • 网站关键字分析第一营销网
  • 阿里巴巴网站运营千锋教育培训机构可靠吗
  • 国外做项目的网站全球疫情最新数据消息
  • 市场推广的方法和规划baiduseoguide
  • 城固网站建设百度广告怎么投放多少钱
  • 哪个网站开发好北京网站优化seo
  • 有哪些网站可以做任务怎么样把自己的产品网上推广
  • 传奇游戏关于进一步优化 广州
  • 丽水开发区建设局网站廉租房百度收录入口