8 b.SetFillStyle(pat);
b.DrawBox(
x1,y1,
x2,y2);
9 b.SetFillStyle(0) ;
b.DrawBox(
x1,y1,
x2,y2);
10 b.SetFillColor(0) ;
b.SetFillStyle(1000) ;
14 b.DrawBox(
x1+dx, y1+dy,
x2-dx, y2-dy);
16 b.DrawBox(
x1+dx, y1+dy,
x2-dx, y2-dy);
19 l.SetTextAlign(22);
l.SetTextSize(
h);
20 l.DrawLatex((
x1+
x2)/2, (y1+y2)/2,
Form(
"%d",pat));
44 for (i=1; i<=5; i++) {
45 box(j++, 0.01,
y-bh, 0.19,
y);
46 box(j++, 0.21,
y-bh, 0.39,
y);
47 box(j++, 0.41,
y-bh, 0.59,
y);
48 box(j++, 0.61,
y-bh, 0.79,
y);
49 box(j++, 0.81,
y-bh, 0.99,
y);
62 for (i=1; i<=9; i++) {
63 if (i==6) {j2 += 10; j3 += 1; j4 += 1; j5 += 10;}
64 if (i==5) {j4 -= 10; j5 -= 1;}
65 box(j1, 0.01,
y-bh, 0.19,
y);
66 box(j2, 0.21,
y-bh, 0.39,
y);
67 box(j3, 0.41,
y-bh, 0.59,
y);
68 box(j4, 0.61,
y-bh, 0.79,
y);
69 box(j5, 0.81,
y-bh, 0.99,
y);
static const double x2[5]
static const double x1[5]
char * Form(const char *fmt,...)
R__EXTERN TStyle * gStyle
void SetFrameFillColor(Color_t color=1)
To draw Mathematical Formula.
virtual void Range(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Set world coordinate system for the pad.
virtual void SetBorderSize(Short_t bordersize)
void SetHatchesSpacing(Double_t h)
void SetHatchesLineWidth(Int_t l)
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
TCanvas * fillpatterns(int w=500, int h=700)