// File: orbitcowboy[P]gnuplot-cpp/./gnuplot_i.hpp
// Function: Gnuplot& Gnuplot::plot_xyz<std::vector<double, std::allocator<double>>, std::vector<double, std::allocator<double>>, std::vector<double, std::allocator<double>>>(std::vector<double, std::allocator<double>> const&, std::vector<double, std::allocator<double>> const&, std::vector<double, std::allocator<double>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
Gnuplot& Gnuplot::plot_xyz(const X &x,
                           const Y &y,
                           const Z &z,
                           const std::string &title)
{
    if (x.empty() || y.empty() || z.empty())
    {
        throw GnuplotException("std::vectors too small");
    }
    if (x.size() != y.size() || x.size() != z.size())
    {
        throw GnuplotException("Length of the std::vectors differs");
    }
    std::ofstream tmp;
    const std::string name = create_tmpfile(tmp);
    if (name.empty())
    {
        throw GnuplotException("Unable to create tmp-file.");
    }
    // write the data to file
    for (std::size_t i = 0; i < x.size(); ++i)
    {
        tmp << x[i] << " " << y[i] << " " << z[i] << std::endl;
    }
    // cleanup
    tmp.flush();
    tmp.close();
    // plot file
    plotfile_xyz(name, 1, 2, 3, title);

    return *this;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x360, %rsp            # imm = 0x360
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x2e0(%rbp)
movq -0x10(%rbp), %rdi
callq 0xe5a0
testb $0x1, %al
jne 0xcd16
movq -0x18(%rbp), %rdi
callq 0xe5a0
testb $0x1, %al
jne 0xcd16
movq -0x20(%rbp), %rdi
callq 0xe5a0
testb $0x1, %al
jne 0xcd16
jmp 0xcdce
movb $0x1, -0x5d(%rbp)
movl $0x10, %edi
callq 0x3170
movq %rax, -0x2f0(%rbp)
leaq -0x49(%rbp), %rdi
movq %rdi, -0x2e8(%rbp)
callq 0x3510
movq -0x2e8(%rbp), %rdx
leaq 0x3c5d(%rip), %rsi      # 0x109a6
leaq -0x48(%rbp), %rdi
callq 0xbb50
jmp 0xcd54
movq -0x2f0(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0xbcd0
jmp 0xcd66
movq -0x2f0(%rbp), %rdi
movb $0x0, -0x5d(%rbp)
leaq 0x8fd0(%rip), %rsi      # 0x15d48
leaq -0x106f(%rip), %rdx     # 0xbd10
callq 0x34d0
jmp 0xd1c0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0xcdac
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x35c8
leaq -0x49(%rbp), %rdi
callq 0x32f0
testb $0x1, -0x5d(%rbp)
jne 0xcdbd
jmp 0xcdc9
movq -0x2f0(%rbp), %rdi
callq 0x3210
jmp 0xd1b7
movq -0x10(%rbp), %rdi
callq 0xe5e0
movq %rax, -0x2f8(%rbp)
movq -0x18(%rbp), %rdi
callq 0xe5e0
movq %rax, %rcx
movq -0x2f8(%rbp), %rax
cmpq %rcx, %rax
jne 0xce22
movq -0x10(%rbp), %rdi
callq 0xe5e0
movq %rax, -0x300(%rbp)
movq -0x20(%rbp), %rdi
callq 0xe5e0
movq %rax, %rcx
movq -0x300(%rbp), %rax
cmpq %rcx, %rax
je 0xcee9
movb $0x1, -0x82(%rbp)
movl $0x10, %edi
callq 0x3170
movq %rax, -0x310(%rbp)
leaq -0x81(%rbp), %rdi
movq %rdi, -0x308(%rbp)
callq 0x3510
movq -0x308(%rbp), %rdx
leaq 0x3b62(%rip), %rsi      # 0x109bd
leaq -0x80(%rbp), %rdi
callq 0xbb50
jmp 0xce66
movq -0x310(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0xbcd0
jmp 0xce78
movq -0x310(%rbp), %rdi
movb $0x0, -0x82(%rbp)
leaq 0x8ebb(%rip), %rsi      # 0x15d48
leaq -0x1184(%rip), %rdx     # 0xbd10
callq 0x34d0
jmp 0xd1c0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0xcec1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x35c8
leaq -0x81(%rbp), %rdi
callq 0x32f0
testb $0x1, -0x82(%rbp)
jne 0xced8
jmp 0xcee4
movq -0x310(%rbp), %rdi
callq 0x3210
jmp 0xd1b7
leaq -0x288(%rbp), %rdi
movq %rdi, -0x318(%rbp)
callq 0x34c0
movq -0x2e0(%rbp), %rsi
movq -0x318(%rbp), %rdx
leaq -0x2a8(%rbp), %rdi
callq 0x6b90
jmp 0xcf18
leaq -0x2a8(%rbp), %rdi
callq 0x3490
testb $0x1, %al
jne 0xcf2d
jmp 0xd00e
movb $0x1, -0x2ca(%rbp)
movl $0x10, %edi
callq 0x3170
movq %rax, -0x328(%rbp)
leaq -0x2c9(%rbp), %rdi
movq %rdi, -0x320(%rbp)
callq 0x3510
movq -0x320(%rbp), %rdx
leaq 0x3a7a(%rip), %rsi      # 0x109e0
leaq -0x2c8(%rbp), %rdi
callq 0xbb50
jmp 0xcf74
movq -0x328(%rbp), %rdi
leaq -0x2c8(%rbp), %rsi
callq 0xbcd0
jmp 0xcf89
movq -0x328(%rbp), %rdi
movb $0x0, -0x2ca(%rbp)
leaq 0x8daa(%rip), %rsi      # 0x15d48
leaq -0x1295(%rip), %rdx     # 0xbd10
callq 0x34d0
jmp 0xd1c0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0xd1ab
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0xcfe6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x2c8(%rbp), %rdi
callq 0x35c8
leaq -0x2c9(%rbp), %rdi
callq 0x32f0
testb $0x1, -0x2ca(%rbp)
jne 0xcffd
jmp 0xd009
movq -0x328(%rbp), %rdi
callq 0x3210
jmp 0xd19f
movq $0x0, -0x2d8(%rbp)
movq -0x2d8(%rbp), %rax
movq %rax, -0x330(%rbp)
movq -0x10(%rbp), %rdi
callq 0xe5e0
movq %rax, %rcx
movq -0x330(%rbp), %rax
cmpq %rcx, %rax
jae 0xd132
movq -0x10(%rbp), %rdi
movq -0x2d8(%rbp), %rsi
callq 0xe600
movsd (%rax), %xmm0
leaq -0x288(%rbp), %rdi
callq 0x3560
movq %rax, -0x338(%rbp)
jmp 0xd06c
movq -0x338(%rbp), %rdi
leaq 0x31ef(%rip), %rsi      # 0x10269
callq 0x3280
movq %rax, -0x340(%rbp)
jmp 0xd088
movq -0x18(%rbp), %rdi
movq -0x2d8(%rbp), %rsi
callq 0xe600
movq -0x340(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x3560
movq %rax, -0x348(%rbp)
jmp 0xd0b1
movq -0x348(%rbp), %rdi
leaq 0x31aa(%rip), %rsi      # 0x10269
callq 0x3280
movq %rax, -0x350(%rbp)
jmp 0xd0cd
movq -0x20(%rbp), %rdi
movq -0x2d8(%rbp), %rsi
callq 0xe600
movq -0x350(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x3560
movq %rax, -0x358(%rbp)
jmp 0xd0f6
movq -0x358(%rbp), %rdi
movq 0x8e9c(%rip), %rsi      # 0x15fa0
callq 0x32d0
jmp 0xd10b
jmp 0xd10d
movq -0x2d8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x2d8(%rbp)
jmp 0xd019
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0xd19f
leaq -0x288(%rbp), %rdi
callq 0x31d0
jmp 0xd140
leaq -0x288(%rbp), %rdi
callq 0x3410
jmp 0xd14e
movq -0x2e0(%rbp), %rdi
movq -0x28(%rbp), %r9
leaq -0x2a8(%rbp), %rsi
movl $0x1, %edx
movl $0x2, %ecx
movl $0x3, %r8d
callq 0x64b0
jmp 0xd177
leaq -0x2a8(%rbp), %rdi
callq 0x35c8
leaq -0x288(%rbp), %rdi
callq 0x3430
movq -0x2e0(%rbp), %rax
addq $0x360, %rsp            # imm = 0x360
popq %rbp
retq
leaq -0x2a8(%rbp), %rdi
callq 0x35c8
leaq -0x288(%rbp), %rdi
callq 0x3430
movq -0x58(%rbp), %rdi
callq 0x3500