logarithmic axis

29 views
Skip to first unread message

Ryan Jones

unread,
Nov 17, 2016, 12:17:41 PM11/17/16
to Glimpse
I have been looking around but can't find an example of plotting a log axis. Is their an example of this or would you have a suggestion on how to do this.

Thanks,

Ryan

Geoffrey Ulman

unread,
Nov 22, 2016, 12:40:28 PM11/22/16
to Glimpse
It's not something which currently exists. But it's certainly a feature that should be added.

There is a Glimpse fork from another user which appears to implement a log axis painter: https://github.com/alicanalbayrak/glimpse/network. However, I have not personally tried to use that fork to see whether it is useful.

It looks like their approach is reasonable:
  1. A subclass of Axis1D (LogarithmicAxis1D) -- although this might not even be necessary -- I think the logarithmic GridAxisLabelHandler could also simply interpret any axis provided to it as being on a log scale and choose ticks/labels appropriately
  2. A subclass of GridAxisLabelHandler to choose tick mark locations and tick labels on a log scale
A key point is that the axis values would still be linear in log space and any data added to painters would need to be converted to log space as well.

If you do give implementing this a try we would definitely like to fold a solid, well thought out implementation back into Glimpse

Geoff
Reply all
Reply to author
Forward
0 new messages