1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175
|
# ex_lowerlimit.ppl
#
# The code in this file is part of Pyxplot
# <http://www.pyxplot.org.uk>
#
# Copyright (C) 2006-2012 Dominic Ford <coders@pyxplot.org.uk>
# 2008-2012 Ross Church
#
# $Id: ex_lowerlimit.ppl 1261 2012-07-11 21:38:05Z dcf21 $
#
# Pyxplot is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# You should have received a copy of the GNU General Public License along with
# Pyxplot; if not, write to the Free Software Foundation, Inc., 51 Franklin
# Street, Fifth Floor, Boston, MA 02110-1301, USA
# ----------------------------------------------------------------------------
# This script produces a figure for the Pyxplot Users' Guide
# Initialise
reset
# Set output destination
title = "ex_lowerlimit" ; load "examples/fig_init.ppl"
# Main body of figure script
set axis x invisible
set axis y invisible
set nokey
set noclip
set width 0.01
plot [-1:1][-1:1] '--' with lowerlimits
0 0
END
# Call common cleanup script
load "examples/fig_end.ppl"
# Set output destination
title = "ex_upperlimit" ; load "examples/fig_init.ppl"
# Main body of figure script
set axis x invisible
set axis y invisible
set width 1
plot [-1:1][-1:1] '--' with upperlimits
0 0
END
# Call common cleanup script
load "examples/fig_end.ppl"
# Set output destination
title = "ex_plotstyletab" ; load "examples/fig_init.ppl"
# Main body of figure script
set preamble r'\usepackage{wasysym}'
set multiplot
clear
set texthalign center
set textvalign center
text r"{\bf Plot Styles}" at -2,35/7*0.4*9+1.5
set axis x2 mirror top
set width 9
set size ratio 35/7*0.4
set x2label r"{\bf Style Modifiers}"
set x2range[0.2:7.3]
set x2tics (r"{\tt color}" 1, r"{\tt fillcolor}" 2, r"{\tt linetype}" 3, r"{\tt linewidth}" 4, r"{\tt pointlinewidth}" 5, r"{\tt pointsize}" 6, r"{\tt pointtype}" 7)
set x2format auto rotate 30
set axis y visible mirror left
set yrange[35.6:0.4]
set ytics ( \
r"{\tt arrows\_head}" 1, \
r"{\tt arrows\_nohead}" 2, \
r"{\tt arrows\_twohead}" 3, \
r"{\tt boxes}" 4, \
r"{\tt colormap}" 5, \
r"{\tt contourmap}" 6, \
r"{\tt dots}" 7, \
r"{\tt filledRegion}" 8, \
r"{\tt fsteps}" 9, \
r"{\tt histeps}" 10, \
r"{\tt impulses}" 11, \
r"{\tt lines}" 12, \
r"{\tt linesPoints}" 13, \
r"{\tt lowerLimits}" 14, \
r"{\tt points}" 15, \
r"{\tt stars}" 16, \
r"{\tt steps}" 17, \
r"{\tt surface}" 18, \
r"{\tt upperLimits}" 19, \
r"{\tt wboxes}" 20, \
r"{\tt xErrorBars}" 21, \
r"{\tt xErrorRange}" 22, \
r"{\tt xyErrorBars}" 23, \
r"{\tt xyErrorRange}" 24, \
r"{\tt xyzErrorBars}" 25, \
r"{\tt xyzErrorRange}" 26, \
r"{\tt xzErrorBars}" 27, \
r"{\tt xzErrorRange}" 28, \
r"{\tt yErrorBars}" 29, \
r"{\tt yErrorRange}" 30, \
r"{\tt yErrorShaded}" 31, \
r"{\tt yzErrorBars}" 32, \
r"{\tt yzErrorRange}" 33, \
r"{\tt zErrorBars}" 34, \
r"{\tt zErrorRange}" 35 \
)
set grid x2y1
set gridmajcol gray80
set gridmincol null
yes = r"\CIRCLE"
no = r"\Circle"
i=1
foreach datum a,b,c,d,e,f,g in '--'
{
set label 10*i+1 a?yes:no at second 1, first i
set label 10*i+2 b?yes:no at second 2, first i
set label 10*i+3 c?yes:no at second 3, first i
set label 10*i+4 d?yes:no at second 4, first i
set label 10*i+5 e?yes:no at second 5, first i
set label 10*i+6 f?yes:no at second 6, first i
set label 10*i+7 g?yes:no at second 7, first i
i=i+1
}
1 0 1 1 0 0 0
1 0 1 1 0 0 0
1 0 1 1 0 0 0
1 1 1 1 0 0 0
0 0 0 0 0 0 0
1 0 1 1 0 0 0
1 0 0 0 0 1 0
1 1 1 1 0 0 0
1 0 1 1 0 0 0
1 0 1 1 0 0 0
1 0 1 1 0 0 0
1 0 1 1 0 0 0
1 0 1 1 1 1 1
1 0 0 0 1 1 0
1 0 0 0 1 1 1
1 0 0 0 1 1 1
1 0 1 1 0 0 0
1 1 1 1 0 0 0
1 0 0 0 1 1 0
1 1 1 1 0 0 0
1 0 1 1 0 0 0
1 0 1 1 0 0 0
1 0 1 1 0 0 0
1 0 1 1 0 0 0
1 0 1 1 0 0 0
1 0 1 1 0 0 0
1 0 1 1 0 0 0
1 0 1 1 0 0 0
1 0 1 1 0 0 0
1 0 1 1 0 0 0
1 1 1 1 0 0 0
1 0 1 1 0 0 0
1 0 1 1 0 0 0
1 0 1 1 0 0 0
1 0 1 1 0 0 0
END
plot
# Call common cleanup script
load "examples/fig_end.ppl"
|