腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
端点
上
的
Matplotlib
x
轴
日期
matplotlib
我正在从mySQL服务器绘制我
的
气象站数据。我试图弄清楚如何绘制
x
轴
端点
(12 AM),但它只显示从凌晨3点到晚上9点以下是我
的
代码中最相关
的
部分。我不知道这是否与我
的
第一个数据点在上午12:08,最后一个数据点在晚上11:52这一事实有关对于如何在
端点
显示12点有什么建议吗? ? import mysql.connector as connectionimport
matplotlib
浏览 37
提问于2021-04-10
得票数 0
回答已采纳
1
回答
用
matplotlib
绘制tkinter画布中
x
轴
上
的
日期
matplotlib
、
time-series
、
tkinter-canvas
、
timeline
、
x-axis
使用
matplotlib
绘制
x
轴
上
的
日期
有许多解决方案。我在这里找到
的
一个很好
的
例子(3,3.Answer)用Python
的
matplotlib
- Stack溢出绘制
x
轴
上
的
日期
*如何获得
x
轴
和数据显示在Tkinter画布
上
的
图形,而不是显示在普通matp
浏览 5
提问于2022-03-30
得票数 0
1
回答
如何在没有相应值时删除
轴
刻度线
python
、
pandas
、
matplotlib
、
seaborn
使用
matplotlib
绘制
x
轴
为
日期
,y
轴
为y
轴
的
数据时,存在一个问题,即图表在
日期
上
留有空格,但没有值,如下图所示。我希望24号和25号不在
x
轴
上
。import pandas as pds.index =
浏览 5
提问于2021-05-01
得票数 0
3
回答
ValueError:序号必须是>= 1
python
、
pandas
、
matplotlib
、
dataframe
、
quantitative-finance
此代码,采取2协调从谷歌金融
的
直线,并在同一条线上
的
第3点在一定距离。import datetime as dt import
matplotlib
.pyplot as plt y_axis = polynomial(
x
_axis) plt.plot(
x
_axi
浏览 2
提问于2017-07-22
得票数 5
2
回答
python:如何使用
matplotlib
表示
x
轴
数据
python
、
python-3.x
、
matplotlib
我目前正在使用
matplotlib
绘制股票价格列表,但是我不知道如何在图表中正确显示相应
的
日期
。csv中
的
数据是每日股价,但我只想在
x
轴
上
每2周显示一次
日期
。股票
的
日期
和价格是在两个不同
的
清单,它可以这样做吗?或者我应该用字典代替,然后试着用那样
的
方式画出来?import csvimport
matplotlib
.pyplot as plt
浏览 0
提问于2018-02-16
得票数 0
回答已采纳
4
回答
用
matplotlib
绘制numpy datetime64
python
、
datetime
、
numpy
、
matplotlib
07 11:08:00], dtype=datetime64[us])plot(timeSeries, data)有没有办法用更自然
的
单位来获得时间?编辑:Out[128]: [<
matplotlib
.lines.Line2D at 0
浏览 4
提问于2012-07-07
得票数 24
回答已采纳
3
回答
X
轴
上
的
Matplotlib
日期
时间
python
、
graph
、
matplotlib
如果在
x
轴
上有datetime对象,那么如何在
matplotlib
的
click事件处理程序
上
单击哪个对象?也就是说,当你这样做时: print event.
x
我尝试了event.
x
、event.xdata和event._
x
,它们都返回了int
浏览 4
提问于2015-03-02
得票数 4
回答已采纳
1
回答
X
轴
上
的
日期
(
Matplotlib
图)
pandas
、
matplotlib
、
jupyter-notebook
我正在尝试根据雅虎在谷歌财经
上
的
数据绘制一张图表。刚刚开始学习Pandas
上
的
数据可视化,Jupyter Notebook
上
的
Matplotlib
。Original and Smoothed Price')ax.set_ylabel('Price')将
日期
转换为我怎样才能使它在<
浏览 12
提问于2020-02-26
得票数 0
回答已采纳
2
回答
在
x
轴
上有很多
日期
的
散点图出现问题
python
、
pandas
、
matplotlib
、
scatter-plot
、
scatter
我试着做散点图,当我试着做
的
时候,
x
轴
显示了很多
日期
。有没有一种方法可以在散点图中显示
的
x
轴
上
只放置几个
日期
或年份?import numpy as npimport
matplotlib
.patches asmpatches import
matplotlib
.dates a
浏览 88
提问于2021-11-07
得票数 0
回答已采纳
1
回答
带
日期
的
MatPlotLib
X
轴
python
、
matplotlib
、
plot
它是从一个不断更新
的
csv文件中打开
的
,因此在开始计数时,我想限制
x
轴
的
条目数。 def open_graph(): import
matplotlib</em
浏览 2
提问于2017-02-09
得票数 0
1
回答
海运时间序列图上
的
标签
matplotlib
、
seaborn
'2010-01-01T12:10:35'), pd.Timestamp('2010-01-01T12:10:40')]如何将每个
x
值作为文本添加到绘图上?如果
x
轴
不是时间序列,那么我可以遍历每个值并使用ax.text(),但是当我有时间戳时,我不知道如何做到这一点,即我
浏览 14
提问于2021-06-04
得票数 1
回答已采纳
3
回答
如何在
matplotlib
中显示
x
轴
上
的
日期
和时间
python
、
matplotlib
我想在
matplotlib
图中指定
x
轴
的
完整
日期
和时间,但使用自动缩放时,我只能获得时间或
日期
,而不能同时获得两者。以下代码:import pandas as pd fig.autofmt_xdate() plt.plo
浏览 14
提问于2015-10-06
得票数 13
回答已采纳
1
回答
Y
轴
上
的
Matplotlib
日期
datetime
、
matplotlib
我试图在
matplotlib
中绘制一系列日落时间,但我得到了以下错误:"TypeError:空
的
'DataFrame':没有要绘制
的
数字数据“没有办法完成这个任务吗?有谁有主意吗? 我
浏览 0
提问于2014-01-06
得票数 6
回答已采纳
3
回答
使用
Matplotlib
绘制时间序列:使用datetime.datetime()可以,但datetime.datetime.strptime(字符串,格式)不行
python
、
matplotlib
我希望使用
matplotlib
绘制条形图中
的
一些数据。绘图
的
x
值应该是datetime.datetime对象,以便
matplotlib
可以使用它们。如果我用下面的方法生成时间值,它就会工作:import datetime ax.xaxis_date()生成此图:但是,如果我使用以下
浏览 39
提问于2020-05-12
得票数 0
回答已采纳
1
回答
偏移字符串(显示年份)似乎不以月勾标签(ConciseDateFormatter)出现。
matplotlib
我使用
Matplotlib
来绘制温度与2021年5月至11月
的
日期
时间列表。ConciseDateFormatter用于格式化
x
轴
日期
.当我生成一个图时,月份显示为我想要
的
缩写月份字符串,但是
x
轴
标签上没有显示年份。我希望
日期
字符串"2021“
的
年份显示在
x
轴
上
。说在
x
轴
的
右侧应该有
浏览 9
提问于2022-02-14
得票数 0
1
回答
python
matplotlib
如何使用str到目前为止映射条形图
python
、
matplotlib
、
plot
这是我第一次使用
matplotlib
,任务可能非常琐碎,但对我来说却很困难。我想要做
的
是在
x
轴
和y
轴
上画一个带有票
的
图。那么对于每一张票,我需要两条:第一条高度等于它被解决
的
日期
,另一条高度等于
日期
是应该被解决
的
。我现在拥有的是: 票= [] 包含所有
日期
(已解决
浏览 1
提问于2018-01-31
得票数 0
1
回答
[
matplotlib
]:在
x
轴
上
写入
日期
python
、
matplotlib
这里是一个示例代码,我想在
x
轴
上
绘制整个
日期
。import datetimeimport randomfrom
matplotlib
.dates'r+', ms = 2, mew = 12) fig.autofmt_xdate() 不幸<
浏览 3
提问于2017-04-15
得票数 1
回答已采纳
2
回答
使用Pandas datetime索引格式化数据图表
python
、
pandas
、
datetime
、
plot
、
graph
我想绘制一个名为vslr
的
熊猫数据框(414行,2列),但我得到
的
图是不可用
的
。 我用来绘制
的
命令是: plt.plot(vslr['Price'],vslr['Date']) 图表: ? 我
的
数据: print(vslr.head)0 2020-01-31 15:30:00 8.1653Price
浏览 36
提问于2020-02-01
得票数 0
2
回答
沿四边形网格
x
轴
的
日期
python
、
matplotlib
我想使用
matplotlib
和Axes.pcolormesh来创建一个图。我
的
问题是,我希望在
x
轴
上有
日期
:fig = plt.figure()qmesh= ax.pcolormesh(times,mlt,data.T)在这段代码中,times是使用
matplotlib
.dates.date2num
浏览 4
提问于2013-06-04
得票数 4
回答已采纳
2
回答
如何在地块
上
添加
x
轴
?
python
、
python-3.x
、
matplotlib
、
plot
我正在试图绘制一些数据,但我不知道如何在图形
的
x
轴
上
添加
日期
值。这是我
的
代码:import numpy as np %pylab inlinepylab.rcParams['figure.figsize'] = (15, 9) df["msft"].plot(grid
浏览 2
提问于2018-05-23
得票数 2
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
即时通信 IM
活动推荐
运营活动
广告
关闭
领券