Opened 11 years ago
Last modified 3 years 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 )
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)
Change History (10)
Changed 11 years ago by
comment:1 Changed 11 years ago by
- Status changed from new to needs_work
comment:2 follow-up: ↓ 3 Changed 11 years ago by
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 11 years ago by
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 8 years ago by
- Milestone changed from sage-5.11 to sage-5.12
comment:5 Changed 7 years ago by
- Milestone changed from sage-6.1 to sage-6.2
comment:6 Changed 7 years ago by
- Milestone changed from sage-6.2 to sage-6.3
comment:7 Changed 7 years ago by
- Milestone changed from sage-6.3 to sage-6.4
comment:8 Changed 3 years ago by
- 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 3 years ago by
- Description modified (diff)
- Keywords alpha transparency opacity plot contour_plot graphics added
This patch was done in a rush, so there may be bugs in it.