Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add gp_lcltpt for linetype/color/pointtype
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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() |