Opened 5 years ago

Closed 5 years ago

#18035 closed enhancement (fixed)

Handle more text options

Reported by: vdelecroix Owned by:
Priority: major Milestone: sage-6.6
Component: graphics Keywords: days64
Cc: Merged in:
Authors: Vincent Delecroix Reviewers: Eric Gourgoulhon
Report Upstream: N/A Work issues:
Branch: 59d1447 (Commits) Commit: 59d14478065778d8ee4d5536751db8ec38836a8d
Dependencies: Stopgaps:

Description

As mentioned in this question on ask.sagemath.org we shoud allow more options to text. The attached branch adds:

  • fontstyle
  • fontweight
  • background_color
  • bbox
  • alpha

See http://matplotlib.org/users/text_props.html for the complete list of options.

Change History (5)

comment:1 Changed 5 years ago by vdelecroix

  • Branch set to u/vdelecroix/18035
  • Commit set to 82697ddae0fdce52ee8e295909d069c3b639686e
  • Status changed from new to needs_review

New commits:

82697ddTrac 18035: more options to text

comment:2 Changed 5 years ago by egourgoulhon

  • Branch changed from u/vdelecroix/18035 to public/18035
  • Commit changed from 82697ddae0fdce52ee8e295909d069c3b639686e to 59d14478065778d8ee4d5536751db8ec38836a8d
  • Keywords days64 added
  • Reviewers set to Eric Gourgoulhon
  • Status changed from needs_review to positive_review

Looks good to me. I simply corrected a typo in the documentation of function text (bad rendering of horizontal_alignement).


New commits:

59d1447Trac #18035: correct a typo in the documentation of text

comment:3 follow-up: Changed 5 years ago by vdelecroix

Cool! Many thanks Eric. Better pictures in perspective ;-)

Vincent

comment:4 in reply to: ↑ 3 Changed 5 years ago by egourgoulhon

Replying to vdelecroix:

Cool! Many thanks Eric. Better pictures in perspective ;-)

Indeed! This is a nice improvement!

Eric.

comment:5 Changed 5 years ago by vbraun

  • Branch changed from public/18035 to 59d14478065778d8ee4d5536751db8ec38836a8d
  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.