On 01/21/2010 08:16:22 AM, William Stein wrote:
On Thu, Jan 21, 2010 at 7:50 AM, Mike Witt <[email protected]> wrote:
> On 01/21/2010 07:35:13 AM, William Stein wrote:
>>
>> On Thu, Jan 21, 2010 at 7:06 AM, Mike Witt <[email protected]>
wrote:
>> > Is there a way to specify default parameters for graphics? One
specific
>> > example, is that I would like to specify that the default color
for
>> > function plots, lines, points, etc be 'black' instead of 'blue'.
>> >
>>
>> sage: plot.options
>> {'fillalpha': 0.5, 'detect_poles': False, 'plot_points': 200,
>> 'thickness': 1, 'adaptive_tolerance': 0.01, 'fillcolor':
'automatic',
>> 'alpha': 1, 'adaptive_recursion': 5, 'rgbcolor': (0, 0, 1), 'fill':
>> None}
>> sage: plot.options['rgbcolor'] = (0,0,0)
>> sage: plot(sin)
>> [outputs a black plot of sin]
>
> I guess what I was looking for was some equivalent "options"
> for graphics in general. plot.options affects the color of functions
> plotted, but I'd like to change the "default" color for functions,
> points, lines, etc from blue to black.
>
> -mike
You can set the defaults for those as well in a similar way:
sage: line2d.options
{'alpha': 1, 'rgbcolor': (0, 0, 1), 'thickness': 1}
sage: point2d.options
{'alpha': 1, 'pointsize': 10, 'faceted': False, 'rgbcolor': (0, 0, 1)}
So that's the trick. I had been trying to find line.options and
point.options :-)
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org