Hi,
Sage uses matplotlib to render arcs. Unfortunately, it seems
matplotlib.patches.Arc objects can not be filled; see
http://matplotlib.sourceforge.net/api/artist_api.html#matplotlib.patches.Arc
As for labels for coordinate axes, look at the documentation. Your plot
command will be like this:
a = arc((0,0), 4, sector=(0,3*pi/2))
a.axes_labels(['x', 'y'])
For a generic text label, you can use the text command:
t = text('an arc', (1,2))
(a+t).show() # this will combine and show the above two
It also seems that matplotlib's pyplot.title functionality is not exposed
in Sage.
On Tuesday, July 10, 2012 7:48:17 PM UTC+8, The Doctor (Michael) wrote:
>
> I have the code for a basic graph of number (1), but am unsure how to add
> a label (R), labels for the coordinate axes, and how to shade in the area
> under this curve. Any help would be greatly appreciated.
>
> arc((0,0), 4, sector=(0,3*pi/2))
>
>
> On Sunday, July 8, 2012 10:44:31 AM UTC-4, The Doctor (Michael) wrote:
>>
>> Hullo.
>>
>> I am new to Sage, but am hoping that Sage will provide a good alternative
>> to Maple, and MatLab; and that I can use Sage in my new job.
>>
>> Basically, I am now a solution author for Chegg and will be writing
>> solutions for Calculus and Analysis textbooks mainly. For my 1st
>> assignment, I need to be able to draw various regions (domains) to aid in
>> setting up iterated integrals in rectangular and polar coordinates (and
>> eventually spherical and cylcindrical coordinates as well).
>>
>>
>> Right now, I have 2 questions.
>>
>> (1) I need to use Sage to graph three-fourths of a circle with radius = 4
>> (from 0 to 3*pi/2). Then I also need for the area between this arc and the
>> x-axis (for Quadrants 1 and 2) and the y-axis (for Quadrant 3) to be shaded
>> and I need x and y labels for the coordinate system.
>>
>> (2) I need to be able to draw a region D, where D is a triangular region
>> with vertices (0,0), (2,1), (0,3).
>>
>> I have literally just started using Sage (and am not *terribly* efficient
>> with MatLab, and Maple) and need some help here. Thanks,
>>
>> -Michael D
>>
>
--
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