Skip to content

Commit

Permalink
topo size
Browse files Browse the repository at this point in the history
  • Loading branch information
vladdez committed May 29, 2024
1 parent fff62c6 commit 7d0d490
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion scripts/example.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ include("gen_data.jl")
formulaS = @formula(0 ~ 1 + animal + fruit)
formulaS = @formula(0 ~ 1 + luminance + fruit + animal)
dataS, evts, pos2d = gen_data()
times = range(0, length=size(dataS, 2), step=1 ./ 100)
times = range(0, length = size(dataS, 2), step = 1 ./ 100)
model = Unfold.fit(UnfoldModel, formulaS, evts, dataS, times)

_, positions = TopoPlots.example_data()
Expand Down
9 changes: 0 additions & 9 deletions src/widgets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,7 @@ function value_range(args)
if (type == :ContinuousTerm) || (type == :BSplineTerm)
mini = round(Int, default_values.min)
maxi = round(Int, default_values.max)
#if (maxi - mini) < 2
#return mini:0.1:maxi
#else
#return mini:maxi
return range(mini, maxi, length = 5)
#end
elseif type == :CategoricalTerm
return Set(default_values)
else
Expand Down Expand Up @@ -168,9 +163,7 @@ function select_vspan(scene; blocking = false, priority = 2, kwargs...)
waspressed[] = false
r = Makie.absrect(rect[])
w, h = widths(r)
#if w > 0.0# && h > 0.0 # Ensure that the rectangle has non0 size.
rect_ret[] = r
#end
end
# always hide if not the right key is pressed
#plotted_span[:visible] = false # make the plotted rectangle invisible
Expand Down Expand Up @@ -198,8 +191,6 @@ function rectselect(ax)
return selrect
end



function topoplot_widget(positions; size = ())

strokecolor = Observable(repeat([:red], length(to_value(positions))))
Expand Down

0 comments on commit 7d0d490

Please sign in to comment.