Mike Hansen wrote:
> Hello,
> 
> On Thu, Jan 15, 2009 at 1:54 AM, bgbg. bg <bgbg...@gmail.com> wrote:
>> Hello,
>> consider the following matlab code:
>>
>> x = [1,2,3,4];
>> y = [2,3,4,5];
>> z = [4,3,2,1];
>> figure(1);
>> plot (x,y, 'ok');
>> figure(2);
>> plot3(x,y,z, 'or');
>>
>> what should I use in sage notebooks in order to achieve similar figures?


x=[1,2,3,4]
y=[2,3,4,5]
z=[3,4,5,6]
show(points(zip(x,y), color='black'))

or

show(points(zip(x,y,z)))


or

show(points(zip(x,y,z), color='red'))


(in fact, it's enough in the notebook just to call points(zip(x,y)), 
without the show)



Jason


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to