epix-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ePiX-users] Histograms, II


From: Marcus D. Hanwell
Subject: Re: [ePiX-users] Histograms, II
Date: Thu, 4 Jan 2007 16:09:08 +0000
User-agent: KMail/1.9.5

On Thursday 04 January 2007 14:28, Marcus D. Hanwell wrote:
> > file0.plot(DDOT, log_lin); // semi-log plot of first two columns of file0
> > file0.plot(DDOT, log_lin, 2, 5); // semi-log plot of columns 2 and 5
>
> These I could not get working and looking in the header file I couldn't
> find definitions of log_lin nor the overloaded function prototype for the
> plots used above. In fact I can only see two plot functions defined in that
> class.

I got these working by simply adding the suggested functions to my ePiX file 
and it worked as expected. I now have some lin_log graphs of my X-ray 
reflectivity data using the function,

P lin_log(double x, double y, double z=0)
{
   return P(x, log10(y), z);
}

Simply calling,

Au4LS_2.plot(DDOT, lin_log);

Gives the expected result now.

> > H.plot(); // smoothed histogram curve, not yet implemented
>
> This didn't plot anything here for me although I am not sure why. I haven't
> dug through the new code as yet but if I take away the .histogram call then
> nothing is plotted on the graph.
>
Looking at the source I can see that the plotting part seems to be commented 
out in the file I downloaded. This was just a nice extra I thought might be 
quite widely useful.

Like I said the axes would be amazingly useful to me but I can already plot 
everything I need to in quite an elegant way now - thank you! Do you tend to 
change the ePiX API quite regularly? I thought you would avoid changing it 
across minor versions?

Another visual enhancement I thought of was major and minor ticks - making the 
labelled major ticks slightly longer than the minor ones. Could probably be 
tied into the axes labelling code.

Thanks for the enhancements and the speed with which you implemented them. 
They seem to work well here!

Thanks,

Marcus




reply via email to

[Prev in Thread] Current Thread [Next in Thread]