From 6e37d5962d84e970a8a27ad547f922fedc19042f Mon Sep 17 00:00:00 2001 From: Tom Keffer Date: Wed, 24 Jan 2018 14:58:27 -0700 Subject: [PATCH] Deleted x_label_spacing and y_label_spacing. They are a "per plot," not "per line," basis. --- bin/weewx/imagegenerator.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/bin/weewx/imagegenerator.py b/bin/weewx/imagegenerator.py index 8bb31a3e..ccc0fdcc 100644 --- a/bin/weewx/imagegenerator.py +++ b/bin/weewx/imagegenerator.py @@ -216,10 +216,6 @@ class ImageGenerator(weewx.reportengine.ReportGenerator): marker_type = line_options.get('marker_type') marker_size = to_int(line_options.get('marker_size', 8)) - # Get the spacings between labels, i.e. every how many lines a label is drawn - x_label_spacing = plot_options.get('x_label_spacing', 2) - y_label_spacing = plot_options.get('y_label_spacing', 2) - # Add the line to the emerging plot: plot.addLine(weeplot.genplot.PlotLine( new_stop_vec_t[0], new_data_vec_t[0], @@ -233,9 +229,7 @@ class ImageGenerator(weewx.reportengine.ReportGenerator): marker_size = marker_size, bar_width = interval_vec, vector_rotate = vector_rotate, - gap_fraction = gap_fraction, - x_label_spacing = x_label_spacing, - y_label_spacing = y_label_spacing)) + gap_fraction = gap_fraction)) # OK, the plot is ready. Render it onto an image image = plot.render()