mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-09 00:17:27 -05:00
Axis titles default to the names of the field instead of not showing axis titles
This commit is contained in:
parent
6fa5bcec3a
commit
f75386909d
@ -106,9 +106,12 @@ class BarPlot(QgisAlgorithm):
|
||||
xaxis_title = self.parameterAsString(parameters, self.XAXIS_TITLE, context)
|
||||
yaxis_title = self.parameterAsString(parameters, self.YAXIS_TITLE, context)
|
||||
|
||||
if title.strip() == "": title = None
|
||||
if xaxis_title.strip() == "": xaxis_title = None
|
||||
if yaxis_title.strip() == "": yaxis_title = None
|
||||
if title.strip() == "":
|
||||
title = None
|
||||
if xaxis_title.strip() == "":
|
||||
xaxis_title = namefieldname
|
||||
if yaxis_title.strip() == "":
|
||||
yaxis_title = valuefieldname
|
||||
|
||||
output = self.parameterAsFileOutput(parameters, self.OUTPUT, context)
|
||||
|
||||
|
||||
@ -118,9 +118,12 @@ class BoxPlot(QgisAlgorithm):
|
||||
xaxis_title = self.parameterAsString(parameters, self.XAXIS_TITLE, context)
|
||||
yaxis_title = self.parameterAsString(parameters, self.YAXIS_TITLE, context)
|
||||
|
||||
if title.strip() == "": title = None
|
||||
if xaxis_title.strip() == "": xaxis_title = None
|
||||
if yaxis_title.strip() == "": yaxis_title = None
|
||||
if title.strip() == "":
|
||||
title = None
|
||||
if xaxis_title.strip() == "":
|
||||
xaxis_title = namefieldname
|
||||
if yaxis_title.strip() == "":
|
||||
yaxis_title = valuefieldname
|
||||
|
||||
output = self.parameterAsFileOutput(parameters, self.OUTPUT, context)
|
||||
|
||||
|
||||
@ -124,9 +124,12 @@ class VectorLayerScatterplot(QgisAlgorithm):
|
||||
xaxis_log = self.parameterAsBool(parameters, self.XAXIS_LOG, context)
|
||||
yaxis_log = self.parameterAsBool(parameters, self.YAXIS_LOG, context)
|
||||
|
||||
if title.strip() == "": title = None
|
||||
if xaxis_title.strip() == "": xaxis_title = None
|
||||
if yaxis_title.strip() == "": yaxis_title = None
|
||||
if title.strip() == "":
|
||||
title = None
|
||||
if xaxis_title.strip() == "":
|
||||
xaxis_title = xfieldname
|
||||
if yaxis_title.strip() == "":
|
||||
yaxis_title = yfieldname
|
||||
|
||||
output = self.parameterAsFileOutput(parameters, self.OUTPUT, context)
|
||||
|
||||
|
||||
@ -121,10 +121,14 @@ class VectorLayerScatterplot3D(QgisAlgorithm):
|
||||
yaxis_title = self.parameterAsString(parameters, self.YAXIS_TITLE, context)
|
||||
zaxis_title = self.parameterAsString(parameters, self.ZAXIS_TITLE, context)
|
||||
|
||||
if title.strip() == "": title = None
|
||||
if xaxis_title.strip() == "": xaxis_title = None
|
||||
if yaxis_title.strip() == "": yaxis_title = None
|
||||
if zaxis_title.strip() == "": zaxis_title = None
|
||||
if title.strip() == "":
|
||||
title = None
|
||||
if xaxis_title.strip() == "":
|
||||
xaxis_title = xfieldname
|
||||
if yaxis_title.strip() == "":
|
||||
yaxis_title = yfieldname
|
||||
if zaxis_title.strip() == "":
|
||||
zaxis_title = zfieldname
|
||||
|
||||
output = self.parameterAsFileOutput(parameters, self.OUTPUT, context)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user