Skip to content

Commit ff57df7

Browse files
authored
Merge pull request #35 from JuliaRobotics/feat/3Q20/csmanidpi
allow dpi
2 parents 4d3446f + 0ef5a58 commit ff57df7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/StateMachineAnimation.jl

+4-1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ function renderStateMachineFrame( vg,
8989
title::String="",
9090
viewerapp::String="eog",
9191
fext::String="png",
92+
dpi::Int=100,
9293
engine::String="dot",
9394
show::Bool=true,
9495
folder::String="fsm_animation",
@@ -123,7 +124,7 @@ function renderStateMachineFrame( vg,
123124
run(`mv $folderpath/tmpdot.dot $dotfile`)
124125

125126
# compile output and maybe show to user
126-
run(`$(engine) $(dotfile) -T$(fext) -o $(filepath)`)
127+
run(`$(engine) $(dotfile) -T$(fext) -Gdpi=$dpi -o $(filepath)`)
127128
show ? (@async run(`$viewerapp $filepath`)) : nothing
128129
return filepath
129130
end
@@ -401,6 +402,7 @@ function animateStateMachineHistoryIntervalCompound(hists::Dict{Symbol, Vector{T
401402
easyNames::Dict{Symbol,N}=Dict{Symbol,Nothing}(),
402403
interval::Int=2,
403404
folderpath="/tmp/animatestate",
405+
dpi::Int=100,
404406
title::String="",
405407
show::Bool=false,
406408
clearstale::Bool=true,
@@ -467,6 +469,7 @@ function animateStateMachineHistoryIntervalCompound(hists::Dict{Symbol, Vector{T
467469
frameCount,
468470
title=title*" || dt=$deltaT ms ||",
469471
show=false,
472+
dpi=dpi,
470473
folderpath=folderpath,
471474
timest=string(split(string(aniT),' ')[1]),
472475
rmfirst=false )

0 commit comments

Comments
 (0)