source: trunk/UTIL/PYTHON/simple_scripts/little.py @ 1242

Last change on this file since 1242 was 943, checked in by aslmd, 12 years ago

clean and organized UTIL/PYTHON folder

  • Property svn:executable set to *
File size: 349 bytes
Line 
1#! /usr/bin/env python
2
3import matplotlib.pyplot as plt
4import numpy as np
5
6vvv = np.array([ 8.9, 7.3, 3.9, 2.0])
7rrr = np.array([ 2.0, 5.0, 8.0,11.0])
8
9logv = np.log(vvv)
10logr = np.log(rrr)
11
12vvv1 = 1./rrr
13vvv2 = 1./np.sqrt(rrr)
14
15logv1 = 3. + np.log(vvv1)
16logv2 = 3. + np.log(vvv2)
17
18plt.plot(logv,logr,'bo',logv1,logr,'r',logv2,logr,'y')
19plt.show()
Note: See TracBrowser for help on using the repository browser.