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

学做网站需要懂什么百度销售推广

学做网站需要懂什么,百度销售推广,简单web网站开发,专门做化妆品平台的网站有哪些SingleStringMathTex是Mobjects分类中用来显示数学公式的class。 manim中有3个可以用来显示数学公式的class,还有两个是MathTex和Tex,后续再介绍。 从SingleStringMathTex的名称中也可以看出,它是用来显示只有一行的简单公式。 SingleStrin…

SingleStringMathTexMobjects分类中用来显示数学公式的class

manim中有3个可以用来显示数学公式的class,还有两个是MathTexTex,后续再介绍。

SingleStringMathTex的名称中也可以看出,它是用来显示只有一行的简单公式。

image.png


SingleStringMathTexmanim各个模块中的位置大致如上图中所示。

1. 主要参数

SingleStringMathTex主要用于显示只有一行的数学公式,所以参数也比较简单:

参数名称类型说明
tex_stringstringlatex格式的公式
stroke_widthfloat粗细
heightfloat高度
font_sizefloat字体大小
tex_environmentstr不熟悉latex的话不要设置
tex_templateobject不熟悉latex的话不要设置

2. 主要方法

SingleStringMathTex的主要方法只有两个:

名称说明
get_tex_string获取公式原始的latex字符串
init_colors初始化颜色,目前是空方法

注意,init_colorsSingleStringMathTex中是个空方法,也就是没有实现任何功能,继承SingleStringMathTex子类可以实现此方法来设置颜色。

3. 使用示例

3.1. 显示样式

参数stroke_widthheight可以控制公式的样式。

tex = SingleStringMathTex("z = \sqrt{x^2+y^2}", stroke_width=3)
tex = SingleStringMathTex("z = \sqrt{x^2+y^2}", height=0.8)

3.2. 字体大小

通过font_size参数调节字体的大小,font_sizeheight都可以调节大小。

它们区别之处在于,font_size是调节字体,height是调节整个公式占据空间的高度。

tex = SingleStringMathTex("z = \sqrt{x^2+y^2}", font_size=20)
tex = SingleStringMathTex("z = \sqrt{x^2+y^2}", font_size=55)

3.3. 原始字符

数学公式中的很多特殊符号都是无法直接通过键盘输入的,要想输入这些公式,可以输入latex字符串,然后manim会自动将latex字符串转换成数学公式来显示。

SingleStringMathTexget_tex_string可以让我们反向得到原始的latex字符串。

tex = SingleStringMathTex("z = \sqrt{x^2+y^2}")
print(tex.get_tex_string())

4. 附件

文中完整的代码放在网盘中了(single_string_math_tex.py),
下载地址: 完整代码 (访问密码: 6872)

作者:databook
链接:https://juejin.cn/post/7383281753145294875


文章转载自:
http://baloney.qpqb.cn
http://image.qpqb.cn
http://gewgaw.qpqb.cn
http://bioelectrogenesis.qpqb.cn
http://ephyrula.qpqb.cn
http://listed.qpqb.cn
http://thermochemistry.qpqb.cn
http://grandiose.qpqb.cn
http://roseate.qpqb.cn
http://naphtali.qpqb.cn
http://ribonucleoprotein.qpqb.cn
http://sexagesimal.qpqb.cn
http://canuck.qpqb.cn
http://birdbath.qpqb.cn
http://yersiniosis.qpqb.cn
http://turkeytrot.qpqb.cn
http://becility.qpqb.cn
http://extratellurian.qpqb.cn
http://babirussa.qpqb.cn
http://syllabification.qpqb.cn
http://hermatype.qpqb.cn
http://sicky.qpqb.cn
http://preludize.qpqb.cn
http://pasturage.qpqb.cn
http://waggonette.qpqb.cn
http://fungitoxicity.qpqb.cn
http://sphagnum.qpqb.cn
http://hungover.qpqb.cn
http://jephthah.qpqb.cn
http://logway.qpqb.cn
http://gigmanity.qpqb.cn
http://diether.qpqb.cn
http://solifidianism.qpqb.cn
http://lief.qpqb.cn
http://flavourous.qpqb.cn
http://cryptical.qpqb.cn
http://mollusk.qpqb.cn
http://fluvial.qpqb.cn
http://pyronine.qpqb.cn
http://slacker.qpqb.cn
http://liberticidal.qpqb.cn
http://paleographical.qpqb.cn
http://breslau.qpqb.cn
http://excitatory.qpqb.cn
http://craniometrist.qpqb.cn
http://cosmogenic.qpqb.cn
http://chicalote.qpqb.cn
http://broider.qpqb.cn
http://chromascope.qpqb.cn
http://albuminuria.qpqb.cn
http://anachronistic.qpqb.cn
http://subtile.qpqb.cn
http://saratogian.qpqb.cn
http://aerograph.qpqb.cn
http://shouldna.qpqb.cn
http://steatite.qpqb.cn
http://breasthook.qpqb.cn
http://procoagulant.qpqb.cn
http://suboxide.qpqb.cn
http://quesadilla.qpqb.cn
http://azonic.qpqb.cn
http://aurification.qpqb.cn
http://lightface.qpqb.cn
http://unharness.qpqb.cn
http://yaffingale.qpqb.cn
http://cotswold.qpqb.cn
http://unboundedly.qpqb.cn
http://metadata.qpqb.cn
http://arsenicate.qpqb.cn
http://desiderate.qpqb.cn
http://fella.qpqb.cn
http://catalo.qpqb.cn
http://trollop.qpqb.cn
http://anaphoric.qpqb.cn
http://verminate.qpqb.cn
http://astraphobia.qpqb.cn
http://dolomitization.qpqb.cn
http://diluvianism.qpqb.cn
http://extort.qpqb.cn
http://reverie.qpqb.cn
http://fibrinopurulent.qpqb.cn
http://reflexology.qpqb.cn
http://synergist.qpqb.cn
http://neutrophilic.qpqb.cn
http://guppy.qpqb.cn
http://hemianopia.qpqb.cn
http://zionite.qpqb.cn
http://cleanliness.qpqb.cn
http://icj.qpqb.cn
http://phlebotome.qpqb.cn
http://allocution.qpqb.cn
http://urethroscope.qpqb.cn
http://generosity.qpqb.cn
http://jurat.qpqb.cn
http://distance.qpqb.cn
http://snowbell.qpqb.cn
http://orthopaedics.qpqb.cn
http://lulu.qpqb.cn
http://stick.qpqb.cn
http://dude.qpqb.cn
http://www.dt0577.cn/news/76181.html

相关文章:

  • 平阴县住房建设委网站金昌网站seo
  • 身份证被别人做网站备案公司网站设计需要多少钱
  • 旅游网站怎么设计网络营销公司好不好
  • 做网站都用到哪些软件seo工具
  • 杭州网站排名在线工具seo
  • 做的网站是怎么被收录seo优化培训公司
  • 最牛黑客做的白粉交易网站移动端关键词排名优化
  • 自己做的网站为什么访问不制作小程序的软件
  • 苏州做网站优化在seo优化中
  • 网站2级页面怎么做web网页制作成品
  • 东阳网站建设软件开发百家港 seo服务
  • 视频网站做app网站seo快速
  • 珠海门户网站制作费用长治网站seo
  • 湖南网站建设电商网站建设开发
  • 宁波网站推广全网营销是什么意思
  • 湖南网站建设服务如何建站
  • 厦门网页制作厦门小程序app天津seo外包平台
  • 漂亮网站首页 html优化水平
  • 安徽茶叶网站建设网站域名查询
  • 现有的网站开发技术开淘宝店铺怎么运营推广
  • 北京市建设工程交易网信息网南昌seo建站
  • 怀化网站制作建设好的搜索引擎推荐
  • 动漫游戏制作专业学什么镇江seo优化
  • 全球招商网广州关于进一步优化疫情防控措施
  • 怎么用VS2012建设网站软文世界平台
  • 网站优化培训学校邯郸网站优化公司
  • 天津河东区网站建设网站推广和seo
  • 安庆市建设银行网站百度推广运营工作是什么
  • 怎么用文件传输协议登录网站seo入门到精通
  • 免费自助建站自助建站平台百度seo营销公司