Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion galleries/examples/ticks/colorbar_tick_labelling_demo.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
=======================
Colorbar Tick Labelling
Colorbar Tick labelling
=======================

Vertical colorbars have ticks, tick labels, and labels visible on the *y* axis,
Expand Down
15 changes: 7 additions & 8 deletions galleries/examples/ticks/date_demo_convert.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"""
=================
Date Demo Convert
=================

===================
Date converter demo
===================
"""

import datetime

import matplotlib.pyplot as plt
Expand All @@ -21,14 +21,13 @@
fig, ax = plt.subplots()
ax.plot(dates, y**2, 'o')

# this is superfluous, since the autoscaler should get it right, but
# This is superfluous, since the autoscaler should get it right, but
# use date2num and num2date to convert between dates and floats if
# you want; both date2num and num2date convert an instance or sequence
# you want; both date2num and num2date convert an instance or sequence.
ax.set_xlim(dates[0], dates[-1])

# The hour locator takes the hour or sequence of hours you want to
# tick, not the base multiple

# tick, not the base multiple.
ax.xaxis.set_major_locator(DayLocator())
ax.xaxis.set_minor_locator(HourLocator(range(0, 25, 6)))
ax.xaxis.set_major_formatter(DateFormatter('%Y-%m-%d'))
Expand Down
6 changes: 3 additions & 3 deletions galleries/examples/ticks/fig_axes_customize_simple.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
=========================
Fig Axes Customize Simple
=========================
======================================
Customizing figure and axes appearance
======================================

Customize the background, labels and ticks of a simple plot.

Expand Down
Loading