Skip to content

Commit

Permalink
Add support for GR Plot edit mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jheinen committed Oct 31, 2023
1 parent 98faf7f commit ed45662
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/GR.jl
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ function init(always::Bool = false)
display_name[] = ENV["GRDISPLAY"]
if display_name[] == "js" || display_name[] == "pluto" || display_name[] == "js-server"
send_c[], recv_c[] = js.initjs()
elseif display_name[] == "plot"
elseif display_name[] == "plot" || display_name[] == "edit"
ENV["GR_PLOT"] = if Sys.iswindows()
"set PATH=$(GRPreferences.libpath[]) & \"$(GRPreferences.grplot[])\" --listen"
else
Expand Down
2 changes: 1 addition & 1 deletion src/jlgr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,7 @@ function plot_data(flag=true, plt=plt[])

target = GR.displayname()
if flag && target !== ""
if target == "js" || target == "meta" || target == "plot" || target == "pluto" || target == "js-server"
if target == "js" || target == "meta" || target == "plot" || target == "edit" || target == "pluto" || target == "js-server"
send_meta(0)
else
send_serialized(target)
Expand Down

0 comments on commit ed45662

Please sign in to comment.