Hiya Harald - I will try. I am really, really bad with forums. That is why 
I posted the link to the public page. I think the version is 4.8. (Can't 
use sagenb since no public posting.)

Here is the minimal code version I used in an example (for people like me 
who don't understand all the programming involved).

my_data=[random() for j in range(100)]
import matplotlib.pyplot as plt
plt.hist(my_data, bins=5, range=(0.,1.))
plt.savefig('Histogram.png')
plt.close()

>From what I understand, the last two lines are to force an actual plot.
-----------------------------------------
Here is a slightly more expanded version where I can extras to the plot, 
but cannot get it to be a decent size.

my_data=[random() for j in range(100)]

import matplotlib.pyplot as plt
fr, bn, junk= plt.hist(my_data, bins=5, range=(0.,1.), normed=1, 
facecolor='lightgreen')  #I bet everyone will appreciate my label of 
"patches"
print 'normed frequency array is: ', fr
print 'bins array is: ', bn

xmn=0;xmx=1;ymn=0;ymx=max(fr)+1
plt.axis([xmn,xmx,ymn,ymx])

plt.xlabel('Intervals', color=(0,.4,.4))
plt.ylabel('Frequency', color=(.4,0,.4))
plt.grid(True)

plt.savefig('Histogram2.png')
plt.close()

Hope I did this correctly. Thanks! Linda

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to