17 c =
new TCanvas(
"c",
"Contours",0,0,500,500);
18 TF2 *
f2 =
new TF2(
"f2",
"0.1+(1-(x-2)*(x-2))*(1-(y-2)*(y-2))",0.999,3.002,0.999,3.002);
37 if (p==51) {c->
Print(
"palettes.pdf(",
Form(
"Title:%s",n.
Data()));
return;}
38 if (p==111) {c->
Print(
"palettes.pdf)",
Form(
"Title:%s",n.
Data()));
return;}
44 c =
new TCanvas(
"c",
"Contours",0,0,500,500);
51 draw_palette(
kBird,
"Bird");
55 draw_palette(
kOcean,
"Ocean");
57 draw_palette(
kAlpine,
"Alpine");
59 draw_palette(
kArmy,
"Army");
61 draw_palette(
kAurora,
"Aurora");
63 draw_palette(
kBeach,
"Beach");
67 draw_palette(
kCMYK,
"CMYK");
68 draw_palette(
kCandy,
"Candy");
69 draw_palette(
kCherry,
"Cherry");
70 draw_palette(
kCoffee,
"Coffee");
73 draw_palette(
kFall,
"Fall");
79 draw_palette(
kIsland,
"Island");
80 draw_palette(
kLake,
"Lake");
83 draw_palette(
kMint,
"Mint");
84 draw_palette(
kNeon,
"Neon");
85 draw_palette(
kPastel,
"Pastel");
86 draw_palette(
kPearl,
"Pearl");
87 draw_palette(
kPigeon,
"Pigeon");
88 draw_palette(
kPlum,
"Plum");
90 draw_palette(
kRose,
"Rose");
91 draw_palette(
kRust,
"Rust");
93 draw_palette(
kSienna,
"Sienna");
94 draw_palette(
kSolar,
"Solar");
97 draw_palette(
kSunset,
"Sunset");
103 draw_palette(
kCool,
"Cool");
104 draw_palette(
kCopper,
"Copper");
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void SetName(const char *name="")
virtual void Draw(Option_t *option="")
Draw this function with its current attributes.
virtual void Draw(Option_t *option="")
Draw this pavetext with its current attributes.
TString & ReplaceAll(const TString &s1, const TString &s2)
R__EXTERN TStyle * gStyle
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
virtual void SetTextFont(Font_t tfont=62)
Set the text font.
To draw Mathematical Formula.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
char * Form(const char *fmt,...)
A 2-Dim function with parameters.
virtual void Print(const char *filename="") const
Save Pad contents in a file in one of various formats.
A Pave (see TPave) with text, lines or/and boxes inside.
virtual void SetContour(Int_t nlevels=20, const Double_t *levels=0)
Set the number and values of contour levels.
double f2(const double *x)
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
virtual void Update()
Update canvas pad buffers.
void SetPalette(Int_t ncolors=kBird, Int_t *colors=0, Float_t alpha=1.)
See TColor::SetPalette.
const char * Data() const