[sage-support] Controlling SAGE graphics

2007-02-25 Thread Timothy Clemans

I am trying to get my graphic to have no axis and for x-min and y-min
to be 0. How do I do that?

g = Graphics()
g.__show_axes = False
g += point((1,1),rgbcolor=(0.9,0.5,0.7))
g += point((1,2),rgbcolor=(0.9,0.5,0.7))
g += point((2,1),rgbcolor=(0.9,0.5,0.7))
g += point((2,2),rgbcolor=(0.9,0.5,0.7))
g += point((1,1.5),rgbcolor=(0.9,0.5,0.7))
g += point((1.5,2),rgbcolor=(0.9,0.5,0.7))
g += point((2,1.5),rgbcolor=(0.9,0.5,0.7))
g += point((1.5,1),rgbcolor=(0.9,0.5,0.7))
g += point((1.5,1.5),rgbcolor=(0.9,0.5,0.7))
g += line([(1,1),(1,2)],thickness=0.5)
g += line([(1,2),(2,2)],thickness=0.5)
g += line([(2,2),(2,1)],thickness=0.5)
g += line([(2,1),(1,1)],thickness=0.5)
g += line([(1,1.5),(2,1.5)],thickness=0.5)
g += line([(1.5,1),(1.5,2)],thickness=0.5)
g.show()

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: Controlling SAGE graphics

2007-02-25 Thread David Joyner

Here's an example of the axes=False option:

L = [[cos(pi*i/100),sin(pi*i/100)] for i in range(200)]
p = line(L, rgbcolor=(0,0,0))
p.save(/home/wdj/sagefiles/circle.png,axes=False)



Timothy Clemans wrote:
 I am trying to get my graphic to have no axis and for x-min and y-min
 to be 0. How do I do that?
 
 g = Graphics()
 g.__show_axes = False
 g += point((1,1),rgbcolor=(0.9,0.5,0.7))
 g += point((1,2),rgbcolor=(0.9,0.5,0.7))
 g += point((2,1),rgbcolor=(0.9,0.5,0.7))
 g += point((2,2),rgbcolor=(0.9,0.5,0.7))
 g += point((1,1.5),rgbcolor=(0.9,0.5,0.7))
 g += point((1.5,2),rgbcolor=(0.9,0.5,0.7))
 g += point((2,1.5),rgbcolor=(0.9,0.5,0.7))
 g += point((1.5,1),rgbcolor=(0.9,0.5,0.7))
 g += point((1.5,1.5),rgbcolor=(0.9,0.5,0.7))
 g += line([(1,1),(1,2)],thickness=0.5)
 g += line([(1,2),(2,2)],thickness=0.5)
 g += line([(2,2),(2,1)],thickness=0.5)
 g += line([(2,1),(1,1)],thickness=0.5)
 g += line([(1,1.5),(2,1.5)],thickness=0.5)
 g += line([(1.5,1),(1.5,2)],thickness=0.5)
 g.show()
 
  
 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---