Skip to content

Clipped tick labels #8609

Closed
Closed
@a113n

Description

@a113n

Bug report

Bug summary
Clipped tick labels if emojis were used

Code for reproduction

from __future__ import unicode_literals

import matplotlib.pyplot as plt

fig, ax = plt.subplots()
tick_labels = ['😃', '😎', '😴', '😲', '❤️']
y = [1, 4, 9, 16, 25]
x = range(5)
ax.bar(x, y, tick_label=tick_labels, align='center')
ax.xaxis.set_tick_params(labelsize=20)

ax.set_title('Диаграмма со смайликами')

Actual outcome
bug

Expected outcome
The tick labels are not clipped

Matplotlib version

  • Operating System: Windows 10 1610
  • Matplotlib Version: 2.0.2
  • Python Version: 3.6.1
  • Jupyter Version (if applicable):
  • Other Libraries:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions