Re: Some Minor Difficulties with TH2D::Draw()

From: ryan roth (rothr@db.erau.edu)
Date: Fri Nov 20 1998 - 16:54:09 MET


Hello:
 
 I have a few more updates on this situation:


> > Second, for some reason I cannot determine, whenever the 'SURF4' option
> > is used, the surface always appears as pure white, with no shading
> > whatsoever.  To answer the obvious question, yes, I did change the color
> > beforehand.  I have been able to get the appropriate shading in a macro,
> > but not in this application.
> 
> This, again, I cannot understand.

I recently discovered that this was caused by another application which, 
while running in the background, had prevented this plot from drawing 
correctly.  It is likely that this other application consumed the related 
colormap or memory resources.

On a side note, I have noticed that Netscape prevents my application from 
accessing all but a handful of colors, if Netscape is run without the 
command line option which limits its color requirements.

> > Third, is it possible, in a standard 2D scatter plot, to increase the
> > size of the points plotted?  My application, at this time, typically
> > involves a number of 'events' on the order of 50-100, rather than thousands.
> > With the scatter plot points at their default size, the resultant plot is
> > very hard to view.
> 
> You can use MarkerStyle 7 (bigger dots) or scalable marker 20.

This worked fine.  I should have tried it, but didn't think of it.

> > Other question I had regards 1D histograms -- is there some particular
> > reason why they cannot seem to be drawn with a smooth curve or line AND
> > markers?  Whenever I try (in both macros and in my application) the
> > resulting picture only includes markers.
> 
> Again, I do not understand. Did you try?
>   h->Draw("l"); // draw a line between points
>   h->Draw("c"); //draw a smooth line between points
>   h->Draw("p"); //draw marker at each point (use SetMarkerStyle)
>   h->Draw("cp"); draw a marker and a smooth line, etc

I have found, for both the standard example macros and my program, that 
trying to pair a "p" with either a "c" or an "l" causes only the markers 
to be drawn.  This is only the case for 1D histogram objects; I was able 
to make a TGraph object that worked normally.  However, for some reason I 
cannot explain, if the "b" (bar graph) option is included as well, 
everything is drawn.

Ryan Roth
PHENIX, BNL
rothr@db.erau.edu



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:40 MET