Opened 9 years ago

Last modified 15 months ago

#9491 needs_work enhancement

Allow setting alpha (transparency/opacity) for contour_plot

Reported by: jason Owned by: jason, was
Priority: major Milestone: sage-8.2
Component: graphics Keywords: alpha, transparency, opacity, plot, contour_plot, graphics
Cc: slelievre Merged in:
Authors: Jason Grout Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description (last modified by slelievre)

The object of this ticket is to allow an optional argument "alpha" to set the transparency / opacity for contour_plot, like it exists for other types of plots.

An initial patch enables an 'opacity' argument to the contour_plot function. It should be renamed 'alpha' for consistency with its name elsewhere.

Doctests need to be added, and a few examples need to be written.

Related tickets and discussions:

Attachments (1)

trac-9491-contour-alpha.patch (2.6 KB) - added by jason 9 years ago.

Download all attachments as: .zip

Change History (10)

Changed 9 years ago by jason

comment:1 Changed 9 years ago by jason

  • Status changed from new to needs_work

This patch was done in a rush, so there may be bugs in it.

comment:2 follow-up: Changed 9 years ago by jason

Comments from David Sanders on sage-support:

Firstly, with this code it seems not to be possible to make a region_plot *without* specifying opacity -- it looks like a default argument is missing somewhere.

comment:3 in reply to: ↑ 2 Changed 9 years ago by jason

Replying to jason:

Comments from David Sanders on sage-support:

Firstly, with this code it seems not to be possible to make a region_plot *without* specifying opacity -- it looks like a default argument is missing somewhere.

I think that is correct.

comment:4 Changed 6 years ago by jdemeyer

  • Milestone changed from sage-5.11 to sage-5.12

comment:5 Changed 5 years ago by vbraun_spam

  • Milestone changed from sage-6.1 to sage-6.2

comment:6 Changed 5 years ago by vbraun_spam

  • Milestone changed from sage-6.2 to sage-6.3

comment:7 Changed 5 years ago by vbraun_spam

  • Milestone changed from sage-6.3 to sage-6.4

comment:8 Changed 15 months ago by slelievre

  • Cc slelievre added
  • Description modified (diff)
  • Milestone changed from sage-6.4 to sage-8.2
  • Summary changed from contour plot does not handle transparency to Allow setting alpha (transparency/opacity) for contour_plot

comment:9 Changed 15 months ago by slelievre

  • Description modified (diff)
  • Keywords alpha transparency opacity plot contour_plot graphics added
Note: See TracTickets for help on using tickets.