8000 Python pandas datetime plot xticks in unexpected location · Issue #12925 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
Python pandas datetime plot xticks in unexpected location #12925
Closed
@hagaishalev

Description

@hagaishalev

Bug report

I wouldn't have expected to see the 29th of some of the month labelled
Bug summary
I wouldn't have expected to see the 29th of some of the month labelled

Code for reproduction

# Paste your code here
#
#
import pandas as pd
import matplotlib.pyplot as plt
x = pd.date_range(start='1/1/2018', periods=80) # 80 days
y = pd.np.random.random(80)
plt.plot(x, y ,'o')
plt.xticks(rotation='vertical')

Actual outcome
timeplot

# If applicable, paste the console output here
#
#

Expected outcome

Matplotlib version

  • Operating system: Win10 64bit
  • Matplotlib version: 3.0.1
  • Matplotlib backend (print(matplotlib.get_backend())): module://ipykernel.pylab.backend_inline
  • Python version: 3.7.1
  • Jupyter version (if applicable): 5.7.2
  • Other libraries: pandas 0.23.4
  • conda 4.5.11

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0