Skip to content

[BUG] plt.scatter giving ValueError when trying to set marker option #18291

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
mmcky opened this issue Aug 19, 2020 · 2 comments
Closed

[BUG] plt.scatter giving ValueError when trying to set marker option #18291

mmcky opened this issue Aug 19, 2020 · 2 comments

Comments

@mmcky
Copy link

mmcky commented Aug 19, 2020

Bug report

Bug summary

Setting maker in a scatter plot is causing ValueError

Code for reproduction

import matplotlib.pyplot as plt
f = plt.figure()
s = plt.scatter([1, 2, 3], [4, 5, 6], marker="")

removing the marker option plots the scatter graph. I refered to the docs for valid marker options text shorthand and it seems none of them work.

Actual outcome

<matplotlib.collections.PathCollection at 0x7f9d2bd8cee0>
...
ValueError: zero-size array to reduction operation minimum which has no identity

<Figure size 432x288 with 1 Axes>

Expected outcome

Matplotlib version

  • Operating system: OS X
  • Matplotlib version: 3.3.1
  • Matplotlib backend (print(matplotlib.get_backend())): module://ipykernel.pylab.backend_inline
  • Python version: 3.8
  • Jupyter version (if applicable):
  • Other libraries: 1.19.1

used conda with the following environment.yml file

name: qe-lectures
channels:
  - default
  - conda-forge
dependencies:
  - pip
  - python
  - jupyter
  - jupyterlab
  - nbconvert
  - pandoc
  - pandas
  - numba
  - numpy
  - matplotlib
  - networkx
  - sphinx=2.4.4
  - scikit-learn
  - statsmodels
  - seaborn
  - scipy
  - sympy
  - pip:
    - interpolation
    - sphinxcontrib-jupyter
    - sphinxcontrib-bibtex
    - joblib
@jklymak
Copy link
Member

jklymak commented Aug 19, 2020

This is a duplicate of #18254 Sorry for the inconvenience.

@mmcky
Copy link
Author

mmcky commented Aug 19, 2020

Ah sorrry @jklymak did a quick search but didn't see that. Thanks.

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

No branches or pull requests

2 participants