Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Minimum Y Value at top

20 views
Skip to first unread message

Ryan Jones

unread,
Jan 13, 2014, 5:32:22 PM1/13/14
to metsci-...@googlegroups.com
I have the need to create a reverse waterfall plot with the latest data at the bottom of the image. I know I can change the projection of the image but that doesn't change the labels. I have tried to create a custom Epoch with the fromTimeStamp and toTimeStamp to try and account for the axis labels but it doesn't work. The cursorpainter shows the correct time but there are no labels shown. I there an easy way to achieve this that I am not seeing?

Thanks,

Ryan

Ryan Jones

unread,
Jan 14, 2014, 3:02:48 PM1/14/14
to metsci-...@googlegroups.com
I have been looking into it more and I believe the main problem was that the ticktimes function in TimeAxisLabelHandler doesn't check to see if the minimum time is less than the max time. I fixed this and now it displays the ticks properly. I am now trying to get the Hover Label working correctly. I noticed in the TimeYAxisPainter the printHoverLabels is set to private but in the TimeXAxisPainter it is set to Protected allowing me to override the function. Can this be changed so they are both set to protected.

Thanks,

Ryan

Geoffrey Ulman

unread,
Jan 15, 2014, 1:17:00 AM1/15/14
to metsci-...@googlegroups.com

Definitely. There's no reason that TimeYAxisPainter.printHoverLabels() needs to be private.

Until that happens, I'd suggest copying TimeYAxisPainter, making the changes, and setting your new version of the painter on your timeline using:

StackedTimePlot2D.getDefaultTimeline( ).setTimeAxisPainter( ... );
Reply all
Reply to author
Forward
0 new messages