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
If plotting in opposite order, it gives incorrect result:
t2.plot()
t1.plot()
Same problem if using secondary_y:
t2.plot()
t1.plot(secondary_y=True)
And if I try to plot it in the first order using secondary_y - it crashes the python (in IPython notebook - on the cell evaluation, in console - on plt.show()):
t1.plot()
t2.plot(secondary_y=True)
P.s. using plot(..., x_compat=True) resolves these issues.
Output of pd.show_versions()
The pandas version is 0.19.2+0.g825876c.dirty, which was installed as a default option by anaconda.
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.12.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 63 Stepping 0, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
sorry for late comment, but I just check what you said. Can you explain the reason why that results happens? I don't understand why the result changes by just changing the order of codes.
I believe it relates to the discussion in #15071, but I still think that reporting a test-case would be useful.
Synthetic example of two series
Problem description
Plotting it this way is done correctly:
If plotting in opposite order, it gives incorrect result:
Same problem if using
secondary_y
:And if I try to plot it in the first order using
secondary_y
- it crashes the python (in IPython notebook - on the cell evaluation, in console - onplt.show()
):P.s. using
plot(..., x_compat=True)
resolves these issues.Output of
pd.show_versions()
The pandas version is
0.19.2+0.g825876c.dirty
, which was installed as a default option by anaconda.pandas: 0.19.2+0.g825876c.dirty
nose: 1.3.7
pip: 8.1.2
setuptools: 27.2.0
Cython: 0.25.1
numpy: 1.11.2
scipy: 0.18.1
statsmodels: 0.6.1
xarray: None
IPython: 5.1.0
sphinx: 1.4.8
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.7
blosc: None
bottleneck: 1.1.0
tables: 3.2.2
numexpr: 2.6.1
matplotlib: 1.5.1
openpyxl: 2.4.0
xlrd: 1.0.0
xlwt: 1.1.2
xlsxwriter: 0.9.3
lxml: 3.6.0
bs4: 4.5.1
html5lib: 0.999
httplib2: None
apiclient: None
sqlalchemy: 1.1.3
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.43.0
pandas_datareader: 0.2.0
The text was updated successfully, but these errors were encountered: