Skip to content

plot_date() ignores timezone #5575

@timtroendle

Description

@timtroendle

Using matplotlib 1.5.0, I am doing the following:

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, [4]*4, tz='UTC')

The two plot_date calls yield the same plot, hence it seems plot_date() ignores the tz argument. This had been reported and fixed in #193, but for me it doesn't seem to work.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions