下面是我使用的代码: import matplotlib.pyplot as plt
x1 = [7.000000000000000000eplot with grid lines in the correct places and the tick marks line up with the grid lines zoom3 我想要的是网格线独立于x轴标签。在matplotlib中绘图时,默认绘图允许刻度线</e
我试图在Matplotlib (Python2.7)中设置y轴上的主要和次要间隔的数量。我设定间隔的方式有问题。他们并不总是和主要的网格线站在一起。下面是我用来设置刻度间隔和生成图的代码:import pandas as pdfrom matplotlib.ticker#number of minor intervals along y-axis
# -------
我最近升级到matplotlib v1.5。我开始看到的是,即使当我手动设置yaxis时,twinx绘图开始也无法对齐网格线。import pandas as pdimport matplotlib.pyplot as plt
x = [x然而,这个问题发生在正确的轴上,其限制和界限是通过df2.plot(ax=ax2)自动设置的。也许有人可