Deleted x_label_spacing and y_label_spacing.

They are a "per plot," not "per line," basis.
This commit is contained in:
Tom Keffer
2018-01-24 14:58:27 -07:00
parent 66b1d2595a
commit 6e37d5962d

View File

@@ -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()