[Tioga-users] dealing with log axis

Vincent Fourmond vincent.fourmond at 9online.fr
Mon Jul 9 18:10:50 EDT 2007


  Hello !

Taro Sato wrote:
> I hope there will be a more convenient scheme to deal with log axis.
> Currently, I think users must take log of data values themselves to
> plot things on log axis, which to me is too much of inconvenience.
> 
> I often switch between linear and log axis to see which mode looks
> more useful on the eyes, so being able to do this via some sort of
> "switch" would be highly desirable!  It should be able to
> automatically put data values on the log scale and place ticks
> appropriately as well, without touching the input data on the user
> end...
> 
> Any thoughts on how to implement this?

  I wouldn't wish too much to hardcode this into tioga - or rather, I
don't want to modify the way the log... options currently behave : it
would cause me quite some trouble in ctioga - and I think that would
amount to quite some work (both in tioga and in ctioga).

  For a starter, you can create some thin wrappers around the functions
you use for actually plotting your data to decide whether you should
take the safe_log10 of it or not.

  From my point of view, it is much better to do coordinates conversion
at the source (one place to modify in the code) rather than in tioga's
functions (a small hundred of functions to modify ???).

  I find that the current scheme fits me really well. But of course, I
don't know how you are using tioga, so I can't tell for you. Would you
mind posting some example of your code where this feature is cruelly
missing ??

  BTW, I just realize that you might not know what is this safe_log10 I
speak about, because it lives in Dvector, which as far as I understood
is not used by PyTioga. It does what it says for a vector.

  What do you think ?

  Cheers,

	Vincent
-- 
Vincent Fourmond, Doctor in Physics
http://vincent.fourmond.neuf.fr/


More information about the Tioga-users mailing list