Opened 5 years ago

Closed 10 months ago

#21282 closed defect (worksforme)

Not all unicode works in plot (e.g. for axis labels)

Reported by: kcrisman Owned by:
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: graphics Keywords: unicode, plot
Cc: jmantysalo, chapoton, paulmasson, slelievre Merged in:
Authors: Reviewers: Paul Masson
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by mkoeppe)

This answer to an ask.sagemath question point out that

plot(sin, 0, pi, axes_labels=('Ось абсцисс $x$', 'Ось ординат $y$'))

doesn't work. Apparently before #21008 was resolved it was worse. Maybe we can fix this?

Change History (8)

comment:1 Changed 5 years ago by chapoton

This is purely a matplotlib problem with the default font. There is nothing to be fixed here. As explained in the doc of axes_labels in sage/plot/, unicode characters are already accepted and transmitted correctly to matplotlib.

comment:2 Changed 5 years ago by kcrisman

So ... but at the same time we have a confused user. And

Note that this does not guarantee that matplotlib will handle the strings properly, although it should.

Well, it didn't, apparently, in this case. So is this an upstream problem to report there? I think it would be reasonable to put this as an example that doesn't work in our doc, even, if upstream won't/can't fix it.

comment:3 Changed 5 years ago by paulmasson

  • Cc paulmasson added

comment:4 Changed 3 years ago by slelievre

  • Cc slelievre added
  • Keywords unicode plot added

Fixed by #21008?

comment:5 Changed 12 months ago by mkoeppe

  • Description modified (diff)

Adjusted example in the ticket description to py3 syntax

comment:6 Changed 12 months ago by mkoeppe

  • Milestone changed from sage-7.4 to sage-duplicate/invalid/wontfix
  • Status changed from new to needs_review

Outdated, works for me

comment:7 Changed 12 months ago by paulmasson

  • Reviewers set to Paul Masson
  • Status changed from needs_review to positive_review

comment:8 Changed 10 months ago by slelievre

  • Resolution set to worksforme
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.