JuliaComputing / PlotlyLight.jl

Plotly.js via Julia made easy.
https://juliacomputing.github.io/PlotlyLight.jl/
Other
101 stars 7 forks source link

Modifying attributes of a trace #17

Closed PetrKryslUCSD closed 1 year ago

PetrKryslUCSD commented 1 year ago

Would it make sense to allow the plot to accept a Config argument? To accommodate for instance

t = PlotlyLight.Config(x = nths, y = y)
        t.name = "$(version)"
        t.mode = "markers+lines"
        t.marker = Config(symbol = "square", size = 12)
p(t) # instead of: push!(p.data, t)
joshday commented 1 year ago

Seems reasonable enough! I added it and a new release is pending.

PetrKryslUCSD commented 1 year ago

Fantastic!