Skip to content

Commit 4a4c00b

Browse files
committed
Only allow resizing points for now (no size or opacity)
1 parent 8653ca8 commit 4a4c00b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ScatterplotPlugin.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,14 @@ ScatterplotPlugin::ScatterplotPlugin(const PluginFactory* factory) :
183183
/*else*/ false;
184184

185185
if (sameNumPoints || sameNumPointsAsFull) {
186-
187186
// Offer the option to use the points dataset as source for points colors
188187
dropRegions << new DropWidget::DropRegion(this, "Point color", QString("Colorize %1 points with %2").arg(_positionDataset->text(), candidateDataset->text()), "palette", true, [this, candidateDataset]() {
189188
_settingsAction.getColoringAction().setCurrentColorDataset(candidateDataset); // calls addColorDataset internally
190189
});
191190

191+
}
192+
193+
if (sameNumPoints) {
192194
// Offer the option to use the points dataset as source for points size
193195
dropRegions << new DropWidget::DropRegion(this, "Point size", QString("Size %1 points with %2").arg(_positionDataset->text(), candidateDataset->text()), "ruler-horizontal", true, [this, candidateDataset]() {
194196
_settingsAction.getPlotAction().getPointPlotAction().setCurrentPointSizeDataset(candidateDataset);

0 commit comments

Comments
 (0)