Skip to content

Commit

Permalink
add gp_lcltpt for linetype/color/pointtype
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Apr 3, 2014
1 parent a787a0a commit 649b77b
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions pyana/examples/gp_lcltpt.py
@@ -0,0 +1,30 @@
import os
import numpy as np
from ..ccsgp.ccsgp import make_plot
from .utils import getWorkDirs, checkSymLink
from ..ccsgp.config import default_colors

def gp_lcltpt():
inDir, outDir = getWorkDirs()
nSets = len(default_colors)
make_plot(
data = [
np.array([ [0,i,0,0,0], [1,i,0,0,0] ])
for i in xrange(nSets)
],
properties = [
'with linespoints lw 4 lc %s lt %d pt %d' % (col, i, i)
for i, col in enumerate(default_colors)
],
titles = [''] * nSets, yr = [-1, 51],
name = os.path.join(outDir, 'gp_lcltpt'),
ylabel = 'linecolor / linetype / pointtype', xlabel = '',
)
return 'done'

if __name__ == '__main__':
import argparse
checkSymLink()
parser = argparse.ArgumentParser()
args = parser.parse_args()
print gp_lcltpt()

0 comments on commit 649b77b

Please sign in to comment.