Skip to content

Legend of point-style items go missing #20418

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
highfestiva opened this issue Mar 20, 2018 · 1 comment
Closed

Legend of point-style items go missing #20418

highfestiva opened this issue Mar 20, 2018 · 1 comment
Labels

Comments

@highfestiva
Copy link

highfestiva commented Mar 20, 2018

Code Sample

import pandas as pd
import matplotlib.pyplot as plt

df = pd.DataFrame(dict(x=[2,3,4],y=[5,7,6]))
_,ax = plt.subplots()
df.plot(style='v', ax=ax)
df.plot(ax=ax)
plt.show()

Problem description

The legend symbol entries of the first items (style="v") go blank when other entries are added below/after.

Expected Output

I expect all legend symbols to show up, no matter which order I plot them in.

Output of pd.show_versions()

commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None

pandas: 0.22.0
pytest: None
pip: 9.0.2
setuptools: 39.0.1
Cython: None
numpy: 1.14.2
scipy: 1.0.0
pyarrow: None
xarray: None
IPython: None
sphinx: None
patsy: 0.4.1
dateutil: 2.7.0
pytz: 2018.3
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 2.2.2
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: 0.9999999
sqlalchemy: 1.2.5
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None

@jbrockmendel jbrockmendel added the Visualization plotting label Jul 30, 2018
@MarcoGorelli
Copy link
Member

Thanks @highfestiva - this was fixed in #27808

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants