matplotlib also some options for setting the shape of points and
linestyles - the help in the plot command says:

        Any MATPLOTLIB line option may also be passed in.  E.g.,
        linestyle -- The style of the line, which is one of
                  '--' (dashed), '-.' (dash dot), '-' (solid),
                  'steps', ':' (dotted)
        marker  -- "'0' (tickleft), '1' (tickright), '2' (tickup),
'3' (tickdown),
                   '' (nothing), ' ' (nothing), '+' (plus),
',' (pixel), '.' (point),
                   '1' (tri_down), '3' (tri_left), '2' (tri_up),
'4' (tri_right),
                   '<' (triangle_left), '>' (triangle_right),
'None' (nothing),
                   'D' (diamond), 'H' (hexagon2), '_' (hline),
'^' (triangle_up),
                   'd' (thin_diamond), 'h' (hexagon1), 'o' (circle),
'p' (pentagon),
                   's' (square), 'v' (triangle_down), 'x' (x),
'|' (vline)"
       markersize -- the size of the marker in points
       markeredgecolor -- the markerfacecolor can be any color arg
       markeredgewidth -- the size of the marker edge in points

...but those marker options don't seem to be supported for the point
command as far as I can tell.  We need to have better access to all of
matplotlib's functionality, some of which is in the pipeline I
believe.

-Marshall

On Jan 15, 9:20 am, Jason Grout <[email protected]> wrote:
> Mike Hansen wrote:
> > Hello,
>
> > On Thu, Jan 15, 2009 at 1:54 AM, bgbg. bg <[email protected]> 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 [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
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to