mirror of
https://github.com/FAUSheppy/ths-datenlogger
synced 2025-12-06 04:11:34 +01:00
remove obsolete call to frontend_utils
This commit is contained in:
@@ -3,7 +3,6 @@ import sys
|
|||||||
from config_parse import CFG
|
from config_parse import CFG
|
||||||
from constants import *
|
from constants import *
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
from frontend_utils import open_file
|
|
||||||
from constants import *
|
from constants import *
|
||||||
|
|
||||||
import math
|
import math
|
||||||
@@ -65,7 +64,7 @@ def __plot(tup, datapoints, path, date1=None, date2=None, forcePath=False):
|
|||||||
path = open_file()
|
path = open_file()
|
||||||
|
|
||||||
if not forcePath:
|
if not forcePath:
|
||||||
pic_path = output_path(path,date1,date2)
|
pic_path = output_path(path, date1, date2)
|
||||||
else:
|
else:
|
||||||
pic_path = path
|
pic_path = path
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import matplotlib.dates
|
|||||||
import matplotlib.ticker as ticker
|
import matplotlib.ticker as ticker
|
||||||
from constants import *
|
from constants import *
|
||||||
import math
|
import math
|
||||||
import plot_timeutils
|
import timeutils
|
||||||
matplotlib.rc('font', **GLOBAL_FONT)
|
matplotlib.rc('font', **GLOBAL_FONT)
|
||||||
|
|
||||||
def getlimits_y(y):
|
def getlimits_y(y):
|
||||||
@@ -162,7 +162,7 @@ def find_step(step,x,total_xticks):
|
|||||||
min_delta = delta
|
min_delta = delta
|
||||||
|
|
||||||
step = min_delta_step
|
step = min_delta_step
|
||||||
start = plot_timeutils.round_time_to_step(start,step)
|
start = timeutils.round_time_to_step(start,step)
|
||||||
|
|
||||||
warn_on_too_much_xticks(x,total_xticks,step)
|
warn_on_too_much_xticks(x,total_xticks,step)
|
||||||
return (start,step)
|
return (start,step)
|
||||||
|
|||||||
Reference in New Issue
Block a user