Hello Watchers:
Executing commands in Pluto 0.18.*
I am using StatsPlots and PlotlyJS (with plotlyjs()
activated as a back-end) in Julia 1.8.*
When executing the following instructions:
Lab_Entity = ["Lab1", "Lab2", "Lab3", "Lab4", "Lab5"]
trace1 = stp.scatter(
x=[0.959311, 0.562546, 0.781273, 1.0, 0.176317, 0.176317],
y=Lab_Entity,
marker=attr(color="crimson", size=12),
mode="markers",
name="CoH",
)
trace2 = stp.scatter(
x=[0.214919, 0.188576, 0.17397, 0.18988, 0.13302, 0.13302],
y=Lab_Entity,
marker=attr(color="gold", size=12),
mode="markers",
name="D2C"
)
trace3 = stp.scatter(
x=[0.0102765, 0.0102765, 0.0104851, 0.0105634, 0.0106416, 0.0106416],
y=Lab_Entity,
marker=attr(color="blue", size=12),
mode="markers",
name="CR"
)
layout = Layout(title="Compare Plot",
xaxis_title="Measurement",
yaxis_title="Lab Entity")
stp.plot([trace1,trace2,trace3], layout)
This returns the following error:
MethodError: no method matching getindex(::Nothing, ::Int64)
I believe this has something to do with attempting
to plot a Float64? eltype. Might anyone have a
work around?