Thanks, I will use matplotlib as I get more experience with sage.
On Sat, 2009-09-05 at 17:58 -0500, Jason Grout wrote:
> asdfAfonso Henriques Silva Leite wrote:
> > I forgot to send you the result: the .dat file!!!
> > It is attached. One of which I generated with Mathematica.
> > And the
asdfAfonso Henriques Silva Leite wrote:
> I forgot to send you the result: the .dat file!!!
> It is attached. One of which I generated with Mathematica.
> And the corresponding graphic.
If that is the sort of plot you are after, would it be easier to just
generate it directly from Sage? Becaus
Sorry for the lack of information, and thanks for this great answer!!
That's exactly what I need!!
On Sat, 2009-09-05 at 13:48 -0700, Robert Bradshaw wrote:
> Easy.
>
> sage: M = random_matrix(RDF, 10, 2) # get your data
> sage: s = M.str().replace('[','').replace(']','')
> sage: print s # is th
Easy.
sage: M = random_matrix(RDF, 10, 2) # get your data
sage: s = M.str().replace('[','').replace(']','')
sage: print s # is this what you want?
0.103609743105 -0.00797973769955
-0.96222133551 -0.341208831103
-0.904012926167-0.42972921542
-0.6744275756920.338249515207
I still have no idea what a .dat file is. If it's plain ascii, or a
simple binary format, I'm sure Sage could do it with little difficulty.
- Robert
On Sep 5, 2009, at 1:26 PM, Afonso Henriques Silva Leite wrote:
> Does the mathematica file will help you?
> It is attached.
>
> Else, I also i
Afonso Henriques Silva Leite wrote:
> Hi, everyone!!!
> Does anybody had to generate and export a .dat file to create a graphic
> in another program like xmgrace, to use a more appropriate program to
> make graphics?
> I used to do this in Mathematica: with a "for" loop to generate a matrix
> with