1r0b1n0 / OctoPrint-Tempsgraph

Interactive temperature graph for octoprint
MIT License
18 stars 12 forks source link

Autoscale/zoom to less than Graph Cutoff minutes? #4

Open clintonefisher opened 7 years ago

clintonefisher commented 7 years ago

Hi! First, thanks for the wonderfully useful plugin. It's fantastic. Support for dark themes looks great too!

I set my temperature "graph cutoff" value to 240 minutes because I like to keep history of recent prints so I can easily compare current and recent print graphs for PID tuning, etc... The only problem in doing this is that, as my graph history grows towards the 240 minutes, AutoScale faithfully wants to zoom out to the max number of minutes, which means that the horizontal scale gets smaller and smaller and less and less detail is shown about the current print. (hard for PID tuning). Zooming allows me to see more detail, but at the cost of no longer auto-panning the currently updating data. Also, it's often hard to zoom in on the most current data because the zoom tool gets confused about what I'm actually wanting to select.

Been brainstorming on how this could be dealt with... Perhaps a couple buttons to "Set" and "Use" a "default zoom", that, when the current data is in the view, would auto-scroll.

This way, we could still easily pan back to older data, but then just hit Autoscale and "Use Default Zoom" to get back to a zoomed-in-and-readable frame of currently updating data.

Anyway, it's just an idea. (feel free to say nope! :) ) The goal would be to still have a long graph history available, but to be able to quickly zoom back in to the current zoomed-in and auto-panning detail.

Thanks again for the awesome plugin!

1r0b1n0 commented 7 years ago

Hi, I'm glad you like this plugin !

I definitely agree it would be great to able to autoscroll on just the last N minutes. The next 3 weeks I won't have access to my dev computer, but after that I'll try to implement something. For example adding a check/combobox "show only last 30min" shouldn't be hard I think.

GingerNutt commented 6 years ago

I would also like to be able to scroll back to see the temp history for the last print?

GingerNutt commented 6 years ago

How do you set the "graph cutoff" value?

alexwitter commented 6 years ago

Settings > Temperatures