[sage-support] Tooltips on a plot

2009-07-03 Thread Ash
Hey, I am currently designing an interactive program that demonstrates the Sieve of Eratosthenes. It displays a grid of numbers, created using the matrix_plot function. I was hoping to include some code that will allow tooltips to appear when the cursor moves over certain numbers in the grid. Is

[sage-support] Re: a question about the plotting in sage

2009-07-03 Thread Ahmed Fasih
If you can give a minimal example generating X, Y, and Stress_Z in Sage or Numpy, we'll be in a better position to reproduce the Matlab output. Also, check these fine 3d plotting examples for Matplotlib: http://www.scipy.org/Cookbook/Matplotlib/mplot3D all the examples will work in Sage since sag

[sage-support] Re: scipy binomial pmf

2009-07-03 Thread Ahmed Fasih
This is also an excellent resource: "How To Ask Questions The Smart Way," by the peerless Eric Steven Raymond: http://catb.org/esr/faqs/smart-questions.html On Jul 3, 8:17 pm, Ahmed Fasih wrote: > Writing your own is a good way to understand the implementation issues > that we sometimes unthinki

[sage-support] Re: scipy binomial pmf

2009-07-03 Thread Ahmed Fasih
Writing your own is a good way to understand the implementation issues that we sometimes unthinkingly rely on, but for production code, it's always a good idea to default to the pre-packaged implementation. In this case, I think it's the standard issue with Scipy not understanding Sage types. Thi

[sage-support] Re: scipy binomial pmf

2009-07-03 Thread Mikie
I am trying to use the binomial pmf function in Scipy. Forget the question I will write my own. Thanx On Jul 3, 9:32 am, William Stein wrote: > On Fri, Jul 3, 2009 at 5:27 PM, Mikie wrote: > > > What is the syntax to get the binomial function in Scipy to calculate? > > I have tried stats.binom.

[sage-support] Re: jsmath

2009-07-03 Thread John H Palmieri
On Jul 3, 5:05 am, Mikie wrote: > Yes, I am not using the notebook.  I have created an API(server) using > a python script.  It lets the user do interactive calculations from my > website.  The output is in a textarea and not "pretty print" as the > notebook.  I was wondering if jsmath could be u

[sage-support] Re: scipy binomial pmf

2009-07-03 Thread William Stein
On Fri, Jul 3, 2009 at 5:27 PM, Mikie wrote: > > What is the syntax to get the binomial function in Scipy to calculate? > I have tried stats.binom.pmf(1,10,.56,0) etc. > Thanks  for the help. (1) I don't understand the question. What does your question mean? (2) Possibly you should also ask on

[sage-support] scipy binomial pmf

2009-07-03 Thread Mikie
What is the syntax to get the binomial function in Scipy to calculate? I have tried stats.binom.pmf(1,10,.56,0) etc. Thanks for the help. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send e

[sage-support] Re: jsmath

2009-07-03 Thread Mikie
Yes, I am not using the notebook. I have created an API(server) using a python script. It lets the user do interactive calculations from my website. The output is in a textarea and not "pretty print" as the notebook. I was wondering if jsmath could be used to do "pretty print". On Jul 2, 8:13

[sage-support] Re: a question about the plotting in sage

2009-07-03 Thread wxuyec
As you said, I read the help about the list_plot3d. It seems to be but not exactly what I want. I want the value of the variable to be draw by different colors, which the list_plot3d can't do. So can you give another favor? Thanks! On 7月3日, 下午6时26分, David Joyner wrote: > Maybe list_plot3d is

[sage-support] Re: a question about the plotting in sage

2009-07-03 Thread David Joyner
Maybe list_plot3d is what you want? Type "list_plot3d?" (without the quotes) at the prompt to see examples. On Fri, Jul 3, 2009 at 6:03 AM, wxuyec wrote: > > I have some data from finite element calculating. I record > the value of a variable at every node of each element. > and I had plotted in

[sage-support] Re: A little question about mod in function definition

2009-07-03 Thread Alasdair
So it seems there are (at least!) two classes of functions; those which accept symbolic input, like sin: m(x)=sin(x/2) and those which don't, such as mod. I had not realized there was such a distinction. Thank you all. -Alasdair On Jul 2, 5:15 am, William Stein wrote: > On Wed, Jul 1, 2009 a

[sage-support] a question about the plotting in sage

2009-07-03 Thread wxuyec
I have some data from finite element calculating. I record the value of a variable at every node of each element. and I had plotted in matlab using the fellowing sentences: fill(X,Y,Stress_z); here the X and Y are the arrays of the x and y coordinates. and the Stress_z is the value of the variable