You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
importpandasaspdimportnumpyasnpimportmatplotlib.pyplotasplt# Random datadf_1=pd.DataFrame(np.random.randint(0,100,size=(1000, 1)), columns=list('v'))
df_2=pd.DataFrame(np.random.randint(0,100,size=(1000, 1)), columns=list('v'))
# Create a basic figurefig=plt.figure()
# Add first axisax_1=fig.add_axes([
0.0, # left0.0, # bottom0.5, # width1.0# height
])
df_1.plot(ax=ax_1)
# Add second axisax_2=fig.add_axes([0.5, 0.0, 0.5, 1.0])
df_2.plot(ax=ax_2)
Issue Description
Consider the minimal code example using pandas (2.0.2) along matplotlib (3.7.1). numpy is not relevant, as it's only used to generate random data. When executing the code the following error appears:
Pandas version checks
Reproducible Example
Issue Description
Consider the minimal code example using
pandas
(2.0.2) alongmatplotlib
(3.7.1).numpy
is not relevant, as it's only used to generate random data. When executing the code the following error appears:However if I pin the
matplotlib
version to<3.7
it works correctly and my plot is shown.Expected Behavior
Plot is shown properly regardless of the underlying
matplotlib
version.Installed Versions
INSTALLED VERSIONS
commit : 965ceca
python : 3.10.8.final.0
python-bits : 64
OS : Darwin
OS-release : 22.5.0
Version : Darwin Kernel Version 22.5.0: Mon Apr 24 20:52:24 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T6000
machine : arm64
processor : arm
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.UTF-8
pandas : 2.0.2
numpy : 1.24.3
pytz : 2023.3
dateutil : 2.8.2
setuptools : 67.8.0
pip : 22.3
Cython : None
pytest : 7.3.1
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.9.2
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 3.1.2
IPython : 8.12.2
pandas_datareader: None
bs4 : 4.12.2
bottleneck : None
brotli : None
fastparquet : None
fsspec : None
gcsfs : None
matplotlib : 3.7.1
numba : None
numexpr : None
odfpy : None
openpyxl : 3.1.2
pandas_gbq : None
pyarrow : None
pyreadstat : None
pyxlsb : None
s3fs : None
scipy : 1.10.1
snappy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
zstandard : None
tzdata : 2023.3
qtpy : None
pyqt5 : None
The text was updated successfully, but these errors were encountered: