Last change
on this file since 1062 was
943,
checked in by aslmd, 12 years ago
|
clean and organized UTIL/PYTHON folder
|
-
Property svn:executable set to
*
|
File size:
349 bytes
|
Rev | Line | |
---|
[349] | 1 | #! /usr/bin/env python |
---|
| 2 | |
---|
| 3 | import matplotlib.pyplot as plt |
---|
| 4 | import numpy as np |
---|
| 5 | |
---|
| 6 | vvv = np.array([ 8.9, 7.3, 3.9, 2.0]) |
---|
| 7 | rrr = np.array([ 2.0, 5.0, 8.0,11.0]) |
---|
| 8 | |
---|
| 9 | logv = np.log(vvv) |
---|
| 10 | logr = np.log(rrr) |
---|
| 11 | |
---|
| 12 | vvv1 = 1./rrr |
---|
| 13 | vvv2 = 1./np.sqrt(rrr) |
---|
| 14 | |
---|
| 15 | logv1 = 3. + np.log(vvv1) |
---|
| 16 | logv2 = 3. + np.log(vvv2) |
---|
| 17 | |
---|
| 18 | plt.plot(logv,logr,'bo',logv1,logr,'r',logv2,logr,'y') |
---|
| 19 | plt.show() |
---|
Note: See
TracBrowser
for help on using the repository browser.