Thanks Pablo!
I guess I would also like to know how to add arrows for the coordinate
axes, and thanks again!
On Tuesday, July 10, 2012 12:07:58 PM UTC-4, Pablo Fernandez wrote:
>
> >
> > On Tuesday, July 10, 2012 7:41:34 AM UTC-4, The Doctor (Michael) wrote:
> >>
> >> Thanks for the help. For number (1) above I have the basic code, but
> need
> >> to add a label (R), the coordinate axis labels. and need to shade the
> area
> >> in. I am not quite sure how to do this. Here is my basic code. Please
> help.
> >> Thanks.
> >>
> >> arc((0,0), 4, sector=(0,3*pi/2))
> >>
>
> Hi!
> I am rather new to sage too! I have tried your examples. I've used
> polar_plot() instead of arc() for figure 1 (there is disk() aswell):
>
>
> myArc = polar_plot(4, (0, 3*pi/2), ymin=-4, color='red', fill=True,
> fillcolor= 'green', fillalpha=0.2, axes_labels=['X', 'Y'],
> fontsize=15)
>
> radiusLine = line2d([ (0,0), (2*sqrt(2), 2*sqrt(2)) ], color='black',
> thickness=2)
>
> mytext = text("R",(1.6, 2), fontsize = 20, color='black')
>
> figure1 = myArc + radiusLine + mytext
>
>
> And for figure 2, I used polygon():
>
> figure2 = polygon([(0,0), (2,1), (0,3)], alpha=0.5)
>
>
> Show up, figure 1:
>
> figure1.show()
>
> You can always save the figures in svg format for further editing with
> a WYSIWYG svg editor. I use inkscape.
>
> figure1.save('/home/username/Desktop/figure1.svg')
>
> You can read the doc about any function right in the notebook. For
> example, just type:
>
> polygon?
>
> Cheers! Pablo
>
--
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