Opened 12 years ago

Closed 12 years ago

#1856 closed defect (fixed)

[with patch; positive review] 3d graphics -- bug in setting options via the show command

Reported by: was Owned by: was
Priority: major Milestone: sage-2.10.1
Component: graphics Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

Try this:

sage: sphere((0,0,0), figsize=2).show(viewer='tachyon', figsize=10)

A tiny picture of a sphere appears. It should be that the second figsize overwrites the first.

Attachments (2)

trac-1856.patch (5.1 KB) - added by was 12 years ago.
1856.patch (5.4 KB) - added by mhansen 12 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 12 years ago by was

  • Status changed from new to assigned

Changed 12 years ago by was

comment:2 Changed 12 years ago by was

  • Summary changed from 3d graphics -- bug in setting options via the show command to [with patch; needs review] 3d graphics -- bug in setting options via the show command

This fixes the problem mentioned above in a simple clean way, adds the ability to globally override the defaults, and adds an unrelated doctest.

Changed 12 years ago by mhansen

comment:3 Changed 12 years ago by mhansen

  • Summary changed from [with patch; needs review] 3d graphics -- bug in setting options via the show command to [with patch; positive review] 3d graphics -- bug in setting options via the show command

The patch I posted applies (after #1854) and passes tests.

comment:4 Changed 12 years ago by mabshoff

  • Resolution set to fixed
  • Status changed from assigned to closed

Merged trac-1856.patch in Sage 2.10.1.alpha. mhansen's patch gave rejects.

Note: See TracTickets for help on using tickets.