[sage-devel] Re: plot_vector_field

2007-06-05 Thread Hamptonio

OK, thanks. I will look into hacking the quiver function.

It is unclear to me, from your response, if you understand the problem
with plot_vector_field in its current form.  The example from the
wolfram site is somewhat misleading, since it uses a vector field of
the form (f(x),g(y)), but this is not necessary in mathematica - it
can handle fields of the form (f(x,y),g(x,y)), which is what my patch
fixes.

Cheers,
Marshall Hampton

On Jun 5, 1:09 pm, "alex clemesha" <[EMAIL PROTECTED]> wrote:
> > At the moment, plot_vector_field is only capable of plotting product
> > vector fields, which is unacceptable for my use of it in an ODE
> > class.  Since it is a crucial issue for my use, I plan on trying to
> > extend it to handle arbitrary 2d fields, unless Alex Clemesha feels
> > like doing it for me.  Any tips are appreciated.
>
> Hi Marshall,
>
> The motivation behind the function 'plot_vector_field' is it is one of
> several from Mathematica's 'PlotField' plotting functions, 
> see:http://reference.wolfram.com/mathematica/Compatibility/tutorial/Graph...
>
> If you go to the above link, I think you will find that the other couple
> 'missing' functions (not in SAGE yet), are the others listed on the page.
>
> Actually, in SAGE, is the class 'GraphicPrimitive_PlotField', which is a
> more general
> class that was designed to enable the implementation all the functions of
> Mathematica's 'PlotField' package ... and actually implementing the rest of
> those functions might be 'easy'.  (but if you want to do that and you want
> them to look really nice, get ready to chase around pixels ;)
>
> What is really going on with the class 'GraphicPrimitive_PlotField' is it is
> a wrapper
> on top of matplotlib's (see google if you are not familiar) 'quiver'
> function.
> The quiver function is a pretty general function, and it holds all the
> underlying parameters (arrows of constant length) that can be manipulated.
>
> Alex
>
> p.s. I'm glad you are interested in some of the more 'advanced'-ish plotting
> functions
> in SAGE, you can make some beautiful and illuminating images with them,
> and they definitely couldn't hurt being improved.


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@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-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: plot_vector_field

2007-06-05 Thread William Stein

On 6/5/07, alex clemesha <[EMAIL PROTECTED]> wrote:
> > Any chance you could "commit" to implementing the
> > other vector field plots during SD4 next week?
>
> Yes, I guess could 'commit' ...
> ... does that mean 'promise to implement perfectly', I at least commit to
> try ;)

Excellent!

> b.t.w. Dorian and I have been working very hard on our project
> that we are calling Knoboo ... our generalized computation notebook.
> We have 'solved' (not robustly completed, but 'solved') problems like:
>

Post some easy-to-try demo code!  It will help
us prepare for the coding sprints.

> Some problems we have yet to tackle are some of the others
> you mention earlier in the chroot thread like controlling users resources
> and permissions, which will be great to collaborate on at SAGE days.

I can help with that.

William

--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@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-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: plot_vector_field

2007-06-05 Thread alex clemesha
> Any chance you could "commit" to implementing the
> other vector field plots during SD4 next week?


Yes, I guess could 'commit' ...
... does that mean 'promise to implement perfectly', I at least commit to
try ;)

b.t.w. Dorian and I have been working very hard on our project
that we are calling Knoboo ... our generalized computation notebook.
We have 'solved' (not robustly completed, but 'solved') problems like:

SSL-enabled user sessions with Twisted, i.e. only allow users to log in
who provide correct (say email/password combo, maybe setup beforehand),
and associated 'settings' to each user.
Once each user logs in he is presented with his own notebooks / settings,
and very Mathematica like interface (nested / collapsing / code cells and
text cells).

Some problems we have yet to tackle are some of the others
you mention earlier in the chroot thread like controlling users resources
and permissions, which will be great to collaborate on at SAGE days.

-Alex

(Sorry about the above thread high-jacking)

On 6/5/07, alex clemesha <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > >
> > > At the moment, plot_vector_field is only capable of plotting product
> > > vector fields, which is unacceptable for my use of it in an ODE
> > > class.  Since it is a crucial issue for my use, I plan on trying to
> > > extend it to handle arbitrary 2d fields, unless Alex Clemesha feels
> > > like doing it for me.  Any tips are appreciated.
> >
> > Hi Marshall,
> >
> > The motivation behind the function 'plot_vector_field' is it is one of
> > several from Mathematica's 'PlotField' plotting functions, see:
> >
> http://reference.wolfram.com/mathematica/Compatibility/tutorial/Graphics/PlotField.html
> >
> > If you go to the above link, I think you will find that the other couple
> > 'missing' functions (not in SAGE yet), are the others listed on the
> page.
> >
> > Actually, in SAGE, is the class 'GraphicPrimitive_PlotField', which is a
> > more general
> > class that was designed to enable the implementation all the functions
> of
> > Mathematica's 'PlotField' package ... and actually implementing the rest
> of
> > those functions might be 'easy'.  (but if you want to do that and you
> want
> > them to look really nice, get ready to chase around pixels ;)
> >
> > What is really going on with the class 'GraphicPrimitive_PlotField' is
> it is
> > a wrapper
> > on top of matplotlib's (see google if you are not familiar) 'quiver'
> > function.
> > The quiver function is a pretty general function, and it holds all the
> > underlying parameters (arrows of constant length) that can be
> manipulated.
> >
> > Alex
> >
> > p.s. I'm glad you are interested in some of the more 'advanced'-ish
> plotting
> > functions
> > in SAGE, you can make some beautiful and illuminating images with them,
> > and they definitely couldn't hurt being improved.
> >
> >
> >
> >  >
> >
>
>
> --
> William Stein
> Associate Professor of Mathematics
> University of Washington
> http://www.williamstein.org
>
> >
>

--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@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-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: plot_vector_field

2007-06-05 Thread William Stein

Alex,

Any chance you could "commit" to implementing the
other vector field plots during SD4 next week?

On 6/5/07, alex clemesha <[EMAIL PROTECTED]> wrote:
>
>
>
> >
> > At the moment, plot_vector_field is only capable of plotting product
> > vector fields, which is unacceptable for my use of it in an ODE
> > class.  Since it is a crucial issue for my use, I plan on trying to
> > extend it to handle arbitrary 2d fields, unless Alex Clemesha feels
> > like doing it for me.  Any tips are appreciated.
>
> Hi Marshall,
>
> The motivation behind the function 'plot_vector_field' is it is one of
> several from Mathematica's 'PlotField' plotting functions, see:
> http://reference.wolfram.com/mathematica/Compatibility/tutorial/Graphics/PlotField.html
>
> If you go to the above link, I think you will find that the other couple
> 'missing' functions (not in SAGE yet), are the others listed on the page.
>
> Actually, in SAGE, is the class 'GraphicPrimitive_PlotField', which is a
> more general
> class that was designed to enable the implementation all the functions of
> Mathematica's 'PlotField' package ... and actually implementing the rest of
> those functions might be 'easy'.  (but if you want to do that and you want
> them to look really nice, get ready to chase around pixels ;)
>
> What is really going on with the class 'GraphicPrimitive_PlotField' is it is
> a wrapper
> on top of matplotlib's (see google if you are not familiar) 'quiver'
> function.
> The quiver function is a pretty general function, and it holds all the
> underlying parameters (arrows of constant length) that can be manipulated.
>
> Alex
>
> p.s. I'm glad you are interested in some of the more 'advanced'-ish plotting
> functions
> in SAGE, you can make some beautiful and illuminating images with them,
> and they definitely couldn't hurt being improved.
>
>
>
>  >
>


-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://www.williamstein.org

--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@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-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: plot_vector_field

2007-06-05 Thread alex clemesha
> At the moment, plot_vector_field is only capable of plotting product
> vector fields, which is unacceptable for my use of it in an ODE
> class.  Since it is a crucial issue for my use, I plan on trying to
> extend it to handle arbitrary 2d fields, unless Alex Clemesha feels
> like doing it for me.  Any tips are appreciated.


Hi Marshall,

The motivation behind the function 'plot_vector_field' is it is one of
several from Mathematica's 'PlotField' plotting functions, see:
http://reference.wolfram.com/mathematica/Compatibility/tutorial/Graphics/PlotField.html

If you go to the above link, I think you will find that the other couple
'missing' functions (not in SAGE yet), are the others listed on the page.

Actually, in SAGE, is the class 'GraphicPrimitive_PlotField', which is a
more general
class that was designed to enable the implementation all the functions of
Mathematica's 'PlotField' package ... and actually implementing the rest of
those functions might be 'easy'.  (but if you want to do that and you want
them to look really nice, get ready to chase around pixels ;)

What is really going on with the class 'GraphicPrimitive_PlotField' is it is
a wrapper
on top of matplotlib's (see google if you are not familiar) 'quiver'
function.
The quiver function is a pretty general function, and it holds all the
underlying parameters (arrows of constant length) that can be manipulated.

Alex

p.s. I'm glad you are interested in some of the more 'advanced'-ish plotting
functions
in SAGE, you can make some beautiful and illuminating images with them,
and they definitely couldn't hurt being improved.

--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@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-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: plot_vector_field

2007-06-05 Thread Hamptonio

One thing I can't figure out is how to make the arrows a constant
length.  Any suggestions?

Thanks,
Marshall

On Jun 5, 9:39 am, Hamptonio <[EMAIL PROTECTED]> wrote:
> At the moment, plot_vector_field is only capable of plotting product
> vector fields, which is unacceptable for my use of it in an ODE
> class.  Since it is a crucial issue for my use, I plan on trying to
> extend it to handle arbitrary 2d fields, unless Alex Clemesha feels
> like doing it for me.  Any tips are appreciated.
>
> actually I think my first attempt works, I just modified
> GraphicPrimitiveFactory_plot_field so that it evaluates functions of
> two arguments.  A diff patch file is at
>
> http://www.d.umn.edu/~mhampton/plotpatch
>
> If this looks okay I will try to update the documentation as well.
>
> -Marshall Hampton


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@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-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---