Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dcscope/gui/analysis/ana_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def __init__(self, *args, **kwargs):
self.comboBox_division.addItem("One plot per dataset", "each")
self.comboBox_division.addItem("Scatter plots and joint contour plot",
"multiscatter+contour")
self.comboBox_division.addItem("Only contour plots", "onlycontours")
self.comboBox_division.setCurrentIndex(2)

# signals
Expand Down
13 changes: 13 additions & 0 deletions dcscope/gui/pipeline_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,19 @@ def update_content_plot(self, plot_state, slot_states, dslist):
colspan=1)
pp.redraw(dslist, slot_states, plot_state_contour)

elif lay["division"] == "onlycontours":
# contour plots
plot_state_contour = copy.deepcopy(plot_state)
plot_state_contour["scatter"]["enabled"] = False
pp = PipelinePlotItem(parent=linner)
self.plot_items.append(pp)
linner.addItem(item=pp,
row=None,
col=None,
rowspan=1,
colspan=1)
pp.redraw(dslist, slot_states, plot_state_contour)

# colorbar
colorbar_kwds = {}

Expand Down
2 changes: 2 additions & 0 deletions dcscope/pipeline/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,8 @@ def get_plot_col_row_count(self, plot_id, pipeline_state=None):
num_plots = 1
elif div == "multiscatter+contour":
num_plots = num_scat + 1
elif div == "onlycontours":
num_plots = 1
else:
raise ValueError(f"Unrecognized division: '{div}'")

Expand Down
2 changes: 1 addition & 1 deletion dcscope/pipeline/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"identifier": str,
"layout": {
"column count": int,
"division": ["each", "merge", "multiscatter+contour"],
"division": ["each", "merge", "multiscatter+contour", "onlycontours"],
"label plots": bool,
"name": str,
"size x": float,
Expand Down
Loading