Opened 4 years ago

Last modified 5 weeks ago

#21282 positive_review defect

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:

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 (7)

comment:1 Changed 4 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/graphics.py, unicode characters are already accepted and transmitted correctly to matplotlib.

comment:2 Changed 4 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 4 years ago by paulmasson

  • Cc paulmasson added

comment:4 Changed 2 years ago by slelievre

  • Cc slelievre added
  • Keywords unicode plot added

Fixed by #21008?

comment:5 Changed 6 weeks ago by mkoeppe

  • Description modified (diff)

Adjusted example in the ticket description to py3 syntax

comment:6 Changed 6 weeks 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 5 weeks ago by paulmasson

  • Reviewers set to Paul Masson
  • Status changed from needs_review to positive_review
Note: See TracTickets for help on using tickets.