matplotlib之pyplot中ylabel和xlabel方法详解
2016-11-21 22:05
519 查看
去官网查看了一下方法,发现参数给了默认值,但是其他的值是什么?一脸懵逼。。。。。。。。竟然不给出一个参数所有的设置值,首先贴出官方实例
Set the y axis label of the current axis.
后来获取的value值
fontsize:可以给一个数字
verticalalignment:’top’, ‘bottom’, ‘center’, ‘baseline’
horizontalalignment:’center’, ‘right’, ‘left’
rotation: ‘vertical’,’horizontal’,’vertical’
同理 对于xlabel
Set the x axis label of the current axis.
Set the y axis label of the current axis.
matplotlib.pyplot.ylabel(s, *args, **kwargs) override = { 'fontsize' : 'small', 'verticalalignment' : 'center', 'horizontalalignment' : 'right', 'rotation'='vertical' : }
后来获取的value值
fontsize:可以给一个数字
verticalalignment:’top’, ‘bottom’, ‘center’, ‘baseline’
horizontalalignment:’center’, ‘right’, ‘left’
rotation: ‘vertical’,’horizontal’,’vertical’
同理 对于xlabel
Set the x axis label of the current axis.
matplotlib.pyplot.xlabel(s, *args, **kwargs) override = { 'fontsize' : 'small', 'verticalalignment' : 'top', 'horizontalalignment' : 'center' }
相关文章推荐
- Matplotlib.pyplot 常用方法(一)
- Python3: import matplotlib.pyplot as plt 缺少tkinter的解决方法和matplotlib实例(Fedora 27)
- Matplotlib.pyplot 常用方法(二)
- 关于import matplotlib.pyplot as plt报错问题的解决方法
- matplotlib.pyplot中add_subplot方法参数111的含义
- matplotlib.pyplot中add_subplot方法参数111的含义
- Python实现matplotlib显示中文的方法详解
- matplotlib极坐标方法详解
- 基于Python数据可视化利器Matplotlib,绘图入门篇,Pyplot详解
- matplotlib.pyplot 绘图详解 matplotlib 安装
- Python:matplotlib中pyplot的使用方法
- matplotlib.pyplot画图 图片的二进制流的获取方法
- matplotlib.pyplot中add_subplot方法参数111的含义
- Matplotlib.pyplot中subplot详解
- matplotlib.pyplot.plot()参数详解
- Python中matplotlib pyplot常用的一些使用方法[Python 3.x]
- matplotlib.pyplot中add_subplot方法参数111的含义
- 简记matplotlib中文显示方法
- CentOS中python输入import matplotlib.pyplot提示有错误
- 用 python绘图及网络分析(win64下matplotlib,networkx安装方法)