Skip to content

Markers are not centered properly #11836

Closed
@jason-s

Description

@jason-s

I am using IPython Notebook to view matplotlib graphs. I have noticed many times that the markers are drawn slightly off-center. Here is an example:

image

Closeup:

image

Code to reproduce:

%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt

t = np.linspace(-1,1,40)
plt.plot(t,t**3 - 0.75*t,'.-',linewidth=0.3)
plt.grid(True)

Matplotlib version

  • Operating system: Windows 10
  • Matplotlib version: 2.2.2'
  • Matplotlib backend (print(matplotlib.get_backend())): module://ipykernel.pylab.backend_inline
  • Python version: 2.7.15 from Anaconda Python
  • Jupyter version (if applicable): 5.5.0
  • Other libraries: n/a

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions