Skip to content

Commit 45e53c4

Browse files
author
Daniel J. Greenhoe
committed
pdf plot support
1 parent 2c2a6c3 commit 45e53c4

File tree

4 files changed

+133
-2
lines changed

4 files changed

+133
-2
lines changed

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,9 @@ trash/*
44
fasta/*.gb
55
fasta/*.dat
66
data/*
7-
plots/*
7+
plots/*
8+
pdfplots/*.aux
9+
pdfplots/*.log
10+
pdfplots/*.out
11+
pdfplots/*.pdf
12+

labs/LabOCS.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ TEST( LabOCS, wdie )
4646
//---------------------------------------------------------------------------
4747
TEST( LabOCS, ndie )
4848
{
49-
const unsigned seed = 0x5EED;
49+
const unsigned seed = 0x5EED;
5050
lab_die_nonstat34( seed, 1200 , 120, 15, "../plots/diedft" ); // Example 4.7 (DFT analyis of die sequence)
5151
lab_die_nonstat34( seed, 12000, 1200, 16, "../plots/diedft" ); // Example 4.8 (DFT analyis of die sequence)
5252
lab_die_nonstat34( seed, 12000, 120, 16, "../plots/diedft" ); // Example 4.9 (DFT analyis of die sequence)

pdfplots/makefile

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
#-----------------------------------------------------------------------------
2+
# Project Makefile
3+
# Daniel J. Greenhoe
4+
#-----------------------------------------------------------------------------
5+
#--------------------------------------
6+
# Paths
7+
#--------------------------------------
8+
DIRPLOTS = ../plots
9+
DIRSTY = ../../common/sty
10+
11+
#--------------------------------------
12+
# Files
13+
#--------------------------------------
14+
GRP_DIE = \
15+
$(DIRPLOTS)/fdie_5eed_16002_auto.pdf \
16+
$(DIRPLOTS)/fdie_5eed_16002_histo.pdf \
17+
$(DIRPLOTS)/fdie_5eed_51_seq.pdf \
18+
$(DIRPLOTS)/rdie_5eed_16002_auto.pdf \
19+
$(DIRPLOTS)/rdie_5eed_16002_histo.pdf \
20+
$(DIRPLOTS)/rdie_5eed_51_seq.pdf \
21+
$(DIRPLOTS)/wdie_5eed_16002_auto.pdf \
22+
$(DIRPLOTS)/wdie_5eed_16002_histo.pdf \
23+
$(DIRPLOTS)/wdie_5eed_51_seq.pdf \
24+
$(DIRPLOTS)/wrdie_5eed_16002_auto.pdf \
25+
$(DIRPLOTS)/wrdie_5eed_16002_histo.pdf \
26+
$(DIRPLOTS)/wrdie_5eed_51_seq.pdf
27+
28+
GRP_DNA = \
29+
$(DIRPLOTS)/dna_5eed_16000_auto.pdf \
30+
$(DIRPLOTS)/dna_5eed_16000_histo.pdf \
31+
$(DIRPLOTS)/dna_5eed_51_seq.pdf \
32+
$(DIRPLOTS)/dna_papaya1446_51_seq.pdf \
33+
$(DIRPLOTS)/dna_papaya1446_auto.pdf \
34+
$(DIRPLOTS)/dna_papaya1446_histo.pdf \
35+
$(DIRPLOTS)/dna_SARSCoV2_51_seq.pdf \
36+
$(DIRPLOTS)/dna_SARSCoV2_auto.pdf \
37+
$(DIRPLOTS)/dna_SARSCoV2_histo.pdf
38+
39+
GRP_SPIN = \
40+
$(DIRPLOTS)/spin_5eed_16002_auto.pdf \
41+
$(DIRPLOTS)/spin_5eed_16002_histo.pdf \
42+
$(DIRPLOTS)/spin_5eed_51_seq.pdf \
43+
$(DIRPLOTS)/wspin_5eed_16002_auto.pdf \
44+
$(DIRPLOTS)/wspin_5eed_16002_histo.pdf \
45+
$(DIRPLOTS)/wspin_5eed_51_seq.pdf
46+
47+
FILE_STY = \
48+
$(DIRSTY)/wavelets.sty \
49+
$(DIRSTY)/math.sty \
50+
$(DIRSTY)/dan.sty \
51+
$(DIRSTY)/defaults.sty \
52+
$(DIRSTY)/fonts.sty \
53+
$(DIRSTY)/packages.sty \
54+
$(DIRSTY)/xsd.sty \
55+
$(DIRSTY)/language.sty
56+
57+
#--------------------------------------
58+
# Programs
59+
#--------------------------------------
60+
PRG_TYPESET = xelatex.exe
61+
62+
#--------------------------------------
63+
# master build rule
64+
#--------------------------------------
65+
top: $(GRP_DIE) $(GRP_DNA) $(GRP_SPIN)
66+
@echo Done ... graphics pdfs are ready!
67+
68+
#--------------------------------------
69+
# implicit build control
70+
#--------------------------------------
71+
{$(DIRPLOTS)}.tex.pdf:
72+
$(PRG_TYPESET) $(DIRPLOTS)/$&.tex
73+
74+
#--------------------------------------
75+
# commands
76+
#--------------------------------------
77+
clean:
78+
del *.aux
79+
del *.log
80+
del *.out
81+
82+
scrub:
83+
make clean
84+
del *.pdf
85+

pdfplots/shelltop.tex

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
%=============================================================================
2+
% Daniel J. Greenhoe
3+
% XeLaTeX file
4+
% preamble packages for shell files to
5+
% generate tight pdf graphics file for inclusion in a document
6+
%============================================================================
7+
\documentclass{article}%
8+
%--------------------------------------
9+
% Style Packages
10+
%--------------------------------------
11+
\usepackage{../../common/sty/packages}%
12+
\usepackage{../../common/sty/fonts}%
13+
\usepackage{../../common/sty/dan}%
14+
\usepackage{../../common/sty/colors_rgb}%
15+
%\usepackage{../../common/sty/colors_cmyk}%
16+
%\usepackage{../../common/sty/colors_gray}%
17+
\usepackage{../../common/sty/math}%
18+
\usepackage{../../common/sty/wavelets}%
19+
%\usepackage{../../common/sty/language}%
20+
\usepackage{../../common/sty/ocs}%
21+
\usepackage{../../common/sty/defaults} % default values
22+
\usepackage{../../common/sty/switches} %
23+
%--------------------------------------
24+
% color space
25+
%--------------------------------------
26+
%\selectcolormodel{cmyk}%
27+
\selectcolormodel{rgb}%
28+
%--------------------------------------
29+
% redefine some commands
30+
%--------------------------------------
31+
\renewcommand{\struct}[1]{{#1}}% place here and in the index and under index structures! heading
32+
\renewcommand{\structe}[1]{\emph{#1}}% place here with emphasis and in the index and under index structures! heading
33+
\renewcommand{\structb}[1]{\textbf{#1}}% place here with emphasis and in the index and under index structures! heading
34+
\renewcommand{\structd}[1]{\textbf{#1}}% place here with emphasis and in the index and under index structures! heading
35+
%--------------------------------------
36+
% preview mode
37+
% reference: http://tex.stackexchange.com/questions/25400/ps2pdf-depscrop-stops-short-with-pstricks-uput
38+
%--------------------------------------
39+
\usepackage[active,tightpage]{preview}%
40+
\PreviewBorder=0pt%
41+
\PreviewEnvironment{pspicture}%

0 commit comments

Comments
 (0)