0
ˆ¾‘äÇò 8à_uç…?ŸÇ
ƒh¹ÆÄà disabled
# ˆÂ’þ^*Î8c�±<äb•i½š¿çÇÁÀÆ
‚œ¿Äà ~ ‹ MŒ1
Ã0ÿ²µ�ŠtzAj·!…�/Éédîd7!·ã¶ØeØùb%5n‚xsxq!Dt®¤÷$c!?¬-šihïô܆ø€÷áŒi,�TR –?4.…4\uÝðt�T�÷^kšg–·ýÅ¿
$9‘žŽ 9
ˆl–ßi~”*hŠ‚ÆÞ¸'ÔÅ£‘þC!Y‘fß–XÙ’QŽV�üÿÈ
„„ÐŸÇÆÅÄ ?÷
%--------------------------------------------
%
% Package pgfplots, library for higher order patch plots.
% It contains advanced patch plots like quadratic triangles,
% biquadratic quadrilaterals, coons patches and others.
% The basic implementation for patches supports already line, triangle
% and rectangle (=2 triangles) patches.
%
% Copyright 2007/2008/2009 by Christian Feuersänger.
%
% This program 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 3 of the License, or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this program. If not, see .
%
%--------------------------------------------
% NOTES:
% In general, a Bezier spline C:[0,1] -> \R of order n fulfills
% C'(0) = n ( P_1 - P_0 ),
% C'(1) = n ( P_n - P_{n-1} ).
% For n=3 and given P_0 and P_3, I can directly compute P_1 and P_2 once I know
% the derivatives at t=0 and t=1.
%
%
%
%--------------------------------------------------
% 4-point Lagrange interpolation on {0,1/3,2/3,1}:
% C(x) =
% a * (1/3 - x)/(1/3) * (2/3-x)/(2/3) * (1-x) +
% b * (0 - x)/(0 - 1/3) * (2/3-x)/(2/3-1/3) * (1-x)/(1-1/3) +
% c * (0 - x)/(0 - 2/3) * (1/3-x)/(1/3-2/3) * (1-x)/(1-2/3) +
% d * (0 - x)/(0 - 1) * (1/3-x)/(1/3-1) * (2/3-x) /(2/3-1)
%
%
% Derivative:
%
% (-9*c + 2*d + 72*c*x - 18*d*x - 81*c*x^2 + 27*d*x^2 +
% a*(-11 + 36*x - 27*x^2) + 9*b*(2 - 10*x + 9*x^2))/2
%
% bezier control points are
% P1 = (-5*a)/6 + 3*b - (3*c)/2 + d/3
% = -0.833333 a + 3. b - 1.5 c + 0.333333 d
%
% P2 = 0.333333 (0.5 (2. a - 9. b + 18. c - 11. d) + 3. d)
% = 0.333333 a - 1.5 b + 3. c - 0.833333 d
%--------------------------------------------------
% A quadratic spline in the ordering
%
%
%
% where is the function value at the left end of the spline
% segmment, the function value at the right end, and
% the function value in the middle of the spline segment.
\pgfplotsdeclarepatchclass{quadratic spline}{%
get dimension=\def\pgfplotsretval{1},
supports global path=\def\pgfplotsretval{1},
new=\def\pgfplotspatchclass@qspline@no{A},
set next vertex={%
% EXPECTED ORDERING: first 2 corners, then 1 mid nodes
% (interpolatory).
% defines \pgfplotspatchclass@qspline@A ... \pgfplotspatchclass@qspline@C (3 points)
\expandafter\edef\csname pgfplotspatchclass@qspline@\pgfplotspatchclass@qspline@no\endcsname{#1}%
\if C\pgfplotspatchclass@qspline@no
\def\pgfplotspatchclass@qspline@no{A}%
\pgfplotspatchready
\else
\expandafter\let\expandafter\pgfplotspatchclass@qspline@no\csname pgfpptchindexnext@\pgfplotspatchclass@qspline@no\endcsname
\fi
},
if current point can be first last={%
\pgfplots@loc@tmptrue
\if A\pgfplotspatchclass@qspline@no
% Ah - the current point is the 'C' point, i.e. the
% control point (we have advanced the '@no' counter)
\pgfplots@loc@tmpfalse
\fi
\ifpgfplots@loc@tmp
#1\relax%
\else
#2\relax
\fi
},
sample in unit cube={%
\def\pgfplotspatchclassx{0}%
\def\pgfplotspatchclassy{0}%
#1%
\def\pgfplotspatchclassx{1}%
\def\pgfplotspatchclassy{0}%
#1%
\def\pgfplotspatchclassx{0.5}%
\def\pgfplotspatchclassy{0}%
#1%
\pgfplotspatchready
},%
first vertex=\expandafter\pgfplotspatchvertex\pgfplotspatchclass@qspline@A\endvertex,
foreach vertex={%
\expandafter\pgfplotspatchvertex\pg