FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Python pandas datetime plot xticks in unexpected location · Issue #12925 · matplotlib/matplotlib · GitHub

Repository navigation

Python pandas datetime plot xticks in unexpected location #12925

Closed

Description

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

# 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

Activity

  1. jklymak commented on Dec 3, 2018

    Member

    Yes agreed this is a strange choice. Fixed in #10841 which will hopefully be part of 3.1

  2. added this to the v3.1 milestone on Dec 3, 2018
  3. jklymak commented on Feb 11, 2019

    Member

    Master now no longer has the 29 ticks....

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL