Cannot convert ThreeBodyTB.CrystalMod.crystal{Float64} to series data for plotting

61 views Asked by At
using Plots,ThreeBodyTB
begin
    A = [0 2.73 2.73; 2.73 0 2.73; 2.73 2.73 0] #angstrom lattice vectors
    pos = [0 0 0; 0.25 0.25 0.25]               #crystal coordinates
    atoms = ["Al", "P"]                         #strings or symbols are fine
    c = makecrys(A, pos, atoms)
end

c222 = c * [2,2,2]

plot(c222)


** how do I fix this problem?

Cannot convert ThreeBodyTB.CrystalMod.crystal{Float64} to series data for plotting.

I use Pluto notebook

enter image description here

WHEN I WRITE THIS CODE, A STRUCTURE LIKE THIS SHOULD COME. THE CODE DOES NOT WORK AND GIVES AN ERROR ON PLUTO NOTEBOOK.

**

0

There are 0 answers