plot_date() ignores timezone in matplotlib version 2.0.0 · Issue #8072 · matplotlib/matplotlib · GitHub
Skip to content

plot_date() ignores timezone in matplotlib version 2.0.0 #8072

Description

@robinloxley1

Bug report

Bug summary

copy paste the code from #5575

import pytz
import matplotlib.pyplot as plt
from datetime import datetime
time_index = [pytz.timezone('Europe/Berlin').localize(datetime(year=2015, month=11, day=27, hour=x)) for x in range(4)]
plt.plot_date(time_index, [4]*4, tz='Europe/Berlin')
plt.plot_date(time_index, [3]*4, tz='UTC')

Actual outcome

  • The output gives no difference in xaxis, implying tz is not working.

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions