[sage-support] Re: vector field question

2012-06-05 Thread kcrisman
On Tuesday, June 5, 2012 10:09:18 AM UTC-4, Jason Grout wrote: > > On 6/5/12 9:03 AM, kcrisman wrote: > > > Cool. Is this a "standard" enough thing to take discrete data and get a > > contour plot that we should wrap this (perhaps overloading > contour_plot)? > > Yes, I think so. In fact, we

[sage-support] Re: vector field question

2012-06-05 Thread Jason Grout
On 6/5/12 9:03 AM, kcrisman wrote: Cool. Is this a "standard" enough thing to take discrete data and get a contour plot that we should wrap this (perhaps overloading contour_plot)? Yes, I think so. In fact, we can just directly call the contour plot function in matplotlib with that data, so

[sage-support] Re: vector field question

2012-06-05 Thread kcrisman
On Monday, June 4, 2012 9:13:03 PM UTC-4, Jason Grout wrote: > > On 6/4/12 7:15 PM, Dan Aldrich wrote: > > Well, I spoke too soon. I can plot the matrix, but not contour_plot it. > > > > V = matrix([ > > [0.020, 0.020, 0.016, 0.014, 0.011, 0.011], > > [0.021, 0.018, 0.016, 0.013, 0.010, 0.01

[sage-support] Re: vector field question

2012-06-05 Thread Jason Grout
On 6/5/12 6:32 AM, Dan Aldrich wrote: Thank you Jason. That is very close to what I was looking for. I turned off the fill. Is there a way to label each contour line? I'd like to label the voltage gradient on the line like a topographic map. See the contour plot documentation, which talks abou

Re: [sage-support] Re: vector field question

2012-06-05 Thread Dan Aldrich
Thank you Jason. That is very close to what I was looking for. I turned off the fill. Is there a way to label each contour line? I'd like to label the voltage gradient on the line like a topographic map. -d At 09:13 PM 6/4/2012, you wrote: There are several things you could do: Use the matpl

[sage-support] Re: vector field question

2012-06-04 Thread Jason Grout
On 6/4/12 7:15 PM, Dan Aldrich wrote: Well, I spoke too soon. I can plot the matrix, but not contour_plot it. V = matrix([ [0.020, 0.020, 0.016, 0.014, 0.011, 0.011], [0.021, 0.018, 0.016, 0.013, 0.010, 0.011], [0.017, 0.015, 0.015, 0.012, 0.010, 0.011], [0.013, 0.013, 0.011, 0.009, 0.007, 0.009

Re: [sage-support] Re: vector field question

2012-06-04 Thread Dan Aldrich
Well, I spoke too soon. I can plot the matrix, but not contour_plot it. V = matrix([ [0.020, 0.020, 0.016, 0.014, 0.011, 0.011], [0.021, 0.018, 0.016, 0.013, 0.010, 0.011], [0.017, 0.015, 0.015, 0.012, 0.010, 0.011], [0.013, 0.013, 0.011, 0.009, 0.007, 0.009], [0.011, 0.010, 0.00

Re: [sage-support] Re: vector field question

2012-06-04 Thread Dan Aldrich
YES! I couldn't think of the term. I'll go back to searching for that. Thank you, -d At 06:25 PM 6/4/2012, you wrote: On Monday, June 4, 2012 3:12:00 PM UTC-7, Dan Aldrich wrote: I've used sage for a while now and have used the vector field for equations. I'm a bit stumped on this one. I want

[sage-support] Re: vector field question

2012-06-04 Thread John H Palmieri
On Monday, June 4, 2012 3:12:00 PM UTC-7, Dan Aldrich wrote: > > I've used sage for a while now and have used the vector field for > equations. I'm a bit stumped on this one. I want to make an 2D > electric field chart from an array of voltage measurements like an > isobar chart only lines of