Skip to content

Commit

Permalink
refactor: use select parameter for graph type
Browse files Browse the repository at this point in the history
  • Loading branch information
reddigari committed May 2, 2020
1 parent 15ff7eb commit 5cd8967
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyworkflow/pyworkflow/nodes/visualization/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ class GraphNode(VizNode):
num_out = 0

OPTIONS = {
"graph_type": StringParameter(
"graph_type": SelectParameter(
"Graph Type",
options=["area", "bar", "line", "point"],
default="bar",
docstring="Graph viz type (supported options: area, bar, line, point)"
docstring="Graph viz type"
),
"mark_options": BooleanParameter(
"Specify mark options",
Expand Down

0 comments on commit 5cd8967

Please sign in to comment.