Hi,
I am creating a histogram and would like to center the labels. I normally
do this in R by the following:
# x has my data set
tmp <- hist(x, breaks=0:(max(x)+1), xaxt="n", right=FALSE, freq=FALSE)
axis(1, at=tmp$mids, labels=0:max(x))
In python, tmp$mids gives an error presumably because the compiler doesn't
know how to interpret it. How can I specify it correctly, say in the
following commands?
# lengthsR has my data set
tmp = r.hist(lengthsR, breaks = xvals, main = infile, xlab = "deltaG",
labels = r.T, xaxt='n') #, probability = r.T
r.axis(1, at=tmp$mids, xvals)
Thanks a lot in advance,
Shyam
--
Lab of William Clemons
California Institute of Technology
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list